I am trying to add background color for the string inside MultiAutoCompleteTextView.
I am overriding replaceText method in multipleAutocompletetextview, trying to replace charactersequence with html like this
@Override
protected void replaceText(CharSequence text) {
// TODO Auto-generated method stub
String styledText = "<font color='red'>"+text+"</font>.";
super.replaceText(Html.fromHtml(styledText));
}
this is working fine. I Can change the font color. But i want to add background color for the font. Can anybody suggest me, how to achieve this?
( The way we are adding tags while creating question, samething i am trying to implement using MultiAutoCompleteTextView. I want to add background for the selected string. )
Thanks in advance