In Android, unlike iOS, the user always has a back button available to close the keyboard (if that means you “deselect the text”). This is why the "done" button is not needed if you want to exit EditText editing. Alternatively, you can use
editText.setOnFocusChangeListener(new View.OnFocusChangeListener() { @Override public void onFocusChange(View v, boolean hasFocus) { } });
to know when the text being edited is not focused by the user by clicking on another view of the user interface.
I am afraid that it is impossible to break lines on the keyboard and the "next" keyboard at the same time. My suggestion for this is perhaps to create a button next to edittext when the focus in this view works like a "done" or "next" button.
Hope this helps!
source share