Rectangle 27 1

android AutoCompleteTextView dropdown list text highlighted according to search text?


Spannable spanText = Spannable.Factory.getInstance().newSpannable(textString);
spanText.setSpan(new BackgroundColorSpan(0xFFFFFF00), startIndex, endIndex, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
myTv.setText(spanText);

I am not using custom view. I am using auto complete textView(Default android)

So, In your getView method add the following

Note