How to add the seachView and more importantly the filter for StandardArrayAdapter or SectionListAdapter ?
From [email protected] on December 26, 2012 18:42:07
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: http://code.google.com/p/android-section-list/issues/detail?id=12
From [email protected] on April 30, 2013 04:07:27
Solved by implementing custom filters for list view