androidx.core.widget
Interfaces
OnScrollChangeListener |
Interface definition for a callback to be invoked when the scroll X or Y positions of a view change. |
TintableCompoundButton |
Interface which allows a |
TintableCompoundDrawablesView |
Interface which allows |
Classes
AutoScrollHelper |
AutoScrollHelper is a utility class for adding automatic edge-triggered scrolling to Views. |
CompoundButtonCompat |
Helper for accessing |
ContentLoadingProgressBar |
ContentLoadingProgressBar implements a ProgressBar that waits a minimum time to be dismissed before showing. |
EdgeEffectCompat |
Helper for accessing |
ImageViewCompat |
Helper for accessing features in |
ListPopupWindowCompat |
Helper for accessing features in |
ListViewAutoScrollHelper |
An implementation of |
ListViewCompat |
Helper for accessing features in |
NestedScrollView |
NestedScrollView is just like |
PopupMenuCompat |
Helper for accessing features in |
PopupWindowCompat |
Helper for accessing features in |
ScrollerCompat |
Provides access to new |
TextViewCompat |
Helper for accessing features in |
Extension functions summary
For android.widget.TextView | |
TextWatcher |
TextView.addTextChangedListener(crossinline beforeTextChanged: (text: CharSequence?, start: Int, count: Int, after: Int) -> Unit = { _, _, _, _ -> }, crossinline onTextChanged: (text: CharSequence?, start: Int, before: Int, count: Int) -> Unit = { _, _, _, _ -> }, crossinline afterTextChanged: (text: Editable?) -> Unit = {}) Add a text changed listener to this TextView using the provided actions |
TextWatcher |
TextView.doAfterTextChanged(crossinline action: (text: Editable?) -> Unit) Add an action which will be invoked after the text changed. |
TextWatcher |
TextView.doBeforeTextChanged(crossinline action: (text: CharSequence?, start: Int, count: Int, after: Int) -> Unit) Add an action which will be invoked before the text changed. |
TextWatcher |
TextView.doOnTextChanged(crossinline action: (text: CharSequence?, start: Int, before: Int, count: Int) -> Unit) Add an action which will be invoked when the text is changing. |
Extension functions
addTextChangedListener
inline fun TextView.addTextChangedListener(
crossinline beforeTextChanged: (text: CharSequence?, start: Int, count: Int, after: Int) -> Unit = { _, _, _, _ -> },
crossinline onTextChanged: (text: CharSequence?, start: Int, before: Int, count: Int) -> Unit = { _, _, _, _ -> },
crossinline afterTextChanged: (text: Editable?) -> Unit = {}
): TextWatcher
Add a text changed listener to this TextView using the provided actions
Return | |
---|---|
the | TextWatcher added to the TextView |
doAfterTextChanged
inline fun TextView.doAfterTextChanged(crossinline action: (text: Editable?) -> Unit): TextWatcher
Add an action which will be invoked after the text changed.