How to change the floating label color of TextInputLayout

前端 未结 25 1996
[愿得一人]
[愿得一人] 2020-11-22 15:03

With reference to the new TextInputLayout released by Google, how do I change the floating label text color?

Setting colorControlNormal,

25条回答
  •  醉梦人生
    2020-11-22 15:29

    to change color of the text label when you are focusing on it. i.e. typing in it. you have to add specify

    @color/yourcolorhere
    

    Just a note: You have to add all these implementations to your main theme.

提交回复
热议问题