I am trying to set an icon in textInputLayout error like this :
I set this app:errorIconDrawable="@drawable/login_erroricon" in TextInputLayout but when i run app it does not show anything.
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/textInputLayout_login_email"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="32dp"
android:layout_marginTop="8dp"
android:layout_marginEnd="32dp"
app:hintEnabled="false"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/textView_login_emailLabel"
app:startIconDrawable="@drawable/email_icon"
app:startIconTint="@color/white"
app:errorIconDrawable="@drawable/login_erroricon">
I also try it in the code but it does not appear anything :
textInputLayout_login_email.errorIconDrawable=resources.getDrawable(R.drawable.login_erroricon)
Attention : text is ok but icon is disappear.

