title: How to expand SearchView attached to a view?
body: <p>I want the default view of searchview in  expanded form, placed inside layout file.</p>
  
  <p>my code...</p>
  
  <p><strong>layout file:</strong></p>
  
  <pre><code> &lt;android.support.v7.widget.SearchView
  
              android:id="@+id/search_view"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_alignBottom="@id/rel2"
              android:layout_alignTop="@id/rel2"
              android:layout_centerHorizontal="true"
              android:layout_centerVertical="true"
              android:textSize="16sp" /&gt;
  </code></pre>
  
  <p><strong>Java src:</strong></p>
  
  <pre><code>search_view.setIconifiedByDefault(false);
  </code></pre>
  
  <p>There is other option like:
  <a href="https://stackoverflow.com/questions/14235677/how-do-i-open-the-searchview-programmatically">this one</a>
  and <a href="https://stackoverflow.com/questions/11710042/expand-and-give-focus-to-searchview-automaticly">this one</a></p>
  
  <p>both dosen't work for me.</p>