android-section-list icon indicating copy to clipboard operation
android-section-list copied to clipboard

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

Open gkapusta opened this issue 11 years ago • 1 comments

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

gkapusta avatar Apr 16 '14 09:04 gkapusta

From [email protected] on April 30, 2013 04:07:27

Solved by implementing custom filters for list view

gkapusta avatar Apr 16 '14 09:04 gkapusta