TextInputLayout :How to give padding or margin to hint?

后端 未结 15 1897
离开以前
离开以前 2020-11-28 06:42

I have to use TextInputLayout of design support library in my project. I want to give space between hint and EditText in TextInp

15条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-11-28 07:18

    @RaduTopor 's answer is good, but I think we also need add android:bottom or else it also de-centres the hint text displayed inside the EditText when not focused

    
      
         or  or whatever./>
      
    
    

    Before(RaduTopor answer):

    After:

提交回复
热议问题