Läs på engelska

Dela via


View.SetAllowClickWhenDisabled(Boolean) Method

Definition

Enables or disables click events for this view when disabled.

C#
[Android.Runtime.Register("setAllowClickWhenDisabled", "(Z)V", "GetSetAllowClickWhenDisabled_ZHandler", ApiSince=31)]
public virtual void SetAllowClickWhenDisabled(bool clickableWhenDisabled);

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

Produkt Versioner
.NET for Android .NET for Android API 34, .NET for Android API 35