EditText error icon and show password missplaced

Don't call setError on the EditText, use TextInputLayout's setError()


Same behavior for material version 1.1.0-alpha10, even if you set an error into TextInputLayout. You can avoid it by adding to the TextInputLayout this line :

app:errorIconDrawable="@null"


please add these two lines in edittext

android:layout_marginEnd="9dp"
android:paddingRight="40dp"