@Override public void timerStart(View v, int startCount) { if (v.getId() == R.id.button_timer) { button_timer.setText(startCount + second); String code = mUserNameEditText.getContent(); if (checkNumber(code)) { doGetVerificationCode(code); } else { stopTime(); } } }
public void stopTime() { button_timer.stopThread(); }
@Override public void timerEnd(View v) { if (v.getId() == R.id.button_timer) { button_timer.setText("获取验证码"); } }
@Override public void timerCount(View v, int currentCount) { if (v.getId() == R.id.button_timer) { button_timer.setText(currentCount + second); } }