Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
public static interface

View.OnApplyWindowInsetsListener

android.view.View.OnApplyWindowInsetsListener

Class Overview

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 WindowInsets onApplyWindowInsets ( View v, WindowInsets insets)
When set on a View, this listener method will be called instead of the view's own onApplyWindowInsets method.

Public Methods

public abstract WindowInsets onApplyWindowInsets ( View v, WindowInsets insets)

When set on a View, this listener method will be called instead of the view's own onApplyWindowInsets method.

Parameters
v The view applying window insets
insets The insets to apply
Returns
  • The insets supplied, minus any insets that were consumed