Hi,
I have an ExpandableListView with several groups and each group
contains several children. I want to make this list searchable, just
like a regular list view. I have a SimpleCursorTreeAdapter (mAdapter)
for this expandlable list.
I tried to use the built in list filter using:
mSearchBox.addTextChangedListener(new TextWatcher() {
public void beforeTextChanged(CharSequence s, int start, int
count,
int after) {
}
public void onTextChanged(CharSequence s, int start, int before,
int count) {
mAdapter.getFilter().filter(s);
}
public void afterTextChanged(Editable arg0) {
// TODO Auto-generated method stub
}
});
The above code does not work for filtering.
Any idea on how can I implement the search/filter functionality?
Thanks
Kunal
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en