爲MultiAutoCompleteTextView.setTokenizer(..)指定分格符號

[代碼] [Java]代碼 package com.example.anttest;

import android.text.SpannableString;
import android.text.Spanned;
import android.text.TextUtils;
import android.widget.MultiAutoCompleteTextView.Tokeni http://www.fpshamen.com/linked/20130301.do; zer;

public class SemicolonTokenizer implements Tokenizer {
    private char charS;
    private String mSTring;

    public SemicolonTokenizer(char charS) {
        this.charS = charS;
        mSTring = String.valueOf(charS);
    }

    public int findTokenStart(CharSequence text, int cursor) {
        int i = cursor;

        while (i > 0
相關文章
相關標籤/搜索