Share via


SearchView.SubmitButtonEnabled Property

Definition

Returns whether the submit button is enabled when necessary or never displayed. -or- Enables showing a submit button when the query is non-empty.

public virtual bool SubmitButtonEnabled { [Android.Runtime.Register("isSubmitButtonEnabled", "()Z", "GetIsSubmitButtonEnabledHandler")] get; [Android.Runtime.Register("setSubmitButtonEnabled", "(Z)V", "GetSetSubmitButtonEnabled_ZHandler")] set; }
[<get: Android.Runtime.Register("isSubmitButtonEnabled", "()Z", "GetIsSubmitButtonEnabledHandler")>]
[<set: Android.Runtime.Register("setSubmitButtonEnabled", "(Z)V", "GetSetSubmitButtonEnabled_ZHandler")>]
member this.SubmitButtonEnabled : bool with get, set

Property Value

whether the submit button is enabled automatically when necessary

Attributes

Remarks

Property getter documentation:

Returns whether the submit button is enabled when necessary or never displayed.

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

Property setter documentation:

Enables showing a submit button when the query is non-empty. In cases where the SearchView is being used to filter the contents of the current activity and doesn't launch a separate results activity, then the submit button should be disabled.

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