Can I process it separately when I enter "Enter" in EditText?

Asked 1 years ago, Updated 1 years ago, 97 views

If you type "Enter" while typing in EditText, I want to process it like an onSubmit event in HTML. Well, I'm trying to make it work like a move or an on-Submit when I click on the "Done" button on the virtual keyboard, what should I do?

android android-edittext android-textview

2022-09-21 15:39

1 Answers

mEditText.setImeActionLabel("Custom text", KeyEvent.KEYCODE_ENTER); You can do it like this on EditText.


2022-09-21 15:39

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.