public class

ViewCompat

extends ViewCompat

 java.lang.Object

androidx.core.view.ViewCompat

↳androidx.legacy.view.ViewCompat

Gradle dependencies

compile group: 'androidx.legacy', name: 'legacy-support-v13', version: '1.0.0'

  • groupId: androidx.legacy
  • artifactId: legacy-support-v13
  • version: 1.0.0

Artifact androidx.legacy:legacy-support-v13:1.0.0 it located at Google repository (https://maven.google.com/)

Androidx artifact mapping:

androidx.legacy:legacy-support-v13 com.android.support:support-v13

Androidx class mapping:

androidx.legacy.view.ViewCompat android.support.v13.view.ViewCompat

Overview

Helper for accessing features in View introduced after API level 13 in a backwards compatible fashion.

Summary

Fields
from ViewCompatACCESSIBILITY_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, TYPE_NON_TOUCH, TYPE_TOUCH
Methods
from ViewCompataddAccessibilityAction, addKeyboardNavigationClusters, addOnUnhandledKeyEventListener, animate, cancelDragAndDrop, canScrollHorizontally, canScrollVertically, combineMeasuredStates, computeSystemWindowInsets, dispatchApplyWindowInsets, dispatchFinishTemporaryDetach, dispatchNestedFling, dispatchNestedPreFling, dispatchNestedPreScroll, dispatchNestedPreScroll, dispatchNestedScroll, dispatchNestedScroll, dispatchNestedScroll, dispatchStartTemporaryDetach, enableAccessibleClickableSpanSupport, generateViewId, getAccessibilityDelegate, getAccessibilityLiveRegion, getAccessibilityNodeProvider, getAccessibilityPaneTitle, getAlpha, getBackgroundTintList, getBackgroundTintMode, getClipBounds, getDisplay, getElevation, getFitsSystemWindows, getImportantForAccessibility, getImportantForAutofill, getLabelFor, getLayerType, getLayoutDirection, getMatrix, getMeasuredHeightAndState, getMeasuredState, getMeasuredWidthAndState, getMinimumHeight, getMinimumWidth, getNextClusterForwardId, getOnReceiveContentMimeTypes, getOverScrollMode, getPaddingEnd, getPaddingStart, getParentForAccessibility, getPivotX, getPivotY, getRootWindowInsets, getRotation, getRotationX, getRotationY, getScaleX, getScaleY, getScrollIndicators, getStateDescription, getSystemGestureExclusionRects, getTransitionName, getTranslationX, getTranslationY, getTranslationZ, getWindowInsetsController, getWindowSystemUiVisibility, getX, getY, getZ, hasAccessibilityDelegate, hasExplicitFocusable, hasNestedScrollingParent, hasNestedScrollingParent, hasOnClickListeners, hasOverlappingRendering, hasTransientState, isAccessibilityHeading, isAttachedToWindow, isFocusedByDefault, isImportantForAccessibility, isImportantForAutofill, isInLayout, isKeyboardNavigationCluster, isLaidOut, isLayoutDirectionResolved, isNestedScrollingEnabled, isOpaque, isPaddingRelative, isScreenReaderFocusable, jumpDrawablesToCurrentState, keyboardNavigationClusterSearch, offsetLeftAndRight, offsetTopAndBottom, onApplyWindowInsets, onInitializeAccessibilityEvent, onInitializeAccessibilityNodeInfo, onPopulateAccessibilityEvent, performAccessibilityAction, performReceiveContent, postInvalidateOnAnimation, postInvalidateOnAnimation, postOnAnimation, postOnAnimationDelayed, removeAccessibilityAction, removeOnUnhandledKeyEventListener, replaceAccessibilityAction, requestApplyInsets, requireViewById, resolveSizeAndState, restoreDefaultFocus, saveAttributeDataForStyleable, setAccessibilityDelegate, setAccessibilityHeading, setAccessibilityLiveRegion, setAccessibilityPaneTitle, setActivated, setAlpha, setAutofillHints, setBackground, setBackgroundTintList, setBackgroundTintMode, setChildrenDrawingOrderEnabled, setClipBounds, setElevation, setFitsSystemWindows, setFocusedByDefault, setHasTransientState, setImportantForAccessibility, setImportantForAutofill, setKeyboardNavigationCluster, setLabelFor, setLayerPaint, setLayerType, setLayoutDirection, setNestedScrollingEnabled, setNextClusterForwardId, setOnApplyWindowInsetsListener, setOnReceiveContentListener, setOverScrollMode, setPaddingRelative, setPivotX, setPivotY, setPointerIcon, setRotation, setRotationX, setRotationY, setSaveFromParentEnabled, setScaleX, setScaleY, setScreenReaderFocusable, setScrollIndicators, setScrollIndicators, setStateDescription, setSystemGestureExclusionRects, setTooltipText, setTransitionName, setTranslationX, setTranslationY, setTranslationZ, setWindowInsetsAnimationCallback, setX, setY, setZ, startDragAndDrop, startNestedScroll, startNestedScroll, stopNestedScroll, stopNestedScroll, updateDragShadow
from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Source

/*
 * Copyright 2018 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package androidx.legacy.view;

import android.view.View;

/**
 * Helper for accessing features in {@link View} introduced after API
 * level 13 in a backwards compatible fashion.
 *
 * @deprecated Use {@link androidx.core.view.ViewCompat} instead.
 */
@Deprecated
public class ViewCompat extends androidx.core.view.ViewCompat {
    private ViewCompat() {
    }
}