Search code examples
androidandroid-edittextsettext

How to continue set text on edit text field?


I have edit text field and set text to them, but when I set another text, past text is missing. How to continue entering text?


Solution

  • final String originalTextFromEditTextView = editTextView.getText().toString();
    editTextView.setText(originalTextFromEditTextView + yourText);