Java android.widget AutoCompleteTextView fields, constructors, methods, implement or subclass

Example usage for Java android.widget AutoCompleteTextView fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.widget AutoCompleteTextView.

The text is from its open source code.

Subclass

android.widget.AutoCompleteTextView has subclasses.
Click this link to see all its subclasses.

Constructor

AutoCompleteTextView(Context context)
Constructs a new auto-complete text view with the given context's theme.

Method

voiddismissDropDown()

Closes the drop down if present on screen.

ListAdaptergetAdapter()

Returns a filterable list adapter used for auto completion.

intgetThreshold()

Returns the number of characters the user must type before the drop down list is shown.

voidsetAdapter(T adapter)

Changes the list of data used for auto completion.

voidsetCompletionHint(CharSequence hint)

Sets the optional hint text that is displayed at the bottom of the the matching list.

voidsetDropDownAnchor(int id)

Sets the view to which the auto-complete drop down list should anchor.

voidsetDropDownBackgroundResource(@DrawableRes int id)

Sets the background of the auto-complete drop-down list.

voidsetDropDownWidth(int width)

Sets the current width for the auto-complete drop down list.

voidsetOnClickListener(OnClickListener listener)
voidsetOnItemClickListener(AdapterView.OnItemClickListener l)

Sets the listener that will be notified when the user clicks an item in the drop down list.

voidsetThreshold(int threshold)

Specifies the minimum number of characters the user has to type in the edit box before the drop down list is shown.

When threshold is less than or equals 0, a threshold of 1 is applied.

voidshowDropDown()

Displays the drop down on screen.