語言

View.SetAllowClickWhenDisabled(Boolean) 方法

定義

關閉此檢視時,啟用或停用點擊事件。

[Android.Runtime.Register("setAllowClickWhenDisabled", "(Z)V", "GetSetAllowClickWhenDisabled_ZHandler", ApiSince=31)]
public virtual void SetAllowClickWhenDisabled(bool clickableWhenDisabled);
[<Android.Runtime.Register("setAllowClickWhenDisabled", "(Z)V", "GetSetAllowClickWhenDisabled_ZHandler", ApiSince=31)>]
abstract member SetAllowClickWhenDisabled : bool -> unit
override this.SetAllowClickWhenDisabled : bool -> unit

參數

clickableWhenDisabled
Boolean

為 true 以使視圖可點擊,否則為 false

屬性

備註

關閉此檢視時,啟用或停用點擊事件。

的 android.view.View.setAllowClickWhenDisabled(boolean)Java 檔。

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

適用於