I currently have a SearchView in the action bar of my app. When I click the search icon, the SearchView expands and the keyboard pops up as expecte
SearchView
Also you can use collapseActionView. It automatically handle back button, collapsing SearchView
collapseActionView