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 1569 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