Udostępnij za pośrednictwem


View.Clickable Property

Definition

Indicates whether this view reacts to click events or not. -or- Enables or disables click events for this view.

public virtual bool Clickable { [Android.Runtime.Register("isClickable", "()Z", "GetIsClickableHandler")] get; [Android.Runtime.Register("setClickable", "(Z)V", "GetSetClickable_ZHandler")] set; }
[<get: Android.Runtime.Register("isClickable", "()Z", "GetIsClickableHandler")>]
[<set: Android.Runtime.Register("setClickable", "(Z)V", "GetSetClickable_ZHandler")>]
member this.Clickable : bool with get, set

Property Value

true if the view is clickable, false otherwise

Attributes

Remarks

Property getter documentation:

Indicates whether this view reacts to click events or not.

Java documentation for android.view.View.isClickable().

Property setter documentation:

Enables or disables click events for this view. When a view is clickable it will change its state to "pressed" on every click. Subclasses should set the view clickable to visually react to user's clicks.

Java documentation for android.view.View.setClickable(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

See also