Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Application Keyboard Enter/Send Key

While using messaging services built inside different applications, I noticed that the Enter key on some applications is replaced by a send key. As an example, the attached 5 screenshots are from Facebook Messenger, Instagram, Snapchat, Twitter and my own application.

As you can see, Snapchat and Instagram have the bottom-right key of the keyboard set as send with the special icon. Rest of them, including mine, do not have that. I tried to look around but could not find any documentation or suggestions on how to achieve this.

Where do I even start to achieve something like this?

Footnote 1: I am using a Google Pixel 2 XL with Google Keyboard, but I have seen similar functionality on other devices.

Footnote 2: I have seen a question on overwriting the enter key's input to call a function but am looking for more traditional/sophisticated method (preferably with custom send icon).

Footnote 3: Order of images: My application, Snapchat, Messenger, Twitter, Instagram.

Footnote 4: I am not specifically looking to make an entire custom keyboard. I want to keep rest of the multimedia functions brought by Google Keyboard.

My ApplicationSnapchatMessengerTwitterInstagram

like image 988
theBrainyGeek Avatar asked Dec 04 '17 23:12

theBrainyGeek


People also ask

How do you make enter send in Android?

Go to More options > Settings > Chats . Turn Enter is send on or off.

How do I change the enter key on a send key?

Here is how to change the send button to enter on WhatsApp: Launch WhatsApp on your Andriod phone. Go to More options and tap on settings. Then tap on Chats. Turn Enter button for send on or off.

How do you press Enter on Android keyboard?

press the shift key and see the change in the icon for the smiley. It changes to the enter key.

How do I put a enter key on my mobile keyboard?

Find and tap Languages and input. Tap on current keyboard under Keyboard & input methods. Tap on choose keyboards. Tap on the new keyboard (such as Gboard) you would like to set as default.


1 Answers

Use android:imeOptions="actionSend" on your EditText widget.

like image 63
CommonsWare Avatar answered Nov 14 '22 22:11

CommonsWare