I am currently using SearchView widget inside ActionBarcompat to filter a list while searching.
SearchView
ActionBarcompat
When the user starts entering text the Li
You need to use collapseActionView attribute.
collapseActionView
The collapseActionView attribute allows your SearchView to expand to take up the whole action bar and collapse back down into a normal action bar item when not in use.
For example: