You only need to set 2 lines of code in order for the SearchView to be reset to its iconified state.

These are:

The first line empties the EditText field while the second line hides the SearchView component and shows the MenuItem icon back.

That’s all!

Related Posts Plugin for WordPress, Blogger...