語言

ZoomButtonsController.OnTouch(View, MotionEvent) 方法

定義

ZoomButtonsController 實作了 OnTouchListener,但這不需要在其公開 API 中顯示。

[Android.Runtime.Register("onTouch", "(Landroid/view/View;Landroid/view/MotionEvent;)Z", "GetOnTouch_Landroid_view_View_Landroid_view_MotionEvent_Handler")]
public virtual bool OnTouch(Android.Views.View? v, Android.Views.MotionEvent? e);
[<Android.Runtime.Register("onTouch", "(Landroid/view/View;Landroid/view/MotionEvent;)Z", "GetOnTouch_Landroid_view_View_Landroid_view_MotionEvent_Handler")>]
abstract member OnTouch : Android.Views.View * Android.Views.MotionEvent -> bool
override this.OnTouch : Android.Views.View * Android.Views.MotionEvent -> bool

參數

v
View

檢視:觸控事件被派遣到的視圖。

e
MotionEvent

就是 e 值。

傳回

若聽者已消費事件,則為真;否則為假。

實作

屬性

備註

android.widget.ZoomButtonsController.onTouch(android.view.View, android.view.MotionEvent)Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於