mEditText.addTextChangedListener(new TextWatcher() {
@Override
public void beforeTextChanged(CharSequence s, int start, int count, int after) {
}
@Override
public void onTextChanged(CharSequence s, int start, int before, int count) {
//文本变化中
}
@Override
public void afterTextChanged(Editable s) {
//文本变化之后
String s= s + ""; //文本变化后的内容
}
});
网友评论