Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android keyboard change enter key

How can I change EditText keyboard enter key like this ?

enter image description here

like image 687
Levon Petrosyan Avatar asked Sep 26 '17 12:09

Levon Petrosyan


People also ask

How do you change keyboard enter is next line?

Simply just pressing shift key will show return/ Enter key at bottom of the keyboard where smiley icon is shown. You can enter into new line. If you do not like this keyboard go for swift keyboard. It has lot of features and mostly used keyboard!

How do I change the Enter key on my Samsung?

The first is in Settings (tap the three dots when viewing your conversations) > Scroll down to Sending and uncheck Send using Enter. If you're having the smiley issue, keep scrolling down to the bottom and tap Keyboard. In that menu it says Smiley or Enter - make sure yours is set to enter. Hope that helps.


4 Answers

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

like image 181
Geeta Gupta Avatar answered Sep 20 '22 16:09

Geeta Gupta


The solution for me was adding these two lines in the XML of Edittext

android:imeOptions="actionDone"
android:inputType="text"

Thx everyone.

like image 41
Levon Petrosyan Avatar answered Sep 21 '22 16:09

Levon Petrosyan


Try using android:imeOptions with your EditText in your layout file:

android:imeOptions="actionGo"
like image 31
PEHLAJ Avatar answered Sep 21 '22 16:09

PEHLAJ


use this in your xml where you have define your edittext android:imeOptions="actionDone"

like image 20
umesh vashisth Avatar answered Sep 23 '22 16:09

umesh vashisth