Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

EditText hint not showing in 5.0.1

I have the latest 5.0.1 update and the EditText hint has stopped showing:

I have:

<EditText
     android:id="@+id/editTextLocation"
     android:layout_width="wrap_content"
     android:layout_marginEnd="5dp"
     android:layout_marginLeft="5dp"
     android:layout_marginRight="5dp"
     android:layout_marginStart="5dp"
     android:layout_weight="80"
     android:clickable="false"
     android:focusable="false"
     android:focusableInTouchMode="false"
     android:hint="@string/chooseLocationHint"
     android:longClickable="false"
     android:textColor="#000000"
     android:textSize="15sp"
     android:background="@color/white"
     android:lines="1"
/>

I've looked through a few "solutions" but they're all quite old and unrelated to 5.0.1

Thanks

like image 462
Dan James Palmer Avatar asked Dec 25 '22 00:12

Dan James Palmer


1 Answers

You need to give the hint a colour:

android:textColorHint="#000000"
like image 198
Clive Jefferies Avatar answered Jan 02 '23 20:01

Clive Jefferies