View.FocusableInTouchMode Property

Definition

When a view is focusable, it may not want to take focus when in touch mode. -or- Set whether this view can receive focus while in touch mode.

public bool FocusableInTouchMode { [Android.Runtime.Register("isFocusableInTouchMode", "()Z", "")] get; [Android.Runtime.Register("setFocusableInTouchMode", "(Z)V", "GetSetFocusableInTouchMode_ZHandler")] set; }
[<get: Android.Runtime.Register("isFocusableInTouchMode", "()Z", "")>]
[<set: Android.Runtime.Register("setFocusableInTouchMode", "(Z)V", "GetSetFocusableInTouchMode_ZHandler")>]
member this.FocusableInTouchMode : bool with get, set

Property Value

Whether the view is focusable in touch mode.

Attributes

Remarks

Property getter documentation:

When a view is focusable, it may not want to take focus when in touch mode. For example, a button would like focus when the user is navigating via a D-pad so that the user can click on it, but once the user starts touching the screen, the button shouldn't take focus

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

Property setter documentation:

Set whether this view can receive focus while in touch mode.

Setting this to true will also ensure that this view is focusable.

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