Android: Remove Enter Key from softkeyboard

Jay Mayu picture Jay Mayu · Aug 9, 2011 · Viewed 22.3k times · Source

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?

Answer

mDroidd picture mDroidd · Dec 22, 2012

Use : android:singleLine = "true" or edittext.setSingleLine();

And your ENTER key is gone