title: android - collapse searchview after submit
body: <p>I am using searchview in my application ( without action bar). How can i collapse searchview after query text submit ?</p>
  
  <p>I have these listeners ;</p>
  
  <pre><code>        @Override
          public boolean onQueryTextSubmit(String query) {
  
              InputMethodManager imm = (InputMethodManager)thisFr.getSystemService(Context.INPUT_METHOD_SERVICE);
              imm.hideSoftInputFromWindow(globalSearch.getWindowToken(), 0);
  
              return false;
          }
  
          @Override
          public boolean onQueryTextChange(String newText) {
              // TODO Auto-generated method stub
              return false;
          }
  </code></pre>
  
  <p>I don't use ActionBar so i don't have a function like collapseActionView() .</p>
  
  <p>Waiting for help</p>
  
  <p>Thanks</p>