监听EditText,跟随输入文字而变化,double类型取余小数点后两位
moneyEt.addTextChangedListener(new TextWatcher() { @Override public void beforeTextChanged(CharSequence s, int start, int count, int after) {//输入前 money = s.toString().trim();
转载
2017-09-18 20:56:04 ·
685 阅读 ·
0 评论