Floating label of textinputlayout input box control
This example shares the specific code of the suspension label of the textinputlayout input box for your reference. The specific contents are as follows
Textinputlayout is also an effect after 5.0. If you want to use it, you also need to configure it in build:
Textinputlayout can be used to display a prompt error message and put hint in the upper left of EditText; If there are such requirements in the project, it is very convenient to use textinputlayout; The use method is also relatively simple. You can directly wrap EditText with textinputlayout:
However, by default, when you enter text, textinputlayout will only move hint to the upper left without error prompt. The error prompt needs to be set manually:
Click the open link to download the source code for free
The above is the whole content of this article. I hope it will be helpful to your study, and I hope you can support programming tips.