How to know key presses in EditText

后端 未结 3 1388
闹比i
闹比i 2020-12-14 00:53

I need to detect every key press on either a soft or hard keyboard in EditText. I just need to send the characters one at a time as they are pressed and don\'t

3条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-14 01:07

    Use addTextChangedListener(TextWatcher watcher) and implement TextWatcher interfaace.

提交回复
热议问题