📜  android studio 延迟 - 任何代码示例

📅  最后修改于: 2022-03-11 14:57:58.536000             🧑  作者: Mango

代码示例1
new CountDownTimer(30000, 1000) {

     public void onTick(long millisUntilFinished) {
         mTextField.setText("seconds remaining: " + millisUntilFinished / 1000);
     }

     public void onFinish() {
         mTextField.setText("done!");
     }
  }.start();