語言

IViewParent.RequestDisallowInterceptTouchEvent(Boolean) 方法

定義

當孩子不希望該父母及其祖先攔截與 的 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)接觸事件時,會被呼叫。

這個家長應該把這個呼喚傳給它的父母。 該家長必須在觸碰期間服從此請求(即只有在收到 UP 或取消通知後才清除旗標)。

Java 文件 android.view.ViewParent.requestDisallowInterceptTouchEvent(boolean)。

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

適用於