AutocompleteTextView in Android

1
2
/* main.xml */
<?xml version="1.0" encoding="utf-8"?>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
AutoCompleteTextView is a sort of hybrid between the EditText & the Spinner. With autocompletion, as the user types, the text is treated as a prefix filter. Matches are shown in a selection list that drops down from the field (spinner).

AutoCompleteTextView is subclass of EditText, so you can configure all the standard look & feel aspects such as font face and color. In addition, this widget has a “android:completionThreshold ” property, to indicate the minimum number of characters a user must enter before the list filtering begins.

#android $autocomplete #textview

#cesarnog

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.