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

androidx.core.view

Interfaces

VisibilityListener

Listens to changes in visibility as reported by ActionProvider#refreshVisibility().

OnDragStartListener

Interface definition for a callback to be invoked when a drag start gesture is detected.

LayoutInflaterFactory

Used with LayoutInflaterCompat.setFactory().

OnActionExpandListener

Interface definition for a callback to be invoked when a menu item marked with is expanded or collapsed.

NestedScrollingChild

This interface should be implemented by View subclasses that wish to support dispatching nested scrolling operations to a cooperating parent ViewGroup.

NestedScrollingChild2

This interface should be implemented by View subclasses that wish to support dispatching nested scrolling operations to a cooperating parent ViewGroup.

NestedScrollingChild3

This interface should be implemented by View subclasses that wish to support dispatching nested scrolling operations to a cooperating parent ViewGroup.

NestedScrollingParent

This interface should be implemented by ViewGroup subclasses that wish to support scrolling operations delegated by a nested child view.

NestedScrollingParent2

This interface should be implemented by ViewGroup subclasses that wish to support scrolling operations delegated by a nested child view.

NestedScrollingParent3

This interface should be implemented by ViewGroup subclasses that wish to support scrolling operations delegated by a nested child view.

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 android.view.View to receive background tinting calls from ViewCompat when running on API v20 devices or lower.

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 ViewPropertyAnimatorCompat instance to receive callbacks on every animation frame, after the current frame's values have been calculated for that ViewPropertyAnimatorCompat.

WindowInsetsAnimationControlListenerCompat

Listener that encapsulates a request to WindowInsetsControllerCompat#controlWindowInsetsAnimation.

OnControllableInsetsChangedListener

Listener to be notified when the set of controllable WindowInsetsCompat.Type controlled by a WindowInsetsController changes.

Classes

AccessibilityDelegateCompat

Helper for accessing AccessibilityDelegate.

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 OnReceiveContentListener.

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 android.view.DragAndDropPermissions a backwards compatible fashion.

DragStartHelper

DragStartHelper is a utility class for implementing drag and drop support.

GestureDetectorCompat

Detects various gestures and events using the supplied MotionEvents.

GravityCompat

Compatibility shim for accessing newer functionality from android.view.Gravity.

InputDeviceCompat

Helper class for accessing values in android.view.InputDevice.

LayoutInflaterCompat

Helper for accessing features in LayoutInflater.

MarginLayoutParamsCompat

Helper for accessing API features in MarginLayoutParams in a backwards compatible way.

MenuCompat

Helper for accessing features in android.view.Menu.

MenuItemCompat

Helper for accessing features in android.view.MenuItem.

MotionEventCompat

Helper for accessing features in MotionEvent.

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 android.view.PointerIcon in a backwards compatible fashion.

ScaleGestureDetectorCompat

Helper for accessing features in ScaleGestureDetector.

VelocityTrackerCompat

Helper for accessing features in VelocityTracker.

ViewCompat

Helper for accessing features in View.

ViewConfigurationCompat

Helper for accessing features in ViewConfiguration.

ViewGroupCompat

Helper for accessing features in ViewGroup.

ViewParentCompat

Helper for accessing features in ViewParent.

ViewPropertyAnimatorCompat

ViewPropertyAnimatorListenerAdapter

This adapter class provides empty implementations of the methods from ViewPropertyAnimatorListener.

WindowCompat

Helper for accessing features in Window.

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 true if item is found in this menu.

Unit
Menu.forEach(action: (item: MenuItem) -> 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
Menu.get(index: Int)

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

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)

Return a Bitmap representation of this View.

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