How to get the View in TextWatcher method context?
问题 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: TextWatcher handler = new TextWatcher() { @Override public void onTextChanged(CharSequence s, int start, int before, int count) { // TODO Auto-generated method stub } @Override public void beforeTextChanged(CharSequence s, int start, int count, int after) { oldText = s.toString(); } @Override public void afterTextChanged(Editable s) { //v.setText("afterTextChanged"); } }; Note