Write this single line code for create error event for EditText


edittext1.setError("Use text Aan Gabriel");