Android: TextInputLayouts always have an error icon

You can try this. But It will permanently remove the error Icon. If you want to show it again you have do it programmatically.

app:errorIconDrawable="@null"

Edit: It looks like it's fixed with com.google.android.material:material:1.2.0-alpha04.


Ho, I found the issue. I actually updated the version of the Material library from version com.google.android.material:material:1.1.0-alpha08 to com.google.android.material:material:1.1.0-alpha09.

Google changed the behaviour of Text Field (see here: https://github.com/material-components/material-components-android/releases/tag/1.1.0-alpha09):

Text Field:

  • Adding option to set TextInputLayout icons to be not checkable (6a88f2b)
  • Implementing error icon for text fields (3f73804)