Disable/Remove floating label hint text in TextInputLayout XML

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

    Answer by @Gauthier is correct, but in case you don't want just the floating Hint but you want the Hint before text edit then in addition to disabling Hint for TextInputLayout you should provide hint in EditText widget.

    I guess this answers few of the question raised by some people in above comments.

提交回复
热议问题