I want to get a text(Multi-line) from Edittext same as given Screenshot.
I want below output when getText() from Edittext.
Output:
did you try this one
message = etMessage.getText().toString().replaceAll("\\n", "")
please see this also How can I preserve line breaks from EditText?