androidx.core.view
Interfaces
VisibilityListener |
Listens to changes in visibility as reported by |
OnDragStartListener |
Interface definition for a callback to be invoked when a drag start gesture is detected. |
LayoutInflaterFactory |
Used with |
OnActionExpandListener |
Interface definition for a callback to be invoked when a menu item marked with |
NestedScrollingChild |
This interface should be implemented by |
NestedScrollingChild2 |
This interface should be implemented by |
NestedScrollingChild3 |
This interface should be implemented by |
NestedScrollingParent |
This interface should be implemented by |
NestedScrollingParent2 |
This interface should be implemented by |
NestedScrollingParent3 |
This interface should be implemented by |
OnApplyWindowInsetsListener |
Listener for applying window insets on a view in a custom way. |
OnReceiveContentListener |
Listener for apps to implement handling for insertion of content. |
OnReceiveContentViewBehavior |
Interface for widgets to implement default behavior for receiving content. |
ScrollingView |
An interface that can be implemented by Views to provide scroll related APIs. |
TintableBackgroundView |
Interface which allows a |
OnUnhandledKeyEventListenerCompat |
Interface definition for a callback to be invoked when a hardware key event hasn't been handled by the view hierarchy. |
ViewPropertyAnimatorListener |
An animation listener receives notifications from an animation. |
ViewPropertyAnimatorUpdateListener |
Implementors of this interface can add themselves as update listeners to an |
WindowInsetsAnimationControlListenerCompat |
Listener that encapsulates a request to |
OnControllableInsetsChangedListener |
Listener to be notified when the set of controllable |
Classes
AccessibilityDelegateCompat |
Helper for accessing |
ActionProvider |
This class is a mediator for accomplishing a given task, for example sharing a file. |
ContentInfoCompat |
Holds all the relevant data for a request to |
DisplayCompat |
A class for retrieving the physical display size from a device. |
DisplayCutoutCompat |
Represents the area of the display that is not functional for displaying content. |
DragAndDropPermissionsCompat |
Helper for accessing features in |
DragStartHelper |
DragStartHelper is a utility class for implementing drag and drop support. |
GestureDetectorCompat |
Detects various gestures and events using the supplied |
GravityCompat |
Compatibility shim for accessing newer functionality from |
InputDeviceCompat |
Helper class for accessing values in |
LayoutInflaterCompat |
Helper for accessing features in |
MarginLayoutParamsCompat |
Helper for accessing API features in |
MenuCompat |
Helper for accessing features in |
MenuItemCompat |
Helper for accessing features in |
MotionEventCompat |
Helper for accessing features in |
NestedScrollingChildHelper |
Helper class for implementing nested scrolling child views compatible with Android platform versions earlier than Android 5. |
NestedScrollingParentHelper |
Helper class for implementing nested scrolling parent views compatible with Android platform versions earlier than Android 5. |
OneShotPreDrawListener |
An OnPreDrawListener that will remove itself after one OnPreDraw call. |
PointerIconCompat |
Helper for accessing features in |
ScaleGestureDetectorCompat |
Helper for accessing features in |
VelocityTrackerCompat |
Helper for accessing features in |
ViewCompat |
Helper for accessing features in |
ViewConfigurationCompat |
Helper for accessing features in |
ViewGroupCompat |
Helper for accessing features in |
ViewParentCompat |
Helper for accessing features in |
ViewPropertyAnimatorCompat | |
ViewPropertyAnimatorListenerAdapter |
This adapter class provides empty implementations of the methods from |
WindowCompat |
Helper for accessing features in |
WindowInsetsAnimationCompat |
Class representing an animation of a set of windows that cause insets. |
WindowInsetsAnimationControllerCompat |
Controller for app-driven animation of system windows. |
WindowInsetsCompat |
Describes a set of insets for window content. |
WindowInsetsControllerCompat |
Provide simple controls of windows that generate insets. |
Extension functions summary
For android.view.Menu | |
operator Boolean |
Returns |
Unit |
Performs the given action on each item in this menu. |
Unit |
Menu.forEachIndexed(action: (index: Int, item: MenuItem) -> Unit) Performs the given action on each item in this menu, providing its sequential index. |
operator MenuItem |
Returns the menu at index. |
Boolean |
Returns true if this menu contains no items. |
Boolean |
Returns true if this menu contains one or more items. |
operator MutableIterator<MenuItem> |
Returns a MutableIterator over the items in this menu. |
operator Unit |
Menu.minusAssign(item: MenuItem) Removes item from this menu. |
For android.view.View | |
Unit |
View.doOnAttach(crossinline action: (view: View) -> Unit) Performs the given action when this view is attached to a window. |
Unit |
View.doOnDetach(crossinline action: (view: View) -> Unit) Performs the given action when this view is detached from a window. |
Unit |
View.doOnLayout(crossinline action: (view: View) -> Unit) Performs the given action when this view is laid out. |
Unit |
View.doOnNextLayout(crossinline action: (view: View) -> Unit) Performs the given action when this view is next laid out. |
OneShotPreDrawListener |
View.doOnPreDraw(crossinline action: (view: View) -> Unit) Performs the given action when the view tree is about to be drawn. |
Bitmap |
View.drawToBitmap(config: Config = Bitmap.Config.ARGB_8888) |
Runnable |
View.postDelayed(delayInMillis: Long, crossinline action: () -> Unit) Version of View.postDelayed which re-orders the parameters, allowing the action to be placed outside of parentheses. |
Runnable |
View.postOnAnimationDelayed(delayInMillis: Long, crossinline action: () -> Unit) Version of View.postOnAnimationDelayed which re-orders the parameters, allowing the action to be placed outside of parentheses. |
Unit |
View.setPadding(@Px size: Int) Sets the view's padding. |
Unit |
View.updateLayoutParams(block: |