自定义 View 之高仿 nubia 计时器

2,782 阅读1分钟

这是一个高仿Nubia 定时器的一个自定义view,实现了nubia定时器的大部分效果。

image

//停止计时
public void stopTimer()
//设置计时器时间
public void setTime(int hour, int minute, int second)
//重置计时器
public void resetTimer()
//为计时器设置倒计时监听器
public void setOnTimeUpListener(OnTimeUpListener onTimeUpListener)
//开始计时
public void startTimer()

please read the fucking source code

You can't perform that action at this time.

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.