Code example for AutoCompleteTextView

Methods: getTextsetText

0
        } 
    } 
 
    private boolean addEditTextTag() { 
        boolean changed = false;
        String tag = addTagEditText.getText().toString();
        tag = tag.trim();
        tag = tag.toLowerCase();
 
        if (tag.length() > 0) {
            changed = addTag(tag);
            addTagEditText.setText("");
        } 
        return changed;
    } 
 
    public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {
        final int id = v.getId();
        if (id == R.id.tag_add_text) {
            if (addEditTextTag() && listener != null) {
                listener.onTagListChange(this);