How can I change EditText
keyboard enter key like this ?
Asked
Active
Viewed 1.2k times
10

Levon Petrosyan
- 8,815
- 8
- 54
- 65
-
Possible duplicate of [Use "ENTER" key on softkeyboard instead of clicking button](https://stackoverflow.com/questions/4451374/use-enter-key-on-softkeyboard-instead-of-clicking-button) – Raja Sep 26 '17 at 12:52
4 Answers
24
The solution for me was adding these two lines in the XML of Edittext
android:imeOptions="actionDone"
android:inputType="text"
Thx everyone.

Levon Petrosyan
- 8,815
- 8
- 54
- 65
20
Android have "android:imeOptions" to specify the keyboard action button
1. android:imeOptions="actionGo"
2. android:imeOptions="actionDone"
3. android:imeOptions="actionNext"
4. android:imeOptions="actionPrevious"
5. android:imeOptions="actionSend"
...and more, you can use based on requirement

Geeta Gupta
- 1,622
- 11
- 17
6
Try using android:imeOptions with your EditText in your layout file:
android:imeOptions="actionGo"

PEHLAJ
- 9,980
- 9
- 41
- 53
2
use this in your xml where you have define your edittext android:imeOptions="actionDone"

umesh vashisth
- 339
- 3
- 16