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.
Go to More options > Settings > Chats . Turn Enter is send on or off.
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.
press the shift key and see the change in the icon for the smiley. It changes to the enter key.
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.
Use android:imeOptions="actionSend"
on your EditText
widget.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With