Multi-line EditText with Done action button
android
Solution
Use
editText.setImeOptions(EditorInfo.IME_ACTION_DONE);
editText.setRawInputType(InputType.TYPE_CLASS_TEXT);
and in XML:
android:inputType="textMultiLine"
Problem
Is it possible to have an `EditText` widget with `android:inputType="textMultiLine"` set, and `android:imeOptions="actionDone"` at the same time? I'd like a multi-line edit box, with the action button on the keyboard to be Done, not Enter (Carriage Return), but it doesn't seem to be working.