次の方法で共有


SearchView.SetQueryHint Method

Definition

Overloads

SetQueryHint(ICharSequence)

Sets the hint text to display in the query text field.

SetQueryHint(String)

Sets the hint text to display in the query text field.

SetQueryHint(ICharSequence)

Sets the hint text to display in the query text field.

[Android.Runtime.Register("setQueryHint", "(Ljava/lang/CharSequence;)V", "GetSetQueryHint_Ljava_lang_CharSequence_Handler")]
public virtual void SetQueryHint (Java.Lang.ICharSequence? hint);
[<Android.Runtime.Register("setQueryHint", "(Ljava/lang/CharSequence;)V", "GetSetQueryHint_Ljava_lang_CharSequence_Handler")>]
abstract member SetQueryHint : Java.Lang.ICharSequence -> unit
override this.SetQueryHint : Java.Lang.ICharSequence -> unit

Parameters

hint
ICharSequence

the hint text to display or null to clear

Attributes

Remarks

Sets the hint text to display in the query text field. This overrides any hint specified in the SearchableInfo.

This value may be specified as an empty string to prevent any query hint from being displayed.

Java documentation for android.widget.SearchView.setQueryHint(java.lang.CharSequence).

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

SetQueryHint(String)

Sets the hint text to display in the query text field.

public void SetQueryHint (string? hint);
member this.SetQueryHint : string -> unit

Parameters

hint
String

the hint text to display or null to clear

Remarks

Sets the hint text to display in the query text field. This overrides any hint specified in the SearchableInfo.

This value may be specified as an empty string to prevent any query hint from being displayed.

Java documentation for android.widget.SearchView.setQueryHint(java.lang.CharSequence).

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