mention

Multiautocompletetextview, Show autocomplete drop down only when user presses a key after '@' key (like mention in FB app)

帅比萌擦擦* 提交于 2019-12-01 08:08:59
问题 I got it working with custom '@' tokenizer. But it fails for the first autocompletion. My code works as a comma tokenizer where I get suggestion for any character and next suggestion only after a comma(it's '@' in my case). Here's my code. String[] str={"Andoid","Jelly Bean","Froyo", "Ginger Bread","Eclipse Indigo","Eclipse Juno"}; editEmojicon.setTokenizer(new MultiAutoCompleteTextView.Tokenizer() { @Override public int findTokenStart(CharSequence text, int cursor) { int i = cursor; while (i