a simple adapter class which will provide prefix based search suggestion from provided suggestions list with syntax highlighting
just add the util package into your project and start using the adapter class for AutoCompleteTextView and RecyclerView
List<String> list = // your suggestion list data
PrefixSearchAutoCompleteAdapter adapter = new PrefixSearchAutoCompleteAdapter(context, list, Color.YELLOW);
autoCompleteTextViewObject.setAdapter(adapter);
List<String> list = // your suggestion list data
PRecyclerPrefixSearchAdapter adapter = new RecyclerPrefixSearchAdapter(context, list, Color.YELLOW);
recyclerviewObject.setAdapter(adapter);