title: Android SearchView onclick
body: <p>I have a searchView which looks like this:</p>
  
  <pre><code>private void setupSearchView() {
      mSearchView = (SearchView) getActivity().findViewById(
              R.id.search_view_neue);
      setSearchViewBackground();
      mSearchView.setOnClickListener(this);
      mSearchView.setOnQueryTextListener(this);
  }
  
  
  
  
      public boolean onQueryTextSubmit(String query) {
      searchcounter = searchcounter + 1;
  
      setSearchViewBackground();
      ArrayList&lt;WissensdokumenteRecord&gt; documents = settingListContent(new ArrayList&lt;WissensdokumenteRecord&gt;());
  
      setListAdapter(new NeueWissensdokumentItemAdapter(
              inflater.getContext(), R.layout.row_example, documents));
      InputMethodManager im = (InputMethodManager) getActivity()
              .getSystemService(Context.INPUT_METHOD_SERVICE);
      im.hideSoftInputFromWindow(getActivity().getCurrentFocus()
              .getWindowToken(), 0);
  
      return false;
  }
  
  
  
  
  &lt;SearchView
      android:id="@+id/search_view_neue"
      android:layout_width="match_parent"
      android:layout_height="60dp"
      android:layout_marginLeft="40dp"
      android:layout_marginRight="40dp"
      android:background="@drawable/border_searchview"
      android:maxWidth="540dp"
      android:queryHint="Neue Dokumente suchen" &gt;
  &lt;/SearchView&gt;
  </code></pre>
  
  <p>So, the behaviour of the search view is, that the keyboard opens by clicking the search button.  Now I can search for something. Is it possible to do a search by clicking anywhere in the searchview? Does anyone has an example for me?</p>