List of usage examples for android.text.util Rfc822Tokenizer Rfc822Tokenizer
Rfc822Tokenizer
From source file:info.guardianproject.otr.app.im.app.AddContactActivity.java
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); mApp = (ImApp) getApplication();/*from w w w.j a v a 2 s .c o m*/ mApp.setAppTheme(this); mHandler = new SimpleAlertHandler(this); setContentView(R.layout.add_contact_activity); BrandingResources brandingRes = mApp.getBrandingResource(0); setTitle(brandingRes.getString(BrandingResourceIDs.STRING_ADD_CONTACT_TITLE)); TextView label = (TextView) findViewById(R.id.input_contact_label); label.setText(brandingRes.getString(BrandingResourceIDs.STRING_LABEL_INPUT_CONTACT)); mAddressList = (MultiAutoCompleteTextView) findViewById(R.id.email); mAddressList.setTokenizer(new Rfc822Tokenizer()); mAddressList.addTextChangedListener(mTextWatcher); mListSpinner = (Spinner) findViewById(R.id.choose_list); setupAccountSpinner(); mInviteButton = (Button) findViewById(R.id.invite); mInviteButton.setText(brandingRes.getString(BrandingResourceIDs.STRING_BUTTON_ADD_CONTACT)); mInviteButton.setOnClickListener(mButtonHandler); mInviteButton.setEnabled(false); mScanButton = (Button) findViewById(R.id.scan); mScanButton.setOnClickListener(mScanHandler); Intent intent = getIntent(); String scheme = intent.getScheme(); if (TextUtils.equals(scheme, "xmpp")) { addContactFromUri(intent.getData()); } }
From source file:com.android.mail.compose.ComposeActivity.java
private void initializeRecipientEditTextView(RecipientEditTextView view) { view.setTokenizer(new Rfc822Tokenizer()); view.setThreshold(COMPLETION_THRESHOLD); }
From source file:com.android.calendar.event.EditEventView.java
private MultiAutoCompleteTextView initMultiAutoCompleteTextView(RecipientEditTextView list) { if (ChipsUtil.supportsChipsUi()) { mAddressAdapter = new RecipientAdapter(mActivity); list.setAdapter((BaseRecipientAdapter) mAddressAdapter); list.setOnFocusListShrinkRecipients(false); } else {/*from w ww .ja v a 2s. c om*/ mAddressAdapter = new EmailAddressAdapter(mActivity); list.setAdapter((EmailAddressAdapter) mAddressAdapter); } list.setTokenizer(new Rfc822Tokenizer()); list.setValidator(mEmailValidator); // NOTE: assumes no other filters are set list.setFilters(sRecipientFilters); return list; }
From source file:com.tct.mail.compose.ComposeActivity.java
private void initializeRecipientEditTextView(RecipientEditTextView view) { view.setTokenizer(new Rfc822Tokenizer()); view.setThreshold(COMPLETION_THRESHOLD); // TS: jian.xu 2015-06-05 EMAIL BUGFIX-1006499 ADD_S view.setDropDownVerticalOffset(0);/*from w w w . ja v a 2 s. c o m*/ // TS: jian.xu 2015-06-05 EMAIL BUGFIX-1006499 ADD_E }