Android.Widget.SearchView.SetIconifiedByDefault Method
Sets the default or resting state of the search field.

Syntax

[Android.Runtime.Register("setIconifiedByDefault", "(Z)V", "GetSetIconifiedByDefault_ZHandler")]
public virtual void SetIconifiedByDefault (bool iconified)

Parameters

iconified
whether the search field should be iconified by default

Remarks

Sets the default or resting state of the search field. If true, a single search icon is shown by default and expands to show the text field and other buttons when pressed. Also, if the default state is iconified, then it collapses to that state when the close button is pressed. Changes to this property will take effect immediately.

The default value is true.

[Android Documentation]

Requirements

Namespace: Android.Widget
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 11