Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android EditText listener enter

I have a EditText ans I put an OnEditorActionListener to do something when enter is pressed. My silly question is: how to make the ENTER key green like in Maps?

like image 919
user781468 Avatar asked Apr 02 '26 01:04

user781468


2 Answers

Here's an answer I found here:

Specifying virtual keyboard type for EditText in XML

Play around with ime options

like image 166
Pedro Loureiro Avatar answered Apr 04 '26 15:04

Pedro Loureiro


Thank you guys for the help. I solved it by putting android:imeOptions="actionGo" and android:inputType="textImeMultiLine" in the layout as attributes to the EditText. Both are necessary!

Again thank you!

like image 32
user781468 Avatar answered Apr 04 '26 14:04

user781468