Share via


View.LongClickable Property

Definition

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

public virtual bool LongClickable { [Android.Runtime.Register("isLongClickable", "()Z", "GetIsLongClickableHandler")] get; [Android.Runtime.Register("setLongClickable", "(Z)V", "GetSetLongClickable_ZHandler")] set; }
[<get: Android.Runtime.Register("isLongClickable", "()Z", "GetIsLongClickableHandler")>]
[<set: Android.Runtime.Register("setLongClickable", "(Z)V", "GetSetLongClickable_ZHandler")>]
member this.LongClickable : bool with get, set

Property Value

true if the view is long clickable, false otherwise

Attributes

Remarks

Property getter documentation:

Indicates whether this view reacts to long click events or not.

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

Property setter documentation:

Enables or disables long click events for this view. When a view is long clickable it reacts to the user holding down the button for a longer duration than a tap. This event can either launch the listener or a context menu.

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