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
andR.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>(@NonNull context: Context, @Nullable attrs: AttributeSet?) |
|
<init>(@NonNull context: Context, @Nullable attrs: AttributeSet?, defStyleAttr: Int) |
Public methods | |
---|---|
open InputConnection! |
onCreateInputConnection(outAttrs: EditorInfo!) |
open Unit |
setBackgroundDrawable(@Nullable background: Drawable?) |
open Unit |
setBackgroundResource(@DrawableRes resId: Int) |
open Unit |
setCustomSelectionActionModeCallback(actionModeCallback: Callback!) See |
open Unit |
setDropDownBackgroundResource(@DrawableRes resId: Int) |
open Unit |
setTextAppearance(context: Context!, resId: Int) |
Protected methods | |
---|---|
open Unit |
Public constructors
<init>
AppCompatAutoCompleteTextView(@NonNull context: Context)
<init>
AppCompatAutoCompleteTextView(
@NonNull context: Context,
@Nullable attrs: AttributeSet?)
<init>
AppCompatAutoCompleteTextView(
@NonNull context: Context,
@Nullable attrs: AttributeSet?,
defStyleAttr: Int)
Public methods
onCreateInputConnection
open fun onCreateInputConnection(outAttrs: EditorInfo!): InputConnection!
setCustomSelectionActionModeCallback
open fun setCustomSelectionActionModeCallback(actionModeCallback: Callback!): Unit
See TextViewCompat#setCustomSelectionActionModeCallback(TextView, ActionMode.Callback)
Protected methods
drawableStateChanged
protected open fun drawableStateChanged(): Unit