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
views:
294answers:
1
+4
A:
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.
Dave Webb
2009-12-23 10:02:26
How to set my EditTextView to respond to these Methods of TextWatcher
y ramesh rao
2009-12-23 11:32:07
What do you want to do precisely?
Dave Webb
2009-12-23 12:26:03