Available Methods
- postInvalidateOnAnimation ( )
- LAYOUT_DIRECTION_RTL
- getLayoutDirection ( )
- setElevation ( )
- setOnApplyWindowInsetsListener ( )
- LAYOUT_DIRECTION_LTR
- postOnAnimation ( )
- SCROLL_AXIS_VERTICAL
- canScrollVertically ( )
- isAttachedToWindow ( )
- setTranslationX ( )
- getTranslationY ( )
- setTransitionName ( )
- getElevation ( )
- setBackground ( )
- getImportantForAccessibility ( )
- setPaddingRelative ( )
- setImportantForAccessibility ( )
- isLaidOut ( )
- setTranslationY ( )
- getPaddingStart ( )
- setAccessibilityDelegate ( )
- IMPORTANT_FOR_ACCESSIBILITY_AUTO
- setLayoutDirection ( )
- offsetTopAndBottom ( )
- getTranslationX ( )
- getFitsSystemWindows ( )
- offsetLeftAndRight ( )
- setScaleY ( )
- setAlpha ( )
- replaceAccessibilityAction ( )
- requestApplyInsets ( )
- canScrollHorizontally ( )
- setPivotX ( )
- setAccessibilityLiveRegion ( )
- TYPE_TOUCH
- setScaleX ( )
- postOnAnimationDelayed ( )
- setTranslationZ ( )
- setNestedScrollingEnabled ( )
- setPivotY ( )
- isNestedScrollingEnabled ( )
- setChildrenDrawingOrderEnabled ( )
- TYPE_NON_TOUCH
- setFitsSystemWindows ( )
- getZ ( )
- NestedScrollType ( )
- onInitializeAccessibilityNodeInfo ( )
- getMinimumHeight ( )
Related Classes
- android.os.Bundle
- android.content.Context
- android.view.View
- android.util.Log
- android.widget.TextView
- android.view.ViewGroup
- android.app.Activity
- java.util.Locale
- android.view.LayoutInflater
- android.os.Build
- android.util.AttributeSet
- android.widget.ImageView
- android.graphics.Color
- android.graphics.Canvas
- android.text.TextUtils
- android.graphics.Paint
- android.view.MotionEvent
- android.graphics.drawable.Drawable
- android.content.res.TypedArray
- android.annotation.TargetApi
- android.graphics.Rect
- android.annotation.SuppressLint
- android.view.WindowManager
- android.content.res.Resources
- android.widget.FrameLayout
Java Code Examples for androidx.core.view.ViewCompat#getZ()
The following examples show how to use
androidx.core.view.ViewCompat#getZ() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: BaseSwitchButton.java From switchbutton with MIT License | 5 votes |
private void layoutInternal() { final boolean isViewIdle = isViewIdle(); if (mIsDebug) Log.i(getDebugTag(), "layoutInternal isViewIdle:" + isViewIdle); mViewNormal.layout(0, 0, mViewNormal.getMeasuredWidth(), mViewNormal.getMeasuredHeight()); mViewChecked.layout(0, 0, mViewChecked.getMeasuredWidth(), mViewChecked.getMeasuredHeight()); int left = 0; int top = mAttrModel.getMarginTop(); if (isViewIdle) { left = mIsChecked ? getLeftChecked() : getLeftNormal(); } else { left = mViewThumb.getLeft(); } mViewThumb.layout(left, top, left + mViewThumb.getMeasuredWidth(), top + mViewThumb.getMeasuredHeight()); final float backZ = Math.max(ViewCompat.getZ(mViewNormal), ViewCompat.getZ(mViewChecked)); if (ViewCompat.getZ(mViewThumb) <= backZ) ViewCompat.setZ(mViewThumb, backZ + 1); dealViewIdle(); }
Example 2
Source File: TestUtilsMatchers.java From material-components-android with Apache License 2.0 | 5 votes |
/** * Returns a matcher that matches views which have a z-value greater than 0. Also matches if the * platform we're running on does not support z-values. */ public static Matcher<View> hasZ() { return new TypeSafeMatcher<View>() { @Override public void describeTo(Description description) { description.appendText("has a z value greater than 0"); } @Override public boolean matchesSafely(View view) { return Build.VERSION.SDK_INT < 21 || ViewCompat.getZ(view) > 0f; } }; }
Example 3
Source File: Animer.java From Animer with Apache License 2.0 | 4 votes |
@Override public float getValue(View view) { return ViewCompat.getZ(view); }