Comments (4)
Hi LTFENG
You can add many tab-digit as you need.
from tab-digit.
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.
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.
@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)
- assets for Readme file HOT 1
- invalid Issues
- AAPT: error: duplicate value for resource 'attr/cornerSize' with config ''. HOT 4
- nice job
- cant find this library
- clock_sceenshot
- About CountDown Mechanism HOT 1
- Countdown timer? HOT 2
- Get total time elapsed
- Don't find any way to stop/pause timer. HOT 1
- CountdownView shows wrong hour HOT 1
- use drawable instead of char HOT 1
- I think this i a bit the wrong direction :-) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tab-digit.