What is the difference between EditText and AutoCompleteTextView in Android?

What is the difference between EditText and AutoCompleteTextView in Android?

Can someone explain in some example?

Thanks, Balary

+4
source share
3 answers

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

+7
source

EditText is a common input widget, while autoCompleteTextview uses prediction to offer input alternatives. Connect it to an array or cursor, and it will filter the content based on what the user starts to print,

Take a look at ApiDemos for an example.

+2
source

The following links will help you AutoCompleteTextView

Edittext

+1
source

Source: https://habr.com/ru/post/1338210/


All Articles