Drawable.HasFocusStateSpecified Property

Definition

Indicates whether this drawable has at least one state spec explicitly specifying android.R.attr#state_focused.

public virtual bool HasFocusStateSpecified { [Android.Runtime.Register("hasFocusStateSpecified", "()Z", "GetHasFocusStateSpecifiedHandler", ApiSince=31)] get; }
[<get: Android.Runtime.Register("hasFocusStateSpecified", "()Z", "GetHasFocusStateSpecifiedHandler", ApiSince=31)>]
member this.HasFocusStateSpecified : bool

Property Value

true if android.R.attr#state_focused is specified for this drawable.

Attributes

Remarks

Indicates whether this drawable has at least one state spec explicitly specifying android.R.attr#state_focused.

Note: A View uses a Drawable instance as its background and it changes its appearance based on a state. On keyboard devices, it should specify its android.R.attr#state_focused to make sure the user knows which view is holding the focus.

Java documentation for android.graphics.drawable.Drawable.hasFocusStateSpecified().

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