开发者

Android Virtual Keyboard KeyListener for getting Virtual Keyboard key presses

开发者 https://www.devze.com 2022-12-15 04:09 出处:网络
I want that on each key press I require 开发者_运维技巧to change the Counter some what similar to Tweeter Thing but the issue is that OnEditorActionListener only calls for the change while the user pr

I want that on each key press I require 开发者_运维技巧to change the Counter some what similar to Tweeter Thing but the issue is that OnEditorActionListener only calls for the change while the user presses Enter or Done key, Please Can I Find a Resolution for this


You could use an OnKeyListener if you do really want to catch keystrokes.

However, if what you're really interested in is knowing when the text in an EditText View has changed you might find it easier to use a TextWatcher. You would put your code which updates something based on the context of the EditText in the afterTextChanged() method.

0

精彩评论

暂无评论...
验证码 换一张
取 消