淡淡的EditText 5.0.1中不显示 [英] EditText hint not showing in 5.0.1
本文介绍了淡淡的EditText 5.0.1中不显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有最新的5.0.1更新和淡淡的EditText已经停止显示:
I have the latest 5.0.1 update and the EditText hint has stopped showing:
我有:
<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"
/>
我已经通过了一些解决方案看了,但他们都相当老无关5.0.1
I've looked through a few "solutions" but they're all quite old and unrelated to 5.0.1
感谢
推荐答案
您需要给提示的颜色:
android:textColorHint="#000000"
这篇关于淡淡的EditText 5.0.1中不显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文