下列输入框(id=etPwd)文本变化事件监听,正确的是
A.
etPwd.addTextChangedListener( { @Override public void onTextChanged(CharSequence arg0, int arg1, int arg2, int arg3) { } @Override public void beforeTextChanged(CharSequence arg0, int arg1, int arg2, int arg3) } @Override public void afterTextChanged(Editable arg0) { } });
B.
etPwd.addTextChangedListener(new TextWatcher() { @Override public void onTextChanged(CharSequence arg0, int arg1, int arg2, int arg3) { } @Override public void beforeTextChanged(CharSequence arg0, int arg1, int arg2, int arg3) } @Override public void afterTextChanged(Editable arg0) { } });
C.
etPwd.addFocusables(views, direction);