Most visited

Recently visited

Added in API level 1

MultiAutoCompleteTextView.CommaTokenizer

public static class MultiAutoCompleteTextView.CommaTokenizer
extends Object implements MultiAutoCompleteTextView.Tokenizer

java.lang.Object
   ↳ android.widget.MultiAutoCompleteTextView.CommaTokenizer


这个简单的Tokenizer可以用于用逗号和一个或多个空格分隔项目的列表。

Summary

Public constructors

MultiAutoCompleteTextView.CommaTokenizer()

Public methods

int findTokenEnd(CharSequence text, int cursor)

返回开始于偏移令牌(减去尾随标点)的端部 cursortext

int findTokenStart(CharSequence text, int cursor)

返回结束于偏移令牌开始 cursortext

CharSequence terminateToken(CharSequence text)

返回 text ,必要时进行修改,以确保它以令牌终止符(例如空格或逗号)结尾。

Inherited methods

From class java.lang.Object
From interface android.widget.MultiAutoCompleteTextView.Tokenizer

Public constructors

MultiAutoCompleteTextView.CommaTokenizer

Added in API level 1
MultiAutoCompleteTextView.CommaTokenizer ()

Public methods

findTokenEnd

Added in API level 1
int findTokenEnd (CharSequence text, 
                int cursor)

返回开始于偏移令牌(减去尾随标点)的端部 cursortext

Parameters
text CharSequence
cursor int
Returns
int

findTokenStart

Added in API level 1
int findTokenStart (CharSequence text, 
                int cursor)

返回结束于偏移令牌开始 cursortext

Parameters
text CharSequence
cursor int
Returns
int

terminateToken

Added in API level 1
CharSequence terminateToken (CharSequence text)

返回 text ,必要时进行修改,以确保它以令牌终止符(例如空格或逗号)结尾。

Parameters
text CharSequence
Returns
CharSequence

Hooray!