Sdílet prostřednictvím


ViewGroup.MotionEventSplittingEnabled Property

Definition

Returns true if MotionEvents dispatched to this ViewGroup can be split to multiple children. -or- Enable or disable the splitting of MotionEvents to multiple children during touch event dispatch.

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

Property Value

true if MotionEvents dispatched to this ViewGroup can be split to multiple children.

Attributes

Remarks

Property getter documentation:

Returns true if MotionEvents dispatched to this ViewGroup can be split to multiple children.

Java documentation for android.view.ViewGroup.isMotionEventSplittingEnabled().

Property setter documentation:

Enable or disable the splitting of MotionEvents to multiple children during touch event dispatch. This behavior is enabled by default for applications that target an SDK version of Build.VERSION_CODES#HONEYCOMB or newer.

When this option is enabled MotionEvents may be split and dispatched to different child views depending on where each pointer initially went down. This allows for user interactions such as scrolling two panes of content independently, chording of buttons, and performing independent gestures on different pieces of content.

Java documentation for android.view.ViewGroup.setMotionEventSplittingEnabled(boolean).

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