Udostępnij za pośrednictwem


SearchView.QueryRefinementEnabled Property

Definition

Returns whether query refinement is enabled for all items or only specific ones. -or- Specifies if a query refinement button should be displayed alongside each suggestion or if it should depend on the flags set in the individual items retrieved from the suggestions provider.

public virtual bool QueryRefinementEnabled { [Android.Runtime.Register("isQueryRefinementEnabled", "()Z", "GetIsQueryRefinementEnabledHandler")] get; [Android.Runtime.Register("setQueryRefinementEnabled", "(Z)V", "GetSetQueryRefinementEnabled_ZHandler")] set; }
[<get: Android.Runtime.Register("isQueryRefinementEnabled", "()Z", "GetIsQueryRefinementEnabledHandler")>]
[<set: Android.Runtime.Register("setQueryRefinementEnabled", "(Z)V", "GetSetQueryRefinementEnabled_ZHandler")>]
member this.QueryRefinementEnabled : bool with get, set

Property Value

true if enabled for all items, false otherwise.

Attributes

Remarks

Property getter documentation:

Returns whether query refinement is enabled for all items or only specific ones.

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

Property setter documentation:

Specifies if a query refinement button should be displayed alongside each suggestion or if it should depend on the flags set in the individual items retrieved from the suggestions provider. Clicking on the query refinement button will replace the text in the query text field with the text from the suggestion. This flag only takes effect if a SearchableInfo has been specified with #setSearchableInfo(SearchableInfo) and not when using a custom adapter.

Java documentation for android.widget.SearchView.setQueryRefinementEnabled(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

See also