WindowInsets.TappableElementInsets Property

Definition

Returns the tappable element insets.

public Android.Graphics.Insets TappableElementInsets { [Android.Runtime.Register("getTappableElementInsets", "()Landroid/graphics/Insets;", "", ApiSince=29)] get; }
[<get: Android.Runtime.Register("getTappableElementInsets", "()Landroid/graphics/Insets;", "", ApiSince=29)>]
member this.TappableElementInsets : Android.Graphics.Insets

Property Value

Attributes

Remarks

Returns the tappable element insets.

The tappable element insets represent how much tappable elements <b>must at least</b> be inset to remain both tappable and visually unobstructed by persistent system windows.

This may be smaller than #getSystemWindowInsets() if the system window is largely transparent and lets through simple taps (but not necessarily more complex gestures).

Note that generally, tappable elements <strong>should</strong> be aligned with the #getSystemWindowInsets() system window insets instead to avoid overlapping with the system bars.

When View#SYSTEM_UI_FLAG_LAYOUT_STABLE is requested, an inset will be returned even when the area covered by the inset would be tappable due to View#SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN or View#SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION.

This inset is consumed together with the #getSystemWindowInsets() system window insets by #consumeSystemWindowInsets().

This member is deprecated. Use #getInsets(int) with Type#tappableElement() instead.

Java documentation for android.view.WindowInsets.getTappableElementInsets().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to