Android MultiAutoCompleteTextView - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Android MultiAutoCompleteTextView class.

This code example shows how to use the following methods: setId, setTokenizer, setEnabled
 
    public MultiAutoCompleteEditTextPreference(Context context,
            AttributeSet attrs, int defStyle) {
        super(context, attrs, defStyle);
 
        mEditText = new MultiAutoCompleteTextView(context, attrs);
        mEditText.setId(android.R.id.edit);
        mEditText.setEnabled(true);
        mEditText.setTokenizer(new MultiAutoCompleteTextView.CommaTokenizer());
    } 
 
    public MultiAutoCompleteEditTextPreference(Context context, AttributeSet attrs) {
        this(context, attrs, android.R.attr.editTextPreferenceStyle);
    } 
 
    public MultiAutoCompleteEditTextPreference(Context context) {
        this(context, null);
    } 
 
    public void setText(String text) {
Full Snippet Info
5
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods: dismissDropDown, isPopupShowing
		 * @Override public void onClick(View v) { toggleTaglistPopup(); } }); 
		 */ 
	} 
 
	private void toggleTaglistPopup() { 
		if (mTextView.isPopupShowing()) {
			mTextView.dismissDropDown();
		} else { 
			mTextView.showDropDown();
		} 
	} 
 
	public void setUri(Uri uri) {
		mUri = uri;
	} 
 
	public void setTagList(String[] taglist) {
		mTagList = taglist;
 
		if (taglist != null) {
Full Snippet Info
5
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods: dismissDropDown, isPopupShowing
		 * @Override public void onClick(View v) { toggleTaglistPopup(); } }); 
		 */ 
	} 
 
	private void toggleTaglistPopup() { 
		if (mTextView.isPopupShowing()) {
			mTextView.dismissDropDown();
		} else { 
			mTextView.showDropDown();
		} 
	} 
 
	public void setUri(Uri uri) {
		mUri = uri;
	} 
 
	public void setTagList(String[] taglist) {
		mTagList = taglist;
 
		if (taglist != null) {
Full Snippet Info
5
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods: setId, setText, setTextColor
			//T20. Return the view. 
			return autoComplete;
		} 
		// Refer to comment T15 - T20 
		if (choice == 13) {
			MultiAutoCompleteTextView multiAutoComplete = new MultiAutoCompleteTextView(context);
			multiAutoCompleteId++;
			multiAutoComplete.setId(multiAutoCompleteId);
			multiAutoComplete.setText("MultiAutoComplete" + multiAutoCompleteId);
			multiAutoComplete.setTextColor(Color.WHITE);
			return multiAutoComplete;
		} 
		return null; 
	} 
	//T21. Get View Id 
	public int getPlainTextId(){ 
		return plainTextId;
	} 
	// Refer to comment T21.  
	public int getPasswordId(){ 
Full Snippet Info
5
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods: setId, setLayoutParams, setOnTouchListener, setText, setTextColor
		     ViewCollection.getInstance().addView(autoComplete);
		} 
		else if (choice == 13) {
			params = new FrameLayout.LayoutParams(integerWidth,integerHeight);
			context = Home.getHome().getLayout().getContext();
			MultiAutoCompleteTextView multiAutoComplete = new MultiAutoCompleteTextView(context);
			multiAutoComplete.setId(integerId);
			multiAutoComplete.setText("MultiAutoComplete" + integerId);
			multiAutoComplete.setTextColor(Color.WHITE);
			params.setMargins(integerLayoutX, integerLayoutY, 0, 0);
			multiAutoComplete.setLayoutParams(params);
			Home.getHome().getLayout().addView(		multiAutoComplete, params);
			multiAutoComplete.setOnTouchListener(new DragListener(multiAutoComplete));
			if (multiAutoCompleteId > integerId){
				multiAutoCompleteId  = multiAutoCompleteId ;
			} 
			else { 
				multiAutoCompleteId  = integerId;
			TextFieldsFactory.getInstance().setMultiAutoCompleteId(multiAutoCompleteId);
			} 

5
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods: setAdapter, setTokenizer
 
    @Override 
    public void onLoadFinished(Loader<Cursor> cursorLoader, Cursor cursor) {
        if (mTagsAdapter == null) {
            mTagsAdapter = new TagsAdapter(getActivity(), cursor, 0);
            mTags.setAdapter(mTagsAdapter);
            mTags.setTokenizer(new MultiAutoCompleteTextView.CommaTokenizer());
        } else { 
            mTagsAdapter.swapCursor(cursor);
        } 
    } 
 
    @Override 
    public void onLoaderReset(Loader<Cursor> cursorLoader) {
        mTagsAdapter.swapCursor(null);
    } 
 
    public ContentValues getContentValues() {
        ContentValues values = new ContentValues();
        values.put(TaskProvider.KEY_TITLE, mTitle.getText().toString());
Full Snippet Info
4
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods: setAdapter, setTokenizer
This code example shows how to use the following methods: setText
	{ 
		new AlertDialog.Builder(context).setTitle("Ò©Æ·Ãû³Æ").setSingleChoiceItems(
				mStuffs, 0,
			     new DialogInterface.OnClickListener() {
			      public void onClick(DialogInterface dialog, int which) {
			    	  mStuff.setText(mStuffs[which]);
			    	  dialog.dismiss();
			      } 
			     }).setNegativeButton("È¡Ïû", null).show();
	} 
	 
 
	@Override 
	protected void onSave() 
	{ 
		FeedingEvent event = new FeedingEvent();
 
		event.setFoodName(mFoodName.getText().toString());
		event.setFeedingTime(getTime());
		event.setDrinkAmount(Long.valueOf(mDrinkAmount.getText().toString()));
Full Snippet Info
4
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods: getText
    } 
     
    public void onSaveButtonClick(View view) {
    	Intent intent = getIntent();
    	 
    	intent.putExtra("notes", editNotes.getText().toString());    
    	intent.putExtra("date", editDate.getText().toString());    	
    	 
    	this.setResult(Activity.RESULT_OK, intent);
    	finish();
    }     
 
} 
Full Snippet Info
4
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods: setText
        datePicker = (DatePicker) findViewById(R.id.datePicker);
        datePicker.init(datePicker.getYear(), datePicker.getMonth(), datePicker.getDayOfMonth(),
        		new DatePicker.OnDateChangedListener() {
					public void onDateChanged(DatePicker view, int year, int monthOfYear, int dayOfMonth) {
						Date date = new Date(year, monthOfYear, dayOfMonth, 0, 0);
						tx.setText(date.toString());
					} 
				}); 
    } 
     
	@Override 
	public boolean onCreateOptionsMenu(Menu menu)
	{ 
		super.onCreateOptionsMenu(menu);
		menu.add("Forms").setIcon(android.R.drawable.ic_menu_edit);
		return true; 
	} 
 
	public void onItemSelected(AdapterView<?> parent, View view, int pos, long id)
	{ 
Full Snippet Info
4
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java

Related Android MultiAutoCompleteTextView Questions & Answers:

See Code Examples for Android MultiAutoCompleteTextView Methods: