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 pr
If you want something more generic in your .java:
boolean state = true; yourTextInputEditText.setSingleLine(state);