public void setIconifiedByDefault(boolean iconified) {
        if (searchView != null) {
            searchView.setIconifiedByDefault(iconified);
        } else if (supportView != null) {
            supportView.setIconifiedByDefault(iconified);
        } else {
            throw new IllegalStateException(ERROR_NO_SEARCHVIEW);
        }
    }
public void setIconifiedByDefault ( boolean iconified ) { if ( searchView != null ) { searchView . setIconifiedByDefault ( iconified ) ; } else if ( supportView != null ) { supportView . setIconifiedByDefault ( iconified ) ; } else { throw new IllegalStateException ( ERROR_NO_SEARCHVIEW ) ; } }
Sets the default or resting state of the search field. If {@code 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.
<p>The default value is true.</p>

@param iconified whether the search field should be iconified by default