Android Virtual Keyboard KeyListener for getting Virtual Keyboard key presses
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.
精彩评论