Preventing the SearchView from collapsing
<p>I have a <code>SearchView</code> in my action-bar. When the user searches, I invoke my <code>AsyncTask</code> to begin fetching the data but after the data is retuned, the <code>SearchView</code>collapses.</p>

<p>Here's my code that creates the search widget:</p>

<pre><code>public boolean onCreateOptionsMenu(Menu menu) {

    MenuInflater inflater = getMenuInflater();
    inflater.inflate(R.menu.search, menu);

    SearchManager searchManager = (SearchManager) getSystemService(Context.SEARCH_SERVICE);
    SearchView searchView = (SearchView) menu.findItem(R.id.search).getActionView();
    searchView.setSearchableInfo(searchManager.getSearchableInfo(getComponentName()));

    if (this.objAdapter == null) {
        searchView.setIconified(false);
        searchView.requestFocusFromTouch();
    }

    return true;

}
</code></pre>

<p>I'd to prevent the user from collapsing the <code>SearchView</code>. I'd the search string to be visible at all times.</p>

<p>How can I do this?</p>
