TextInputLayout :How to give padding or margin to hint?

后端 未结 15 1857
离开以前
离开以前 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:32

    I think is simpler than you think working with fixes sizes, provide you don't need to use wrap_content for whatever reason, otherwise the accepted approach seems to work properly.

            
    
                
    
            
    

    Following this example you have a 20dp space to place your hint label as you want, playing with the layout_marginTop property.

提交回复
热议问题