FileDocCategorySizeDatePackage
MainActivity.javaAPI DocAndroid 5.1 API1686Thu Mar 12 22:22:50 GMT 2015com.android.ex.chips.sample

MainActivity

public class MainActivity extends android.app.Activity

Fields Summary
Constructors Summary
Methods Summary
protected voidonCreate(android.os.Bundle savedInstanceState)

        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        final RecipientEditTextView emailRetv =
                (RecipientEditTextView) findViewById(R.id.email_retv);
        emailRetv.setTokenizer(new Rfc822Tokenizer());
        emailRetv.setAdapter(new BaseRecipientAdapter(this));

        final RecipientEditTextView phoneRetv =
                (RecipientEditTextView) findViewById(R.id.phone_retv);
        phoneRetv.setTokenizer(new MultiAutoCompleteTextView.CommaTokenizer());
        phoneRetv.setAdapter(
                new BaseRecipientAdapter(BaseRecipientAdapter.QUERY_TYPE_PHONE, this));