Google berkomitmen untuk mendorong terwujudnya keadilan ras bagi komunitas Kulit Hitam. Lihat caranya.

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 android.widget.CompoundButton to receive tinting calls from CompoundButtonCompat when running on API v20 devices or lower.

TintableCompoundDrawablesView

Interface which allows android.widget.TextView and subclasses to tint compound drawables with TextViewCompat when running on API v22 devices or lower.

Classes

AutoScrollHelper

AutoScrollHelper is a utility class for adding automatic edge-triggered scrolling to Views.

CompoundButtonCompat

Helper for accessing android.widget.CompoundButton.

ContentLoadingProgressBar

ContentLoadingProgressBar implements a ProgressBar that waits a minimum time to be dismissed before showing.

EdgeEffectCompat

Helper for accessing android.widget.EdgeEffect.

ImageViewCompat

Helper for accessing features in ImageView.

ListPopupWindowCompat

Helper for accessing features in ListPopupWindow.

ListViewAutoScrollHelper

An implementation of AutoScrollHelper that knows how to scroll through a ListView.

ListViewCompat

Helper for accessing features in ListView

NestedScrollView

NestedScrollView is just like android.widget.ScrollView, but it supports acting as both a nested scrolling parent and child on both new and old versions of Android.

PopupMenuCompat

Helper for accessing features in PopupMenu.

PopupWindowCompat

Helper for accessing features in PopupWindow.

RichContentReceiverCompat

Callback for apps to implement handling for insertion of rich content.

ScrollerCompat

Provides access to new Scroller APIs when available.

TextViewCompat

Helper for accessing features in TextView.

TextViewRichContentReceiverCompat

Base implementation of RichContentReceiverCompat for editable TextView components.

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.

Return
the TextWatcher added to the TextView

doBeforeTextChanged

inline fun TextView.doBeforeTextChanged(crossinline action: (text: CharSequence?, start: Int, count: Int, after: Int) -> Unit): TextWatcher

Add an action which will be invoked before the text changed.

Return
the TextWatcher added to the TextView

doOnTextChanged

inline fun TextView.doOnTextChanged(crossinline action: (text: CharSequence?, start: Int, before: Int, count: Int) -> Unit): TextWatcher

Add an action which will be invoked when the text is changing.

Return
the TextWatcher added to the TextView