title: How to use edit text as search box in expandable listview android?
body: <p>In my application i am using expandable list view.Now i want to use search box for display the filtered expandable list view  items.For this purpose i am using the following code</p>
  
  <pre><code>    search = (SearchView) findViewById(R.id.search);
      search.setSearchableInfo(searchManager.getSearchableInfo(getComponentName()));
      search.setIconifiedByDefault(false);
      search.setOnQueryTextListener(this);
      search.setOnCloseListener(this);
  </code></pre>
  
  <p>But this coding only supports above API 11.But i want to implement these feature in below API 11.</p>
  
  <p>This is the way of using edit text as search view for the default list view adapter</p>
  
  <pre><code>  inputSearch.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>