ParseInt, EditText convert, setError


 EditText Buy_PriceSell_Price;

Buy_Price = findViewById(R.id.Buy_Price);
Sell_Price = findViewById(R.id.Sell_Price);
int Buy = Integer.parseInt(Buy_Price.getText().toString());
int Sell = Integer.parseInt(Sell_Price.getText().toString());
Buy_Price.setError("Please enter numebr"); // Error মেসেজ শো করবে

Post a Comment

0 Comments

Layout Inflater