我有一个textWatcher作为TextChangeListener,我需要从edittext更改文本。
我的代码是:
holder.txtResponder.addTextChangedListener(new TextWatcher() {
public void afterTextChanged(Editable s) {
}
public void beforeTextChanged(CharSequence s, int start, int count, int after) {
}
public void onTextChanged(CharSequence s, int start, int before, int count) {
holder.txtResponder.setText("I need change the text from this edit text but holder.txtResponder is not accessible");
}
});