次の方法で共有


SearchView.SetQuery Method

Definition

Overloads

SetQuery(ICharSequence, Boolean)

Sets a query string in the text field and optionally submits the query as well.

SetQuery(String, Boolean)

Sets a query string in the text field and optionally submits the query as well.

SetQuery(ICharSequence, Boolean)

Sets a query string in the text field and optionally submits the query as well.

[Android.Runtime.Register("setQuery", "(Ljava/lang/CharSequence;Z)V", "GetSetQuery_Ljava_lang_CharSequence_ZHandler")]
public virtual void SetQuery (Java.Lang.ICharSequence? query, bool submit);
[<Android.Runtime.Register("setQuery", "(Ljava/lang/CharSequence;Z)V", "GetSetQuery_Ljava_lang_CharSequence_ZHandler")>]
abstract member SetQuery : Java.Lang.ICharSequence * bool -> unit
override this.SetQuery : Java.Lang.ICharSequence * bool -> unit

Parameters

query
ICharSequence

the query string. This replaces any query text already present in the text field.

submit
Boolean

whether to submit the query right now or only update the contents of text field.

Attributes

Remarks

Sets a query string in the text field and optionally submits the query as well.

Java documentation for android.widget.SearchView.setQuery(java.lang.CharSequence, 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

SetQuery(String, Boolean)

Sets a query string in the text field and optionally submits the query as well.

public void SetQuery (string? query, bool submit);
member this.SetQuery : string * bool -> unit

Parameters

query
String

the query string. This replaces any query text already present in the text field.

submit
Boolean

whether to submit the query right now or only update the contents of text field.

Remarks

Sets a query string in the text field and optionally submits the query as well.

Java documentation for android.widget.SearchView.setQuery(java.lang.CharSequence, 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