Share via


View.IsInTouchMode Property

Definition

Returns the touch mode state associated with this view.

public virtual bool IsInTouchMode { [Android.Runtime.Register("isInTouchMode", "()Z", "GetIsInTouchModeHandler")] get; }
[<get: Android.Runtime.Register("isInTouchMode", "()Z", "GetIsInTouchModeHandler")>]
member this.IsInTouchMode : bool

Property Value

the touch mode state associated with this view

Attributes

Remarks

Returns the touch mode state associated with this view.

Attached views return the touch mode state from the associated window's display. Detached views just return the default touch mode value defined in com.android.internal.R.bool.config_defaultInTouchMode.

Touch mode is entered once the user begins interacting with the device by touch, and affects various things like whether focus highlight is always visible to the user.

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

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