In EditText
, errors can be set programmatically like this:
if(TextUtils.isEmpty(nameEditText.getText()))
nameEditText.setError(getString("This field is required"));
And as a result, this would show up:
Is there any way to change the error icon to an image or drawable
?