I have a handler that is a TextWatcher
and i dont know how to get the View
that has changed text.
Here is my handler:
TextW
public static class MyTextWatcher implements TextWatcher {
private EditText mEditText;
public MyTextWatcher(EditText editText) {
mEditText = editText;
}
@Override
public void onTextChanged(CharSequence s, int start, int before, int count) {
oldText = mEditText.toString();
}
....
}
Add it with:
mFirstEditText.addTextChangedListener(new MyTextWatcher(mFirstEditText));