Android: Remove Enter Key from softkeyboard

前端 未结 6 1392
余生分开走
余生分开走 2021-02-07 14:39

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

6条回答
  •  悲哀的现实
    2021-02-07 15:13

    If you want something more generic in your .java:

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

提交回复
热议问题