Megosztás a következőn keresztül:


View.SetAllowClickWhenDisabled(Boolean) Method

Definition

Enables or disables click events for this view when disabled.

[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

Parameters

clickableWhenDisabled
Boolean

true to make the view clickable, false otherwise

Attributes

Remarks

Enables or disables click events for this view when disabled.

Java documentation for android.view.View.setAllowClickWhenDisabled(boolean).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to