Code example for EditText

Methods: getEditableText

0
 
        final Button buttonSave = (Button) findViewById(R.id.editorSave);
        buttonSave.setOnClickListener(new View.OnClickListener() {
            @Override 
            public void onClick(View v) {
                editorUpdate.update(editText.getEditableText());
                EditorDialog.this.hide();
            } 
        }); 
    } 
 
    public interface EditorUpdate { 
        public void update(CharSequence editorText);
    } 
 
    public void setOnEditorUpdate(EditorUpdate editorUpdate) {
        this.editorUpdate = editorUpdate;
 
    } 
 
    @Override