这可能在 EditText 中停止字符渲染吗?在我的代码中看起来像这样
public class EditorActivity extends Activity {
EditText editText = (EditText)findViewById(R.id.editText);
editText.addTextChangedListener(writerTextWatcher);
TextWatcher writerTextWatcher = new TextWatcher() {
@Override
public void afterTextChanged(Editable s) {
System.out.println("afterTextChanged");
editText.removeTextChangedListener(this);
editText.addTextChangedListener(this);
return ;
}
@Override
public void beforeTextChanged(CharSequence s, int start, int count,
int after) {
// TODO Auto-generated method stub
System.out.println("beforeTextChanged");
editText.removeTextChangedListener(this);
editText.addTextChangedListener(this);
return;
}
@Override
public void onTextChanged(CharSequence s, int start, int before, int count) {
editText.removeTextChangedListener(this);
System.out.println("onTextChanged");
editText.addTextChangedListener(this);
return;
}
};
}
我无法在我的editText 中停止字符渲染。请指教。
谢谢
南华