How to disable “Next” button on a EditText software keyboard (replace with “Done” button)

前端 未结 2 1666
余生分开走
余生分开走 2020-12-01 01:00

I have a bunch of EditTexts in my Android application, each with InputMethod set to numberSigned. My target device does not have a hardware keyboard and uses the software ke

相关标签:
2条回答
  • 2020-12-01 01:34

    Try adding android:imeOptions="actionDone" to your EditText.

    Reference

    0 讨论(0)
  • 2020-12-01 01:51

    This can also be accomplished in code with:

    myEditText.setImeOptions(EditorInfo.IME_ACTION_DONE);
    
    0 讨论(0)
提交回复
热议问题