1.toast做倒计时,自定义显示时间,不抢占焦点,不过其他事件占了焦点后,他就不能在前台显示了。如果有这个需求,看第2种方式。
//倒计时
CountDownTimer countDown ;
public void countDownOneMinute() {
if (countDown == null) {
countDown = new CountDownTimer(60 * 1000, 1000) {
1.toast做倒计时,自定义显示时间,不抢占焦点,不过其他事件占了焦点后,他就不能在前台显示了。如果有这个需求,看第2种方式。
//倒计时
CountDownTimer countDown ;
public void countDownOneMinute() {
if (countDown == null) {
countDown = new CountDownTimer(60 * 1000, 1000) {