Coder Social home page Coder Social logo

CountDown SetTotalTime about tab-digit HOT 4 CLOSED

xenione avatar xenione commented on July 18, 2024
CountDown SetTotalTime

from tab-digit.

Comments (4)

xenione avatar xenione commented on July 18, 2024

Hi LTFENG
You can add many tab-digit as you need.

from tab-digit.

LTFENG avatar LTFENG commented on July 18, 2024

Thanks for reply me

I am not sure would you read this reply

yes, I know I can add many of tab-digit
btw, I would like to ask for the countdown view
https://github.com/xenione/tab-digit/blob/master/app/src/main/java/com/xenione/demos/digit/CountdownView.java

is it ok to make it fit to any totalhours ?
so I can make a function like setTotalHour in any fragments or activity.

sorry, if my question is unclear, because the example only fit to 10 hours.

Thanks @xenione

from tab-digit.

xenione avatar xenione commented on July 18, 2024

Yes , you can do it. Please take a minute to understand how countdown demo works and I pretty sure you will make it yourself.

from tab-digit.

LTFENG avatar LTFENG commented on July 18, 2024

@xenione
Thanks for your reply =)

// example we take 30 mins (30 * 60)
totalTime = 30 * 60

val hourHeight = (time / 36000).toInt()
println("total hour ${time}") // total hour 0
println("hour height ${hourHeight}") // hour height 0
println("result ${9-hourHeight}") // result 9
println("Deximal result - ${DECIMAL[9-hourHeight]}") // Deximal result - 0 ! should this result show in count down ?
mCharHighHour!!.setChar(9-hourHeight)
// MAY I ASK why the result show 9 but not 0 ?

Thank you once again for reply me. Appreciated

from tab-digit.

Related Issues (14)

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.