次の方法で共有


SearchView.SetSearchableInfo(SearchableInfo) Method

Definition

Sets the SearchableInfo for this SearchView.

[Android.Runtime.Register("setSearchableInfo", "(Landroid/app/SearchableInfo;)V", "GetSetSearchableInfo_Landroid_app_SearchableInfo_Handler")]
public virtual void SetSearchableInfo (Android.App.SearchableInfo? searchable);
[<Android.Runtime.Register("setSearchableInfo", "(Landroid/app/SearchableInfo;)V", "GetSetSearchableInfo_Landroid_app_SearchableInfo_Handler")>]
abstract member SetSearchableInfo : Android.App.SearchableInfo -> unit
override this.SetSearchableInfo : Android.App.SearchableInfo -> unit

Parameters

searchable
SearchableInfo

a SearchableInfo can be retrieved from the SearchManager, for a specific activity or a global search provider.

Attributes

Remarks

Sets the SearchableInfo for this SearchView. Properties in the SearchableInfo are used to display labels, hints, suggestions, create intents for launching search results screens and controlling other affordances such as a voice button.

Java documentation for android.widget.SearchView.setSearchableInfo(android.app.SearchableInfo).

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