Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

why always attribute android:hintTextColor not found

I always show up but not found

attribute android:hintTextColor not found.

<EditText
        android:id="@+id/editTextTextPassword"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginTop="249dp"
        android:autofillHints=""
        android:ems="10"
        android:hint="@string/password_msg"
        android:hintTextColor="#757575"
        android:inputType="textPassword"
        android:minHeight="48dp"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent" />

please help me.thanks.


1 Answers

android:hintTextColor="#757575" isn't a TextView/EditText attribute, but android:textColorHint="#757575" is, check out DOC

hintTextColor is param of TextInputLayout, you've probably mixed some naming :)

like image 72
snachmsm Avatar answered Oct 29 '25 23:10

snachmsm



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!