title: Clear the text of search menu in android
body: <p>I have created a simple menu as follow, which contains a <code>Search View</code>. </p>
  
  <pre><code>@Override
      public boolean onCreateOptionsMenu(Menu menu) {
          MenuInflater inflater = getMenuInflater();
          inflater.inflate(R.menu.activity_main_actions, menu);
  
          SearchManager searchManager = (SearchManager) getSystemService(Context.SEARCH_SERVICE);
          SearchView searchView = (SearchView) menu.findItem(R.id.action_search).getActionView();
          searchView.setSearchableInfo(searchManager.getSearchableInfo(getComponentName()));
  
          return super.onCreateOptionsMenu(menu);
      }
  </code></pre>
  
  <p>I have used <code>android:launchMode="singleTop"</code> method. Well after I perform a search and update UI, the text entered still remains there.</p>
  
  <p><img src="https://i.stack.imgur.com/XRj3F.png" alt="image1"></p>
  
  <p>What I want is after search button is pressed, the <code>Search View</code> should restore itself as:</p>
  
  <p><img src="https://i.stack.imgur.com/m1n9s.png" alt="image"></p>
  
  <p>Is there any way on how to shrink it back?</p>