EditText unable to change the text color

放肆的年华 提交于 2019-12-02 06:07:22

Hint doesn't change color. Try typing text, it will work. As the color change is for text that you input. And also your color code is incorrect, has extra FF for first EditText.

Edited:

Use the following to change hint color

android:textColorHint="#FFFFFF"

Hint color and Text Color are two diffrent thing use this codes create a color.xml file in values folder then add color #B49228 in it like this <color name="myColor">#B49228 </color> and use it like this

 android:textColor="@color/myColor"

and you are using hint text so to change hint color use this code

  android:textColorHint="@color/myColor"
android:textColorHint="#FFFFFF"

Please try.

put in color.xml your color like

<color name="mytextColor">#B49228</color>

and use this

android:textColor="@color/mytextColor"
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!