public interface OnApplyWindowInsetsListener
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, it's
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.
Modifier and Type | Method and Description |
---|---|
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. |
WindowInsetsCompat onApplyWindowInsets(View v, WindowInsetsCompat insets)
set
on a View, this listener method will be called instead of the view's own
onApplyWindowInsets
method.v
- The view applying window insetsinsets
- The insets to apply