Coder Social home page Coder Social logo

出现负时间 about countdownview HOT 7 CLOSED

iwgang avatar iwgang commented on May 30, 2024
出现负时间

from countdownview.

Comments (7)

iwgang avatar iwgang commented on May 30, 2024

什么情况下?

from countdownview.

MarkLiuMengmeng avatar MarkLiuMengmeng commented on May 30, 2024

我这里也出现了负时间,调用updateShow(3922689000)。

from countdownview.

MarkLiuMengmeng avatar MarkLiuMengmeng commented on May 30, 2024

xml文件
<cn.iwgang.countdownview.CountdownView app:isHideTimeBackground="false" android:layout_width="wrap_content" android:layout_height="wrap_content" app:isShowMinute="true" app:isShowSecond="false" app:timeTextSize="@dimen/countdownview_time_ts" app:timeTextColor="@android:color/white" app:timeBgColor="@color/red_bg2" app:suffixDay="@string/suffix_day" app:suffixHour="@string/suffix_hour" app:suffixMinute="@string/suffix_minute" app:suffixTextSize="@dimen/min_txtsize" app:suffixTextColor="@color/txt_grey1" app:timeBgRadius="2dp" />
@iwgang

from countdownview.

iwgang avatar iwgang commented on May 30, 2024

如果是自己控件的倒计时,检查一下有没有倒计时结束后去停止CountdownView,或者调用CountdownView的allShowZero()方法

from countdownview.

javakam avatar javakam commented on May 30, 2024

我那个是从联网实体里面拿出来的时间,改了一些东西,过两天我写个demo给你

from countdownview.

iwgang avatar iwgang commented on May 30, 2024

@javakam 好的,谢谢

from countdownview.

MarkLiuMengmeng avatar MarkLiuMengmeng commented on May 30, 2024

我找到了我的错误,int越界了,不是控件的问题....,当初我只是简单打印了下,int转String不会有越界所以看到是正的

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.