Most visited

Recently visited

Added in API level 1

MultiAutoCompleteTextView.Tokenizer

public static interface MultiAutoCompleteTextView.Tokenizer

android.widget.MultiAutoCompleteTextView.Tokenizer
Known Indirect Subclasses


Summary

Public methods

abstract int findTokenEnd(CharSequence text, int cursor)

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

abstract int findTokenStart(CharSequence text, int cursor)

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

abstract CharSequence terminateToken(CharSequence text)

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

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!