/**

* 参数:

* 总时间

* 多久触发trick事件

*/

new CountDownTimer(11*1000L,1*1000L) {
           
            @Override
            public void onTick(long millisUntilFinished) {
                tv.setText("seconds remaining: " + millisUntilFinished / 1000);
               
            }
           
            @Override
            public void onFinish() {
                tv.setText("done !");
               
            }
           
           
        }.start();

相关文章:

  • 2022-12-23
  • 2022-01-22
  • 2021-04-18
  • 2021-05-26
  • 2021-06-16
  • 2022-01-11
  • 2022-01-24
  • 2021-08-09
猜你喜欢
  • 2022-12-23
  • 2021-07-04
  • 2021-10-25
  • 2021-09-30
  • 2022-01-18
  • 2022-02-21
相关资源
相似解决方案