Commit e9c5156c authored by mengcuiguang's avatar mengcuiguang

代码优化

parent 089647d1
......@@ -68,12 +68,12 @@ public class SimpleCountDownTimer extends CountDownTimer {
long lMin = (millisUntilFinished - lHr * hr) / min;
long lSec = (millisUntilFinished - lHr * hr - lMin * min) / sec;
long lMs = millisUntilFinished - lHr * hr - lMin * min - lSec * sec;
String strLHr = getTime(lHr);
String strLMin = getTime(lMin);
String strLSec = getTime(lSec);
String strLMs = getMs(lMs);
// 依次拼接时间 时:分:秒:毫秒
tvDisplay.setText(strLHr + ":" + strLMin + ":" + strLSec + ":" + strLMs);
// tvDisplay.setText(strLHr + ":" + strLMin + ":" + strLSec + ":" + strLMs);
tvDisplay.setText(strLMin + ":" + strLSec + ":" + strLMs);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment