Coder Social home page Coder Social logo

跳两秒问题 about countdownview HOT 6 CLOSED

iwgang avatar iwgang commented on May 29, 2024
跳两秒问题

from countdownview.

Comments (6)

iwgang avatar iwgang commented on May 29, 2024

呃,会吗? 把代码发我看下,系统的CountDownTimer是因为最后一秒会有时候有些慢,我才重新定制了一点它的内容,正常倒计时数字应该是一样的

from countdownview.

adminLiu-s avatar adminLiu-s commented on May 29, 2024

直接就是用的CountDownTimer,丢进time和间隔时间,然后start,总是跳两秒。。。。

from countdownview.

iwgang avatar iwgang commented on May 29, 2024
        new CountDownTimer(10 * 1000, 1000) {
            @Override
            public void onTick(long millisUntilFinished) {
                Log.i("wg", "CountDownTimer > onTick():" + (millisUntilFinished / 1000));
            }

            @Override
            public void onFinish() {
                Log.i("wg", "CountDownTimer > onFinish()");
            }
        }.start();

image

你的不是这样的? ps:从 8 开始是正常的

from countdownview.

adminLiu-s avatar adminLiu-s commented on May 29, 2024

是这样写的啊,然后就把毫秒转换成天时分秒,但为毛总是跳两秒搞不懂

image

from countdownview.

iwgang avatar iwgang commented on May 29, 2024

没明白你这个问题和这个库有什么关联?

from countdownview.

iwgang avatar iwgang commented on May 29, 2024

检查一下算法吧,并且你这个使用场景着实看不懂

from countdownview.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.