Android: Remove Enter Key from softkeyboard

Viewed 23010

In my login form when user clicks on an EditText and presses the enter key, this inserts a new line, therefore increasing the EditText's size. Next moment, it returns to its previous place and prints a dot in the password field (which is the next field).

I want to remove this enter key from the softkeyboard. Is it possible?

6 Answers

If you want something more generic in your .java:

boolean state = true; yourTextInputEditText.setSingleLine(state);

Related