View.SystemGestureExclusionRects 屬性

定義

擷取此檢視版面配置後坐標空間中的區域清單,其中系統不應攔截觸控或其他指向裝置手勢。 -或- 設定此檢視版面配置後坐標空間中的區域清單,其中系統不應攔截觸控或其他指向裝置手勢。

public virtual System.Collections.Generic.IList<Android.Graphics.Rect> SystemGestureExclusionRects { [Android.Runtime.Register("getSystemGestureExclusionRects", "()Ljava/util/List;", "GetGetSystemGestureExclusionRectsHandler", ApiSince=29)] get; [Android.Runtime.Register("setSystemGestureExclusionRects", "(Ljava/util/List;)V", "GetSetSystemGestureExclusionRects_Ljava_util_List_Handler", ApiSince=29)] set; }
[<get: Android.Runtime.Register("getSystemGestureExclusionRects", "()Ljava/util/List;", "GetGetSystemGestureExclusionRectsHandler", ApiSince=29)>]
[<set: Android.Runtime.Register("setSystemGestureExclusionRects", "(Ljava/util/List;)V", "GetSetSystemGestureExclusionRects_Ljava_util_List_Handler", ApiSince=29)>]
member this.SystemGestureExclusionRects : System.Collections.Generic.IList<Android.Graphics.Rect> with get, set

屬性值

清單集依據 #setSystemGestureExclusionRects(List)

屬性

備註

屬性 getter 檔:

擷取此檢視版面配置後坐標空間中的區域清單,其中系統不應攔截觸控或其他指向裝置手勢。

請勿修改傳回的清單。

android.view.View.getSystemGestureExclusionRects() JAVA 檔。

屬性 setter 檔:

設定此檢視版面配置後坐標空間中的區域清單,其中系統不應攔截觸控或其他指向裝置手勢。 <em > 這個方法應該由 或 #onDraw(Canvas) 呼叫 #onLayout(boolean, int, int, int, int) 。 </Em>

使用此選項可告知系統,檢視的特定子領域需要接收手勢輸入,才能在可能發生衝突的全域系統手勢中正常運作。 例如,如果系統想要擷取從螢幕邊緣撥動手勢來提供系統層級的流覽功能,例如流覽選單容器的檢視可以標示左側 (或開始自行) 邊緣,因為需要使用此 API 的手勢擷取優先順序。 然後,系統可以選擇放寬自己的手勢辨識,以允許應用程式取用使用者的手勢。 應用程式不需要註冊排除範圍,以廣泛跨越區域,例如整個 ScrollView 區域,或針對簡單的按下和放開按一下目標,例如 Button 。 與檢視互動時,標記排除矩形需要 X 或 Y 維度中小型區域中的有效觸控手勢,例如邊緣撥動或拖曳 SeekBar 指紋。

注意:系統會 200dp 將其納入考慮的排除範圍垂直範圍限制。 隱藏導覽列 #SYSTEM_UI_FLAG_IMMERSIVE_STICKY stickily 時,也不會 android.inputmethodservice.InputMethodService input method 套用至 和 Intent#CATEGORY_HOME home activity 的限制。

android.view.View.setSystemGestureExclusionRects(java.util.List<android.graphics.Rect>) JAVA 檔。

此頁面的部分是根據所建立和共用的工作進行修改,並根據 2.5 屬性授權中所述的詞彙來使用。

適用於