belongs to Maven artifact com.android.support:support-compat:28.0.0-alpha1
OnApplyWindowInsetsListener
public
interface
OnApplyWindowInsetsListener
android.support.v4.view.OnApplyWindowInsetsListener |
Listener for applying window insets on a view in a custom way.
Apps may choose to implement this interface if they want to apply custom policy
to the way that window insets are treated for a view. If an OnApplyWindowInsetsListener
is set, its
onApplyWindowInsets
method will be called instead of the View's own onApplyWindowInsets
method.
The listener may optionally call the parameter View's onApplyWindowInsets
method to apply the View's normal behavior as part of its own.
Summary
Public methods | |
---|---|
abstract
WindowInsetsCompat
|
onApplyWindowInsets(View v, WindowInsetsCompat insets)
When |
Public methods
onApplyWindowInsets
WindowInsetsCompat onApplyWindowInsets (View v, WindowInsetsCompat insets)
When set
on a View, this listener method will be called instead of the view's own
onApplyWindowInsets
method.
Parameters | |
---|---|
v |
View : The view applying window insets |
insets |
WindowInsetsCompat : The insets to apply |
Returns | |
---|---|
WindowInsetsCompat |
The insets supplied, minus any insets that were consumed |
Annotations
Interfaces
- ActionProvider.VisibilityListener
- AsyncLayoutInflater.OnInflateFinishedListener
- LayoutInflaterFactory
- MenuItemCompat.OnActionExpandListener
- NestedScrollingChild
- NestedScrollingChild2
- NestedScrollingParent
- NestedScrollingParent2
- OnApplyWindowInsetsListener
- ScrollingView
- TintableBackgroundView
- ViewPager.OnAdapterChangeListener
- ViewPager.OnPageChangeListener
- ViewPager.PageTransformer
- ViewPropertyAnimatorListener
- ViewPropertyAnimatorUpdateListener
Classes
- AbsSavedState
- AccessibilityDelegateCompat
- ActionProvider
- AsyncLayoutInflater
- GestureDetectorCompat
- GravityCompat
- InputDeviceCompat
- LayoutInflaterCompat
- MarginLayoutParamsCompat
- MenuCompat
- MenuItemCompat
- MotionEventCompat
- NestedScrollingChildHelper
- NestedScrollingParentHelper
- PagerAdapter
- PagerTabStrip
- PagerTitleStrip
- PointerIconCompat
- ScaleGestureDetectorCompat
- VelocityTrackerCompat
- ViewCompat
- ViewConfigurationCompat
- ViewGroupCompat
- ViewPager
- ViewPager.LayoutParams
- ViewPager.SavedState
- ViewPager.SimpleOnPageChangeListener
- ViewParentCompat
- ViewPropertyAnimatorCompat
- ViewPropertyAnimatorListenerAdapter
- WindowCompat
- WindowInsetsCompat