Skip to content Skip to sidebar Skip to footer

Ignore Spaces While Searching Listview Android

I am using an edittext and a listview in my app. I implemented the search functionality and made the edittext a search bar. I am using a TextWatcher to detect changes instantly. Bu

Solution 1:

just a logic not implemented do try in

 onTextChanged(CharSequence cs, int arg1, int arg2, int arg3) {

       convert the cs to string replace space(" ") with ""  and then MainActivity.this.adapter.getFilter().filter(cs);

Post a Comment for "Ignore Spaces While Searching Listview Android"