1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| editTextNumber.addTextChangedListener(new TextWatcher() {
//内容变化前 @Override public void beforeTextChanged(CharSequence charSequence, int i, int i1, int i2) {
}
//内容变化时 @Override public void onTextChanged(CharSequence charSequence, int i, int i1, int i2) {
}
//内容变化后 @Override public void afterTextChanged(Editable editable) {
} });
|