java - how to set multiple token in MultiAutoCompleteTextview Android -
i need set different adapters different token (i.e when type '@' should call atmentionedadapter , when type '#' should call hashadapter , both has in same multiautocompletetextview please find sample code have used working @ not hash multitextview.settokenizer(new multiautocompletetextview.tokenizer() { @override public charsequence terminatetoken(charsequence text) { int = text.length(); while (i > 0 && text.charat(i - 1) == ' ') { i--; } if (i > 0 && text.charat(i - 1) == ' ') { return text; } else { if (text instanceof spanned) { spannablestring sp = new spannablestring(text + " "); textutils.copyspansfrom((spanned) text, 0, text.length(), object.class,