相关疑难解决方法(0)

Android EditText删除(退格)键事件

如何检测editText的删除(退格)键事件?我尝试过使用TextWatcher,但是当editText为空时,当我按下删除键时,没有任何反应.即使没有文本,我想检测删除键按下一个editText.

events android key android-edittext

113
推荐指数
6
解决办法
11万
查看次数

Backspace doesn't work properly when TextWatcher is used

I needed to format money values entered into an EditText so I used a TextWatcher but now I have issues with backspace in soft keyboard.

Normally if you hold the backspace key in the keyboard, it keeps removing characters in EditText until there is nothing left. After adding the TextWatcher, you need to manually press the backspace button many times in order to completely get rid of all characters as holding it no longer works.

How do I …

android backspace textwatcher android-edittext

5
推荐指数
0
解决办法
62
查看次数

标签 统计

android ×2

android-edittext ×2

backspace ×1

events ×1

key ×1

textwatcher ×1