ViewCompat
open class ViewCompat
kotlin.Any | |
↳ | androidx.core.view.ViewCompat |
Helper for accessing features in View
.
Summary
Nested classes | |
---|---|
abstract |
Interface definition for a callback to be invoked when a hardware key event hasn't been handled by the view hierarchy. |
Constants | |
---|---|
static Int |
Live region mode specifying that accessibility services should interrupt ongoing speech to immediately announce changes to this view. |
static Int |
Live region mode specifying that accessibility services should not automatically announce changes to this view. |
static Int |
Live region mode specifying that accessibility services should announce changes to this view. |
static Int |
Automatically determine whether a view is important for accessibility. |
static Int |
The view is not important for accessibility. |
static Int |
The view is not important for accessibility, nor are any of its descendant views. |
static Int |
The view is important for accessibility. |
static Int |
Indicates that the view has a hardware layer. |
static Int |
Indicates that the view does not have a layer. |
static Int |
Indicates that the view has a software layer. |
static Int |
Horizontal layout direction of this view is inherited from its parent. |
static Int |
Horizontal layout direction of this view is from deduced from the default language script for the locale. |
static Int |
Horizontal layout direction of this view is from Left to Right. |
static Int |
Horizontal layout direction of this view is from Right to Left. |
static Int |
Bit shift of |
static Int |
Bits of |
static Int |
Bits of |
static Int |
Bit of |
static Int |
Always allow a user to over-scroll this view, provided it is a view that can scroll. |
static Int |
Allow a user to over-scroll this view only if the content is large enough to meaningfully scroll, provided it is a view that can scroll. |
static Int |
Never allow a user to over-scroll this view. |
static Int |
Indicates scrolling along the horizontal axis. |
static Int |
Indicates no axis of view scrolling. |
static Int |
Indicates scrolling along the vertical axis. |
static Int |
Scroll indicator direction for the bottom edge of the view. |
static Int |
Scroll indicator direction for the ending edge of the view. |
static Int |
Scroll indicator direction for the left edge of the view. |
static Int |
Scroll indicator direction for the right edge of the view. |
static Int |
Scroll indicator direction for the starting edge of the view. |
static Int |
Scroll indicator direction for the top edge of the view. |
static Int |
Indicates that the input type for the gesture is caused by something which is not a user touching a screen. |
static Int |
Indicates that the input type for the gesture is from a user touching the screen. |
Protected constructors | |
---|---|
<init>() |
Public methods | |
---|---|
open static Int |
addAccessibilityAction(@NonNull view: View, @NonNull label: CharSequence, @NonNull command: AccessibilityViewCommand) Adds an accessibility action that can be performed on a node associated with a view. |
open static Unit |
addKeyboardNavigationClusters(@NonNull : View, @NonNull : MutableCollection<View!>, : Int) Adds any keyboard navigation cluster roots that are descendants of |
open static Unit |
addOnUnhandledKeyEventListener(@NonNull v: View, @NonNull listener: ViewCompat.OnUnhandledKeyEventListenerCompat) Adds a listener which will receive unhandled |
open static ViewPropertyAnimatorCompat |
This method returns a ViewPropertyAnimator object, which can be used to animate specific properties on this View. |
open static Boolean |
canScrollHorizontally(view: View!, direction: Int) Check if this view can be scrolled horizontally in a certain direction. |
open static Boolean |
canScrollVertically(view: View!, direction: Int) Check if this view can be scrolled vertically in a certain direction. |
open static Unit |
cancelDragAndDrop(@NonNull v: View) Cancel the drag and drop operation. |
open static Int |
combineMeasuredStates(curState: Int, newState: Int) Merge two states as returned by |
open static WindowInsetsCompat |
computeSystemWindowInsets(@NonNull view: View, @NonNull insets: WindowInsetsCompat, @NonNull outLocalInsets: Rect) Compute insets that should be consumed by this view and the ones that should propagate to those under it. |
open static WindowInsetsCompat |
dispatchApplyWindowInsets(@NonNull view: View, @NonNull insets: WindowInsetsCompat) Request to apply the given window insets to this view or another view in its subtree. |
open static Unit |
dispatchFinishTemporaryDetach(@NonNull view: View) Notify a view that its temporary detach has ended; the view is now reattached. |
open static Boolean |
dispatchNestedFling(@NonNull view: View, velocityX: Float, velocityY: Float, consumed: Boolean) Dispatch a fling to a nested scrolling parent. |
open static Boolean |
dispatchNestedPreFling(@NonNull view: View, velocityX: Float, velocityY: Float) Dispatch a fling to a nested scrolling parent before it is processed by this view. |
open static Boolean |
dispatchNestedPreScroll(@NonNull view: View, dx: Int, dy: Int, @Nullable consumed: IntArray?, @Nullable offsetInWindow: IntArray?) Dispatch one step of a nested scroll in progress before this view consumes any portion of it. |
open static Boolean |
dispatchNestedPreScroll(@NonNull view: View, dx: Int, dy: Int, @Nullable consumed: IntArray?, @Nullable offsetInWindow: IntArray?, type: Int) Dispatch one step of a nested scroll in progress before this view consumes any portion of it. |
open static |