次の方法で共有


View.HasFocus Property

Definition

Returns true if this view has focus itself, or is the ancestor of the view that has focus.

public virtual bool HasFocus { [Android.Runtime.Register("hasFocus", "()Z", "GetHasFocusHandler")] get; }
[<get: Android.Runtime.Register("hasFocus", "()Z", "GetHasFocusHandler")>]
member this.HasFocus : bool

Property Value

True if this view has or contains focus, false otherwise.

Attributes

Remarks

Returns true if this view has focus itself, or is the ancestor of the view that has focus.

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

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