今天自定义一个控件,需要实现TetxWatcher之后重写了如下两个方法,但是仍然报错,还需onTextChage方法并且权限修饰符有protect改为public才行。这样才正确。
public void beforeTextChanged(CharSequence s, int start, int count, int after)public void afterTextChanged(Editable s)