Android implements real-time search box function
•
Android
AutoCompleteTextView, autocomplete text box.
It is used to display a drop-down menu for users to select after allowing users to enter certain characters. When users select an option, the text box will be filled in automatically according to the user's selection.
This component inherits EditText, so it supports the properties provided by the EditText component. At the same time, this component supports the following functions.
activity_ main.xml
MainActivity.java
design sketch
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.
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码