IViewParent.RequestDisallowInterceptTouchEvent(Boolean) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
当子级不希望此父级及其祖先截获触摸事件 ViewGroup#onInterceptTouchEvent(MotionEvent)
时调用。
[Android.Runtime.Register("requestDisallowInterceptTouchEvent", "(Z)V", "GetRequestDisallowInterceptTouchEvent_ZHandler:Android.Views.IViewParentInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void RequestDisallowInterceptTouchEvent (bool disallowIntercept);
[<Android.Runtime.Register("requestDisallowInterceptTouchEvent", "(Z)V", "GetRequestDisallowInterceptTouchEvent_ZHandler:Android.Views.IViewParentInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member RequestDisallowInterceptTouchEvent : bool -> unit
参数
- disallowIntercept
- Boolean
如此 如果子级不希望父级截获触摸事件。
- 属性
注解
当子级不希望此父级及其祖先截获触摸事件 ViewGroup#onInterceptTouchEvent(MotionEvent)
时调用。
此父级应将此调用传递给其父级。 此父级必须在触摸期间遵守此请求(即,在此父级收到启动或取消后,才清除该标志。
适用于 . 的 android.view.ViewParent.requestDisallowInterceptTouchEvent(boolean)
Java 文档
本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。