Duration View
Duration View allows you to create views to depict durations of time.
For example, if you wish to display a duration split into Days, Hours, Mins and Secs, you just need to set the values and DurationView will do the rendering for you.
Sample App
Download the Demo app on Google Play Store:
Installation
Gradle
Add JitPack in your root build.gradle at the end of repositories:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Add it as a dependency in your app's build.gradle file
dependencies {
implementation 'com.github.rayzone107:DurationView:1.00'
}
How to use
Add a DurationView to your XML layout
Below are the default values for all the properties
Note that
"wrap_content"
might not function properly.wrap_content
andmatch_parent
might work the same way. Either set absolute dimensions in dp, or setmatch_parent
with limited available area (within a ViewGroup).
These values can also be set programatically.
Contribution
Any kind of contribution will be appreciated; feel free to create a pull request or file issues on the issue tracker.