title: No submit button for searchView Android app
body: <p>I use searchview in my Android app and <strong><em>I would like to add a button that user presses to start the search</em></strong>. Based on what I read on the Internet, I can use <code>setSubmitButtonEnabled</code> to invoke a submit button instead of putting a button in the layout file. Here's my code:</p>
  
  <pre><code>public void setSubmitButtonEnabled (boolean enabled) {
  
  }
  </code></pre>
  
  <p>I put my setSubmitButtonEnabled in the menu inflater as below:</p>
  
  <pre><code>@Override
  public boolean onCreateOptionsMenu(Menu menu) {
      MenuInflater inflater = getMenuInflater();
      inflater.inflate(R.menu.mylist, menu);
  
      SearchManager searchManager = (SearchManager) getSystemService(Context.SEARCH_SERVICE);
      SearchView searchView = (SearchView) menu.findItem(R.id.action_search).getActionView();
      searchView.setSearchableInfo(searchManager.getSearchableInfo(getComponentName()));
      searchView.setIconifiedByDefault(false);
  
      setSubmitButtonEnabled(true);
  
      return true;
  }
  </code></pre>
  
  <p>Apparently I am not doing it right because when I launch my app, I don't see any submit button on the screen. What's missing or what's wrong in my code? Is the submit button supposed to appear on the keypad or on the screen? Thank you.</p>