Coder Social home page Coder Social logo

About Handler about countdownview HOT 5 CLOSED

iwgang avatar iwgang commented on May 29, 2024
About Handler

from countdownview.

Comments (5)

iwgang avatar iwgang commented on May 29, 2024

Handler? 库里面没有使用Handler,方便说明下是哪块吗?

from countdownview.

NicodeLee avatar NicodeLee commented on May 29, 2024

@iwgang https://github.com/iwgang/CountdownView/blob/master/library%2Fsrc%2Fmain%2Fjava%2Fcn%2Fiwgang%2Fcountdownview%2FCustomCountDownTimer.java

from countdownview.

iwgang avatar iwgang commented on May 29, 2024

喔,是这个倒计时类,这个是完全copy的android.os.CountDownTimer源码,只做了细小调整
现在有出现因此引起的内存泄露吗?

from countdownview.

NicodeLee avatar NicodeLee commented on May 29, 2024

我在项目中测试下看效果,放在Recyclerview中,不知道会不会有问题。有问题再提反馈

from countdownview.

iwgang avatar iwgang commented on May 29, 2024

嗯,好的,谢谢你的反馈,其实这个我有测试过,只要在不需要时处理好回收工作(非列表使用时可以不用关注回收),是不会出现泄露问题的。

不过在RecyclerView和ListView中使用时,不建议直接调用CountdownView的start()方法来使用

可以用一个集合去给维护一个CustomCountDownTimer处理倒计时工作,然后使用CountdownView的updateShow()方法更新显示

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.