다음을 통해 공유


View.RevealOnFocusHint Property

Definition

Returns this view's preference for reveal behavior when it gains focus. -or- Sets this view's preference for reveal behavior when it gains focus.

public bool RevealOnFocusHint { [Android.Runtime.Register("getRevealOnFocusHint", "()Z", "", ApiSince=25)] get; [Android.Runtime.Register("setRevealOnFocusHint", "(Z)V", "", ApiSince=25)] set; }
[<get: Android.Runtime.Register("getRevealOnFocusHint", "()Z", "", ApiSince=25)>]
[<set: Android.Runtime.Register("setRevealOnFocusHint", "(Z)V", "", ApiSince=25)>]
member this.RevealOnFocusHint : bool with get, set

Property Value

true if this view would prefer to become fully visible when it gains focus, false if it would prefer not to disrupt scroll positioning

Attributes

Remarks

Property getter documentation:

Returns this view's preference for reveal behavior when it gains focus.

When this method returns true for a child view requesting focus, ancestor views responding to a focus change in ViewParent#requestChildFocus(View, View) should make a best effort to make the newly focused child fully visible to the user. When it returns false, ancestor views should preferably not disrupt scroll positioning or other properties affecting visibility to the user as part of the focus change.

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

Property setter documentation:

Sets this view's preference for reveal behavior when it gains focus.

When set to true, this is a signal to ancestor views in the hierarchy that this view would prefer to be brought fully into view when it gains focus. For example, a text field that a user is meant to type into. Other views such as scrolling containers may prefer to opt-out of this behavior.

The default value for views is true, though subclasses may change this based on their preferred behavior.

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