Disable/Remove floating label hint text in TextInputLayout XML

前端 未结 11 1357
一向
一向 2021-01-31 06:59

This may seem counter-intuitive but is there a way to disable or remove the floating label hint in TextInputLayout? The reason I want to use TextInputLayout

11条回答
  •  心在旅途
    2021-01-31 07:28

    If someone have problems like me:

    The label make the text padding show wrong then do this:

    
    

    Add padding top and padding bottom to the TextInputEditText that will fix the problem

提交回复
热议问题