Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用计时器作为一种秒表。
我不想从 0 开始,而是在其他时间开始,例如 8 秒或 10 分钟等。
当我尝试调用 setBase 时,传入 ms 时间,它显示非数字字符。
该怎么办??
谢谢!
一般来说:
mChronometer.setBase(SystemClock.elapsedRealtime() - (nr_of_min * 60000 + nr_of_sec * 1000)))
希望这会为你们节省很多时间:)