public class ViewCompat extends ViewCompat
View
introduced after API
level 13 in a backwards compatible fashion.ViewCompat.FocusDirection, ViewCompat.FocusRealDirection, ViewCompat.FocusRelativeDirection, ViewCompat.ScrollIndicators
ACCESSIBILITY_LIVE_REGION_ASSERTIVE, ACCESSIBILITY_LIVE_REGION_NONE, ACCESSIBILITY_LIVE_REGION_POLITE, IMPORTANT_FOR_ACCESSIBILITY_AUTO, IMPORTANT_FOR_ACCESSIBILITY_NO, IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS, IMPORTANT_FOR_ACCESSIBILITY_YES, LAYER_TYPE_HARDWARE, LAYER_TYPE_NONE, LAYER_TYPE_SOFTWARE, LAYOUT_DIRECTION_INHERIT, LAYOUT_DIRECTION_LOCALE, LAYOUT_DIRECTION_LTR, LAYOUT_DIRECTION_RTL, MEASURED_HEIGHT_STATE_SHIFT, MEASURED_SIZE_MASK, MEASURED_STATE_MASK, MEASURED_STATE_TOO_SMALL, OVER_SCROLL_ALWAYS, OVER_SCROLL_IF_CONTENT_SCROLLS, OVER_SCROLL_NEVER, SCROLL_AXIS_HORIZONTAL, SCROLL_AXIS_NONE, SCROLL_AXIS_VERTICAL, SCROLL_INDICATOR_BOTTOM, SCROLL_INDICATOR_END, SCROLL_INDICATOR_LEFT, SCROLL_INDICATOR_RIGHT, SCROLL_INDICATOR_START, SCROLL_INDICATOR_TOP
Modifier and Type | Method and Description |
---|---|
static void |
cancelDragAndDrop(View v)
Cancel the drag and drop operation.
|
static boolean |
startDragAndDrop(View v,
ClipData data,
View.DragShadowBuilder shadowBuilder,
Object localState,
int flags)
Start the drag and drop operation.
|
static void |
updateDragShadow(View v,
View.DragShadowBuilder shadowBuilder)
Update the drag shadow while drag and drop is in progress.
|
animate, canScrollHorizontally, canScrollVertically, combineMeasuredStates, dispatchApplyWindowInsets, dispatchFinishTemporaryDetach, dispatchNestedFling, dispatchNestedPreFling, dispatchNestedPreScroll, dispatchNestedScroll, dispatchStartTemporaryDetach, getAccessibilityLiveRegion, getAccessibilityNodeProvider, getAlpha, getBackgroundTintList, getBackgroundTintMode, getClipBounds, getDisplay, getElevation, getFitsSystemWindows, getImportantForAccessibility, getLabelFor, getLayerType, getLayoutDirection, getMatrix, getMeasuredHeightAndState, getMeasuredState, getMeasuredWidthAndState, getMinimumHeight, getMinimumWidth, getOverScrollMode, getPaddingEnd, getPaddingStart, getParentForAccessibility, getPivotX, getPivotY, getRotation, getRotationX, getRotationY, getScaleX, getScaleY, getScrollIndicators, getTransitionName, getTranslationX, getTranslationY, getTranslationZ, getWindowSystemUiVisibility, getX, getY, getZ, hasAccessibilityDelegate, hasNestedScrollingParent, hasOnClickListeners, hasOverlappingRendering, hasTransientState, isAttachedToWindow, isImportantForAccessibility, isInLayout, isLaidOut, isLayoutDirectionResolved, isNestedScrollingEnabled, isOpaque, isPaddingRelative, jumpDrawablesToCurrentState, offsetLeftAndRight, offsetTopAndBottom, onApplyWindowInsets, onInitializeAccessibilityEvent, onInitializeAccessibilityNodeInfo, onPopulateAccessibilityEvent, performAccessibilityAction, postInvalidateOnAnimation, postInvalidateOnAnimation, postOnAnimation, postOnAnimationDelayed, requestApplyInsets, resolveSizeAndState, setAccessibilityDelegate, setAccessibilityLiveRegion, setActivated, setAlpha, setBackground, setBackgroundTintList, setBackgroundTintMode, setChildrenDrawingOrderEnabled, setClipBounds, setElevation, setFitsSystemWindows, setHasTransientState, setImportantForAccessibility, setLabelFor, setLayerPaint, setLayerType, setLayoutDirection, setNestedScrollingEnabled, setOnApplyWindowInsetsListener, setOverScrollMode, setPaddingRelative, setPivotX, setPivotY, setPointerIcon, setRotation, setRotationX, setRotationY, setSaveFromParentEnabled, setScaleX, setScaleY, setScrollIndicators, setScrollIndicators, setTransitionName, setTranslationX, setTranslationY, setTranslationZ, setX, setY, setZ, startNestedScroll, stopNestedScroll
public static boolean startDragAndDrop(View v, ClipData data, View.DragShadowBuilder shadowBuilder, Object localState, int flags)
public static void cancelDragAndDrop(View v)
public static void updateDragShadow(View v, View.DragShadowBuilder shadowBuilder)