一、结构
public static interface MultiAutoCompleteTextView.Tokenizer
间接子类
MultiAutoCompleteTextView.CommaTokenizer, Rfc822Tokenizer
二、 公共方法
public abstract int findTokenEnd (CharSequence text, int cursor)
返回标记在文本中的结束位置,其偏移量大小为cursor
public abstract int findTokenStart (CharSequence text, int cursor)
返回标记在文本中的开始位置,其偏移量大小为cursor
public abstract CharSequence terminateToken (CharSequence text)
返回文本内容,如果有必要的话,此函数会确认文本是否以终结符结束(比如以空格或者逗号结尾)
本文转自博客园农民伯伯的博客,原文链接:Android 中文 API (23) —— MultiAutoCompleteTextView.Tokenizer,如需转载请自行联系原博主。