Disable/Remove floating label hint text in TextInputLayout XML

前端 未结 11 1329
一向
一向 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:24

    if you have used app:hintEnabled="false" then also set android:paddingTop="8dp" in EditText and boom top hint space is gone, this worked for me hope this works for you too

提交回复
热议问题