SearchView.SetIconifiedByDefault(Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets the default or resting state of the search field.
[Android.Runtime.Register("setIconifiedByDefault", "(Z)V", "GetSetIconifiedByDefault_ZHandler")]
public virtual void SetIconifiedByDefault (bool iconified);
[<Android.Runtime.Register("setIconifiedByDefault", "(Z)V", "GetSetIconifiedByDefault_ZHandler")>]
abstract member SetIconifiedByDefault : bool -> unit
override this.SetIconifiedByDefault : bool -> unit
Parameters
- iconified
- Boolean
whether the search field should be iconified by default
- Attributes
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.
Java documentation for android.widget.SearchView.setIconifiedByDefault(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.