LeeJelin / android-section-list

Automatically exported from code.google.com/p/android-section-list
Other
0 stars 0 forks source link

How to add the seachView and more importantly the filter for StandardArrayAdapter or SectionListAdapter ? #12

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I'm trying to add searchbar/seachView for this section list

//============================================================

  private TextWatcher textWatcher = new TextWatcher() {

        @Override
        public void onTextChanged(CharSequence s, int start, int before, int count) {
            //mArrayAdapter.getFilter().filter(s);

            SectionListActivity.this.arrayAdapter.getFilter().filter(s.toString());

        }

        @Override
        public void beforeTextChanged(CharSequence s, int start, int count, int after) {}

        @Override
        public void afterTextChanged(Editable s) {}
    };

//===============================================================

not able to get the required results after entering the text in search bar

I have to implement filters for custom StandardArrayAdapter or 
SectionListAdapter?  

please suggest the search solution for this section list. 

Original issue reported on code.google.com by somayaji...@gmail.com on 26 Dec 2012 at 5:42

GoogleCodeExporter commented 9 years ago
Solved by implementing custom filters for list view

Original comment by somayaji...@gmail.com on 30 Apr 2013 at 11:07