Preface
This chapter covers Android. widget. multiautocompletetextview. commatokenizer. The translation is from Ying Ge er. Thank you again! I look forward to your participation in Android API Chinese translation, contact me over140@gmail.com.
Statement
You are welcome to repost, but please keep the original source of the article :)
Blog Garden: http://www.cnblogs.com/
Android Chinese translation group: http://www.cnblogs.com/over140/
Body
I. Structure
Public static class multiautocompletetextview. commatokenizer
Extends object
Implements multiautocompletetextview. tokenizer
Ii. Overview
This simple component can be used in some lists that contain items that are separated by commas (,) and one or more spaces.
Iii. Public Methods
Public int findtokenend (charsequence text, int cursor)
Returns the end position of the tag in the text, and its offset is cursor.
Public int findtokenstart (charsequence text, int cursor)
Returns the starting position of the mark in the text, and its offset is cursor.
Public charsequence terminatetoken (charsequence text)
Returns the text content. If necessary, this function checks whether the text ends with a terminator (for example, ending with a space or a comma)
End
This chapter is the internal class of multiautocompletetextview. For examples, see multiautocompletetextview.