0

How to make words stand out when you enter characters in Searchview in Listview, watch the video to understand the link below, uploaded to Imgur

https://imgur.com/a/d3pqJxD

mySearchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() {
            @Override
            public boolean onQueryTextSubmit(String s) {
                return false;
            }

            @Override
            public boolean onQueryTextChange(String s) {
                adapter.getFilter().filter(s);
               //and here the function should be written somehow
                return false;
            }
        });
  • 1
    Does this answer your question? [Android change color part of a string](https://stackoverflow.com/questions/37007766/android-change-color-part-of-a-string) – Primož Ivančič Apr 02 '22 at 08:34

0 Answers0