ViewGroup.MotionEventSplittingEnabled 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
如果派遣到此 ViewGroup 的 MotionEvents 可以拆分成多個子,則會回傳為真。
public virtual bool MotionEventSplittingEnabled { [Android.Runtime.Register("isMotionEventSplittingEnabled", "()Z", "GetIsMotionEventSplittingEnabledHandler")] get; [Android.Runtime.Register("setMotionEventSplittingEnabled", "(Z)V", "GetSetMotionEventSplittingEnabled_ZHandler")] set; }
[<get: Android.Runtime.Register("isMotionEventSplittingEnabled", "()Z", "GetIsMotionEventSplittingEnabledHandler")>]
[<set: Android.Runtime.Register("setMotionEventSplittingEnabled", "(Z)V", "GetSetMotionEventSplittingEnabled_ZHandler")>]
member this.MotionEventSplittingEnabled : bool with get, set
屬性值
如果派發到此 ViewGroup 的 MotionEvents 可以拆分成多個子節點,則為 true。
- 屬性
備註
財產取得者文件:
如果派遣到此 ViewGroup 的 MotionEvents 可以拆分成多個子,則會回傳為真。
Java 文件 android.view.ViewGroup.isMotionEventSplittingEnabled()。
屬性設定文件:
在觸控事件派遣時,啟用或停用將 MotionEvents 分割給多個子節點的功能。 此行為預設適用於針對 SDK 版本或更新版本 Build.VERSION_CODES#HONEYCOMB 的應用程式。
啟用此選項後,MotionEvents 可能會根據指標最初落機的位置被拆分並派遣到不同的子視圖。 這讓使用者能夠獨立捲動兩個內容窗格、按鍵和對不同內容執行獨立手勢等互動。
Java 文件 android.view.ViewGroup.setMotionEventSplittingEnabled(boolean)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。