lightbulb_outline Help shape the future of the Google Play Console, Android Studio, and Firebase. Start survey

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.content.Context
Toast
Context.toast(text: CharSequence, duration: Int = Toast.LENGTH_SHORT)

Creates and shows a Toast with the given text

Toast
Context.toast(resId: Int, duration: Int = Toast.LENGTH_SHORT)

Creates and shows a Toast with text from a resource

Extension functions

toast

inline fun Context.toast(text: CharSequence, duration: Int = Toast.LENGTH_SHORT): Toast

Creates and shows a Toast with the given text

Parameters
duration Toast duration, defaults to Toast.LENGTH_SHORT

toast

inline fun Context.toast(resId: Int, duration: Int = Toast.LENGTH_SHORT): Toast

Creates and shows a Toast with text from a resource

Parameters
resId Resource id of the string resource to use
duration Toast duration, defaults to Toast.LENGTH_SHORT