开发者

What is the difference between EditText and AutoCompleteTextView in Android?

开发者 https://www.devze.com 2023-02-08 01:23 出处:网络
What is the difference between EditText and AutoCompleteTextView in Android? Can anyone开发者_StackOverflow中文版 explain with some example?

What is the difference between EditText and AutoCompleteTextView in Android?

Can anyone开发者_StackOverflow中文版 explain with some example?

Thanks, Balaram


Well, AutoCompleteTextView is a subclass of EditText that also provides the possibility to show completion hints that the user can pick up. See the JavaDoc for AutoCompleteTextView and the tutorial.


An EditText is a generic input widget, whereas an autoCompleteTextview uses prediction to suggest input alternatives. Connect it to an array or a cursor and it will filter the content based on what the user starts to type,

Look at ApiDemos for an example.


The following links help you AutoCompleteTextView

EditText

0

精彩评论

暂无评论...
验证码 换一张
取 消