Monitor The Changes Of A Edittext
Possible Duplicate: Is there a way to fire an event when the contents of an EditText view have changed? I'd like to listen when the user changes a edit text in order to formatti
Solution 1:
What you're looking for is probably a TextWatcher
, check this link for more information. Here's how to implement it:
editText.addTextChangedListener(new TextWatcher() {
@Override
public void onTextChanged(CharSequence s, int start, int before, int count) {}
@Override
public void beforeTextChanged(CharSequence s, int start, int count, int after) {}
@Override
public void afterTextChanged(Editable s) {}
});
Post a Comment for "Monitor The Changes Of A Edittext"