MaterialSearchView doesn't get focus on startup - Android
<p>I am using MaterialSearchView (<a href="https://github.com/MiguelCatalan/MaterialSearchView" rel="nofollow">https://github.com/MiguelCatalan/MaterialSearchView</a>), a library to implement SearchView in a Material Design Approach.</p>

<p>It puts a searchview in the toolbar. However don't know how to focus on the search, so that when the actviity starts, the search gets the focus right away and the virtual keyboard appears. It only focuses if i click on the search icon.</p>

<pre><code>MaterialSearchView searchView;
        searchView = MaterialSearchView)getActivity().findViewById(R.id.search_view);
searchView.requestFocus();
</code></pre>

<p>doesn't work.</p>

<p>I tried it from the fragment and from the activity.</p>

<p>Thanks</p>