語言

WindowInsets.TappableElementInsets 屬性

定義

此方法在 API 等級 30 中被棄用。 改用 getInsets(int) 搭配 Type.tappableElement() 代替。

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

屬性值

屬性

備註

回傳可點擊元素的 Inset。

可點擊元素的內嵌代表必須<至少/b> 內嵌多少可點擊元素 <b>才能保持可點擊且不受持久系統視窗視覺干擾。

這可能比 #getSystemWindowInsets() 系統視窗大致透明且允許簡單點擊(但不一定更複雜的手勢)小。

請注意,通常可點擊的強元素<>應該<>與 對#getSystemWindowInsets() system window insets齊,以避免與系統條重疊。

當 View#SYSTEM_UI_FLAG_LAYOUT_STABLE 請求時,即使插入區域因或 View#SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN可被標記View#SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION,插入區域仍會被返回。

這個嵌入與 一起#getSystemWindowInsets() system window insets被 吞噬#consumeSystemWindowInsets()。

此會員已被棄用。 改用 #getInsets(int) 搭配 Type#tappableElement()。

Java 文件 android.view.WindowInsets.getTappableElementInsets()。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於