title: Filtering ListView using the EditText inside the ActionBar
body: <p>I want to carry out functionality the same as in the link below:</p>
  
  <p><a href="http://www.androidhive.info/2012/09/android-adding-search-functionality-to-listview/" rel="nofollow">http://www.androidhive.info/2012/09/android-adding-search-functionality-to-listview/</a></p>
  
  <p>However this example uses a normal EditText and I don't want to waste screen real estate. Therefore I'd prefer to use the EditText positioned inside the ActionBar, the same that is used for normal searching. How can I access this EditText in order to place a TextWatcher on it? What's the ID for it?</p>
  
  <p>I want to add this TextWatcher:</p>
  
  <pre><code>edittext.addTextChangedListener(new TextWatcher() {
  
  @Override
  public void onTextChanged(CharSequence cs, int arg1, int arg2, int arg3) {
      // When user changed the Text
      MainActivity.this.adapter.getFilter().filter(cs);   
  }
  
  @Override
  public void beforeTextChanged(CharSequence arg0, int arg1, int arg2,
          int arg3) {
      // TODO Auto-generated method stub
  
  }
  
  @Override
  public void afterTextChanged(Editable arg0) {
      // TODO Auto-generated method stub                          
  }
  });
  </code></pre>
  
  <p>Thanks in advance!</p>