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

前端 未结 2 1690
余生分开走
余生分开走 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:51

    This can also be accomplished in code with:

    myEditText.setImeOptions(EditorInfo.IME_ACTION_DONE);
    

提交回复
热议问题