Save the date! Android Dev Summit is coming to Sunnyvale, CA on Oct 23-24, 2019.

AppCompatAutoCompleteTextView

open class AppCompatAutoCompleteTextView : AutoCompleteTextView, TintableBackgroundView
kotlin.Any
   ↳ android.view.View
   ↳ android.widget.TextView
   ↳ android.widget.EditText
   ↳ android.widget.AutoCompleteTextView
   ↳ androidx.appcompat.widget.AppCompatAutoCompleteTextView

A AutoCompleteTextView which supports compatible features on older versions of the platform, including:

  • Allows dynamic tint of its background via the background tint methods in androidx.core.view.ViewCompat.
  • Allows setting of the background tint using R.attr#backgroundTint and R.attr#backgroundTintMode.

This will automatically be used when you use AutoCompleteTextView in your layouts and the top-level activity / dialog is provided by appcompat. You should only need to manually use this class when writing custom views.

Summary

Public constructors
<init>(context: Context!)

<init>(context: Context!, attrs: AttributeSet!)

<init>(context: Context!, attrs: AttributeSet!, defStyleAttr: Int)

Public methods
open Unit
setBackgroundResource(@DrawableRes resId: Int)

open Unit
setDropDownBackgroundResource(@DrawableRes resId: Int)

open Unit
setTextAppearance(context: Context!, resId: Int)

open Unit

See TextViewCompat#setCustomSelectionActionModeCallback(TextView, ActionMode.Callback)

open Unit

open InputConnection!

Protected methods
open Unit

Public constructors

<init>

AppCompatAutoCompleteTextView(context: Context!)

<init>

AppCompatAutoCompleteTextView(context: Context!, attrs: AttributeSet!)

<init>

AppCompatAutoCompleteTextView(context: Context!, attrs: AttributeSet!, defStyleAttr: Int)

Public methods

setBackgroundResource

open fun setBackgroundResource(@DrawableRes resId: Int): Unit

setDropDownBackgroundResource

open fun setDropDownBackgroundResource(@DrawableRes resId: Int): Unit

setTextAppearance

open fun setTextAppearance(context: Context!, resId: Int): Unit

setCustomSelectionActionModeCallback

open fun setCustomSelectionActionModeCallback(actionModeCallback: Callback!): Unit

See TextViewCompat#setCustomSelectionActionModeCallback(TextView, ActionMode.Callback)

setBackgroundDrawable

open fun setBackgroundDrawable(background: Drawable!): Unit

onCreateInputConnection

open fun onCreateInputConnection(outAttrs: EditorInfo!): InputConnection!

Protected methods

drawableStateChanged

protected open fun drawableStateChanged(): Unit