问题
how can I have both a "done" (close the softkeyboard) and a "return" (line break) keys in my softkeyboard (Samsung Galaxy 10.1, Android 3.1, portrait mode) when writing in an EditText?
Using
<EditText
android:id="@+id/comment"
android:layout_width="772dp"
android:layout_height="200dp"/>
I get
Thanks
回答1:
That may depend on the application and what you mean by 'done'. But, the KeyCode DPAD_UP and _DOWN ("arrow keys") will normally move the cursor to the next EditText.
来源:https://stackoverflow.com/questions/9016351/how-can-i-have-both-a-return-and-a-done-keys-in-an-edittexts-softkeyboard