Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between EditText and AutoCompleteTextView in Android?

What is the difference between EditText and AutoCompleteTextView in Android?

Can anyone explain with some example?

Thanks, Balaram

like image 743
ram Avatar asked Dec 21 '22 18:12

ram


2 Answers

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.

like image 169
Heiko Rupp Avatar answered May 08 '23 16:05

Heiko Rupp


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.

like image 35
Robert Avatar answered May 08 '23 17:05

Robert