4

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

enter image description here

Thanks

Community
  • 1
  • 1
jul
  • 36,404
  • 64
  • 191
  • 318

1 Answers1

0

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.