The Android Developer Challenge is back! Submit your idea before December 2.

androidx.core.widget

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.

ScrollerCompat

Provides access to new Scroller APIs when available.

TextViewCompat

Helper for accessing features in TextView.

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, count: Int, after: 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, count: Int, after: 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, count: Int, after: 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, count: Int, after: Int) -> Unit): TextWatcher

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

Return
the TextWatcher added to the TextView