Udostępnij za pośrednictwem


View.Focusable Property

Definition

Returns whether this View is currently able to take focus. -or- Set whether this view can receive the focus.

public bool Focusable { [Android.Runtime.Register("isFocusable", "()Z", "")] get; [Android.Runtime.Register("setFocusable", "(Z)V", "GetSetFocusable_ZHandler")] set; }
[<get: Android.Runtime.Register("isFocusable", "()Z", "")>]
[<set: Android.Runtime.Register("setFocusable", "(Z)V", "GetSetFocusable_ZHandler")>]
member this.Focusable : bool with get, set

Property Value

True if this view can take focus, or false otherwise.

Attributes

Remarks

Property getter documentation:

Returns whether this View is currently able to take focus.

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

Property setter documentation:

Set whether this view can receive the focus.

Setting this to false will also ensure that this view is not focusable in touch mode.

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