View.DispatchTouchEvent(MotionEvent) 方法

定义

将触摸屏运动事件向下传递到目标视图;如果此视图是目标视图,则传递该事件。

[Android.Runtime.Register("dispatchTouchEvent", "(Landroid/view/MotionEvent;)Z", "GetDispatchTouchEvent_Landroid_view_MotionEvent_Handler")]
public virtual bool DispatchTouchEvent (Android.Views.MotionEvent? e);
[<Android.Runtime.Register("dispatchTouchEvent", "(Landroid/view/MotionEvent;)Z", "GetDispatchTouchEvent_Landroid_view_MotionEvent_Handler")>]
abstract member DispatchTouchEvent : Android.Views.MotionEvent -> bool
override this.DispatchTouchEvent : Android.Views.MotionEvent -> bool

参数

e
MotionEvent

要调度的运动事件。

返回

如果事件由视图处理,则为 True;否则为 false。

属性

注解

将触摸屏运动事件向下传递到目标视图;如果此视图是目标视图,则传递该事件。

android.view.View.dispatchTouchEvent(android.view.MotionEvent)Java 文档。

此页面的某些部分是基于 创建和共享的工作进行的修改,并根据 署名许可中所述的条款使用。

适用于