Condividi tramite


SearchView.QueryHintFormatted Property

Definition

Returns the hint text that will be displayed in the query text field.

public virtual Java.Lang.ICharSequence? QueryHintFormatted { [Android.Runtime.Register("getQueryHint", "()Ljava/lang/CharSequence;", "GetGetQueryHintHandler")] get; }
[<get: Android.Runtime.Register("getQueryHint", "()Ljava/lang/CharSequence;", "GetGetQueryHintHandler")>]
member this.QueryHintFormatted : Java.Lang.ICharSequence

Property Value

the displayed query hint text, or null if none set

Attributes

Remarks

Returns the hint text that will be displayed in the query text field.

The displayed query hint is chosen in the following order: <ol> <li>Non-null value set with #setQueryHint(CharSequence)<li>Value specified in XML using android.R.styleable#SearchView_queryHint android:queryHint<li>Valid string resource ID exposed by the SearchableInfo via SearchableInfo#getHintId()<li>Default hint provided by the theme against which the view was inflated </ol>

Java documentation for android.widget.SearchView.getQueryHint().

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