I solved this issue in next simple way.
SearchView menu item:
<item
android:id="@+id/menu_item_search"
android:icon="@drawable/ic_search"
android:title="@android:string/search_go"
app:actionViewClass="android.support.v7.widget.SearchView"
app:showAsAction="always|collapseActionView" />
To expand SearchView and show keyboard programmatically call:
mMenuItemSearch.expandActionView();
mSearchView.setQuery("your default query test or null", true);
Tested with different showAsAction flags. As result keyboard does not shown when flag: "always". However everything works with flag: "always|collapseActionView"
expandActionView() + setQuery("null or restored text", true); can be called when view created (or restored) to show keyboard and focus on search. P.S: call mSearchView.clearFocus(); after this two method to clear the focus.