forum

home / developersection / forums / filter a list when text is change in a list

Filter a list when text is change in a List

Lillian Martin 1744 20-Mar-2015
EditText inputSearch = (EditText)getView().findViewById(R.id.inputGroupSearch);
    inputSearch.addTextChangedListener(new TextWatcher() {
 
        @Override
        public void onTextChanged(CharSequence cs, int arg1, int arg2, int arg3) {
            // When user changed the Text           Myadapter.getFilter().filter(cs);
        }})

but this code is not running


Updated on 20-Mar-2015
Can you answer this question?

Answer

1 Answers

Liked By