title: SearchView and ABS
body: <p>Previously I had an <code>EditText</code> with a <code>onTextChangedListener</code> to handle the users search queries. This was done this way:</p>
  
  <p>ed.addTextChangedListener(new TextWatcher() {</p>
  
  <pre><code>            @Override
              public void onTextChanged(CharSequence arg0, int arg1, int arg2,
                      int arg3) {
  
                  textLength = ed.getText().length();
                  list.clear();
                  isPresent = initIsPresentArray();
  
                  for (int i = 0; i &lt; tempList.length; i++) {
                      for (int j = 0; j &lt; (tempList[i].length() - (textLength - 1)); j++) {
                          if (textLength &lt;= tempList[i].length()) {
                              if (isPresent[i] == false) {
                                  if (ed.getText()
                                          .toString()
                                          .equalsIgnoreCase(
                                                  (String) tempList[i]
                                                          .subSequence(
                                                                  j,
                                                                  (j + textLength)))) {
                                      list.add(tempCaseList.get(i));
                                      isPresent[i] = true;
                                  }
                              }
                          }
                      }
                      if (list.size() == 0) {
                          error.setText(getResources().getString(R.string.notFound));
                          v.setVisibility(View.GONE);
                      } else {
                          error.setText("");
                          v.setVisibility(View.VISIBLE);
                      }
  
                      lv.setAdapter(new CustomAdapter(History.this, list));
                  }
              }
          });
  </code></pre>
  
  <p>This nasty piece of code updates a ListView  on the fly, while the user types in what to search for. It works quite nice with an <code>EditText</code>. Now, I'm implementing ActionBarSherlock to my project, and want to use the SearchWidget:</p>
  
  <p><img src="https://i.stack.imgur.com/OrDLi.png" alt="enter image description here"></p>
  
  <p>I have inflated my menu:</p>
  
  <pre><code>    @Override
      public boolean onCreateOptionsMenu(Menu menu) {
          MenuInflater inflater = getSupportMenuInflater();
          inflater.inflate(R.menu.actionbarmenu, menu);
          SearchManager searchManager = (SearchManager) getSystemService(Context.SEARCH_SERVICE);
          SearchView searchView = (SearchView)menu.findItem(R.id.searchCases).getActionView();
          searchView.setSearchableInfo(searchManager.getSearchableInfo(getComponentName()));
          searchView.setIconifiedByDefault(true);
          searchView.setSubmitButtonEnabled(true);
          return true;
      }
  </code></pre>
  
  <p>How can apply the same behaviour as the <code>OnTextChangedListener</code> to this <code>SearchView</code>? Is it possible? </p>