I want a Multiline
EditText
to allow imeOptions="actionNext"
.
This works, but only allows single line input
<EditText>
...
android:inputType="textCapSentences|textAutoCorrect"
android:imeOptions="actionNext"
...
</EditText>
This changes the imeOption
to an enter key.
<EditText>
...
android:inputType="textCapSentences|textAutoCorrect|textMultiline"
android:imeOptions="actionNext" <!-- Why is this code skipped? -->
...
</EditText>
The Google Keep and Gmail apps do this somehow, so don't tell me it isn't possible.
The enter key can only do one thing: enter new line to the editor or move cursor to the next field. One way to implement this is have the enter key move to the next field but still allow text in the editor to auto-wrap.
In XML:
In code: