前言android
本章内容是android.widget.MultiAutoCompleteTextView.Tokenizer,翻译来自颖哥儿,再次感谢 颖哥儿 !期待你一块儿参与Android API 的中文翻译,联系我over140@gmail.com。
ide
声明函数
欢迎转载,但请保留文章原始出处:)
spa
农民伯伯:http://over140.blog.51cto.com/翻译
Android中文翻译组:http://www.cnblogs.com/over140/ blog
正文接口
1、结构get
public static interface MultiAutoCompleteTextView.Tokenizerit
间接子类class
MultiAutoCompleteTextView.CommaTokenizer, Rfc822Tokenizer
2、 公共方法
public abstract int findTokenEnd (CharSequence text, int cursor)
返回标记在文本中的结束位置,其偏移量大小为cursor
public abstract int findTokenStart (CharSequence text, int cursor)
返回标记在文本中的开始位置,其偏移量大小为cursor
public abstract CharSequence terminateToken (CharSequence text)
返回文本内容,若是有必要的话,此函数会确认文本是否以终结符结束(好比以空格或者逗号结尾)
结束
本章为MultiAutoCompleteTextView的内部接口,示例参照MultiAutoCompleteTextView。