Android Chinese API (24) -- multiautocompletetextview. commatokenizer

Source: Internet
Author: User

 

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.

 

 

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.