EditText tooltip not shown in 5.0.1

I have the latest update 5.0.1 and the EditText 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 have looked at several "solutions" but they are all quite old and not related to 5.0.1

thank

+3


source to share


2 answers


You need to give a hint color:



android:textColorHint="#000000"

      

+10


source


Oddly enough, the tooltip will not display if the EditText has no focus unless the size of the ellipse is set (eg ellipsize = "end")



0


source







All Articles