Available Methods
- postInvalidateOnAnimation ( )
- canScrollVertically ( )
- setAlpha ( )
- setTranslationX ( )
- postOnAnimation ( )
- setElevation ( )
- setScaleY ( )
- setTranslationY ( )
- SCROLL_AXIS_VERTICAL
- setScaleX ( )
- setImportantForAccessibility ( )
- canScrollHorizontally ( )
- getTranslationY ( )
- LAYOUT_DIRECTION_RTL
- setAccessibilityDelegate ( )
- setPivotY ( )
- setPivotX ( )
- setBackground ( )
- setTransitionName ( )
- setLayerType ( )
- getLayoutDirection ( )
- getImportantForAccessibility ( )
- getTranslationX ( )
- setRotationY ( )
- getFitsSystemWindows ( )
- isAttachedToWindow ( )
- offsetTopAndBottom ( )
- IMPORTANT_FOR_ACCESSIBILITY_AUTO
- LAYER_TYPE_NONE
- setRotationX ( )
- setFitsSystemWindows ( )
- setChildrenDrawingOrderEnabled ( )
- LAYER_TYPE_HARDWARE
- getAlpha ( )
- setRotation ( )
- offsetLeftAndRight ( )
- setOnApplyWindowInsetsListener ( )
- animate ( )
- setOverScrollMode ( )
- isLaidOut ( )
- getScaleX ( )
- getParentForAccessibility ( )
- setLayoutDirection ( )
- setTranslationZ ( )
- setBackgroundTintList ( )
- IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS
- getOverScrollMode ( )
- setLayerPaint ( )
- getLayerType ( )
- isNestedScrollingEnabled ( )
- stopNestedScroll ( )
- ScrollAxis ( )
- LAYOUT_DIRECTION_LTR
- setNestedScrollingEnabled ( )
- MEASURED_STATE_TOO_SMALL
- OVER_SCROLL_IF_CONTENT_SCROLLS
- requestApplyInsets ( )
- hasOnClickListeners ( )
- onInitializeAccessibilityNodeInfo ( )
- MEASURED_STATE_MASK
- hasTransientState ( )
- setPaddingRelative ( )
- NestedScrollType ( )
- MEASURED_SIZE_MASK
- dispatchApplyWindowInsets ( )
- getMinimumHeight ( )
- isOpaque ( )
- getY ( )
- performAccessibilityAction ( )
- getMeasuredWidthAndState ( )
- OVER_SCROLL_ALWAYS
- getPaddingEnd ( )
- setAccessibilityLiveRegion ( )
- getX ( )
- resolveSizeAndState ( )
- getMeasuredHeightAndState ( )
- getElevation ( )
- getScaleY ( )
- postOnAnimationDelayed ( )
- combineMeasuredStates ( )
- OVER_SCROLL_NEVER
- hasOverlappingRendering ( )
- setY ( )
Related Classes
- android.os.Bundle
- android.content.Context
- android.view.View
- android.util.Log
- android.widget.TextView
- android.content.Intent
- android.view.ViewGroup
- android.app.Activity
- android.view.LayoutInflater
- android.os.Build
- android.util.AttributeSet
- android.widget.ImageView
- android.graphics.Color
- android.graphics.Canvas
- android.text.TextUtils
- android.view.MotionEvent
- android.graphics.drawable.Drawable
- android.widget.LinearLayout
- android.content.res.TypedArray
- android.support.annotation.Nullable
- android.support.annotation.NonNull
- android.graphics.Rect
- android.view.WindowManager
- android.content.res.Resources
- android.widget.FrameLayout
Java Code Examples for android.support.v4.view.ViewCompat#dispatchApplyWindowInsets()
The following examples show how to use
android.support.v4.view.ViewCompat#dispatchApplyWindowInsets() .
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: BottomSheetInsetsBehavior.java From BottomSheetCoordinatorLayout with Apache License 2.0 | 5 votes |
@NonNull @Override public WindowInsetsCompat onApplyWindowInsets(CoordinatorLayout coordinatorLayout, V child, WindowInsetsCompat insets) { // Steal the inset and dispatch to view. ViewCompat.dispatchApplyWindowInsets(child, insets); // Pass unconsumed insets. return super.onApplyWindowInsets(coordinatorLayout, child, insets); }
Example 2
Source File: InsetsPercentRelativeLayout.java From Music-Player with Apache License 2.0 | 5 votes |
private void setWindowInsets(WindowInsetsCompat insets) { // Now dispatch them to our children for (int i = 0, z = getChildCount(); i < z; i++) { final View child = getChildAt(i); insets = ViewCompat.dispatchApplyWindowInsets(child, insets); if (insets.isConsumed()) { break; } } }
Example 3
Source File: AppBarLayout.java From ticdesign with Apache License 2.0 | 5 votes |
private void setWindowInsets(WindowInsetsCompat insets) { // Invalidate the total scroll range... mTotalScrollRange = INVALID_SCROLL_RANGE; mLastInsets = insets; // Now dispatch them to our children for (int i = 0, z = getChildCount(); i < z; i++) { final View child = getChildAt(i); insets = ViewCompat.dispatchApplyWindowInsets(child, insets); if (insets.isConsumed()) { break; } } }
Example 4
Source File: CoordinatorLayout.java From ticdesign with Apache License 2.0 | 5 votes |
private void dispatchChildApplyWindowInsets(WindowInsetsCompat insets) { if (insets.isConsumed()) { return; } for (int i = 0, z = getChildCount(); i < z; i++) { final View child = getChildAt(i); if (ViewCompat.getFitsSystemWindows(child)) { final LayoutParams lp = (LayoutParams) child.getLayoutParams(); final Behavior b = lp.getBehavior(); if (b != null) { // If the view has a behavior, let it try first insets = b.onApplyWindowInsets(this, child, insets); if (insets.isConsumed()) { // If it consumed the insets, break break; } } // Now let the view try and consume them insets = ViewCompat.dispatchApplyWindowInsets(child, insets); if (insets.isConsumed()) { break; } } } }