How to change hint text size without changing the text size in EditText

前端 未结 4 920
傲寒
傲寒 2021-02-07 08:23

I have a EditText input field. I have added a hint in it. Now i want to change the size of hint text, but when i do this, it also effects the size of the text. Kind

4条回答
  •  时光说笑
    2021-02-07 09:04

    You can set it in resource file.

    For example:

    Hint!
    

    And your XML:

    android:hint="@string/hint"
    

提交回复
热议问题