View.FocusedByDefault Property

Definition

Returns whether this View should receive focus when the focus is restored for the view hierarchy containing this view. -or- Sets whether this View should receive focus when the focus is restored for the view hierarchy containing this view.

public bool FocusedByDefault { [Android.Runtime.Register("isFocusedByDefault", "()Z", "", ApiSince=26)] get; [Android.Runtime.Register("setFocusedByDefault", "(Z)V", "GetSetFocusedByDefault_ZHandler", ApiSince=26)] set; }
[<get: Android.Runtime.Register("isFocusedByDefault", "()Z", "", ApiSince=26)>]
[<set: Android.Runtime.Register("setFocusedByDefault", "(Z)V", "GetSetFocusedByDefault_ZHandler", ApiSince=26)>]
member this.FocusedByDefault : bool with get, set

Property Value

true if this view is the default-focus view, false otherwise

Attributes

Remarks

Property getter documentation:

Returns whether this View should receive focus when the focus is restored for the view hierarchy containing this view.

Focus gets restored for a view hierarchy when the root of the hierarchy gets added to a window or serves as a target of cluster navigation.

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

Property setter documentation:

Sets whether this View should receive focus when the focus is restored for the view hierarchy containing this view.

Focus gets restored for a view hierarchy when the root of the hierarchy gets added to a window or serves as a target of cluster navigation.

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