Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/iambhargavnath/durationpicker-library
This is a duration picker dialog for android with hour, minute and second.
https://github.com/iambhargavnath/durationpicker-library
Last synced: 14 days ago
JSON representation
This is a duration picker dialog for android with hour, minute and second.
- Host: GitHub
- URL: https://github.com/iambhargavnath/durationpicker-library
- Owner: iambhargavnath
- Created: 2024-10-28T06:42:54.000Z (2 months ago)
- Default Branch: master
- Last Pushed: 2024-10-28T17:11:27.000Z (2 months ago)
- Last Synced: 2024-11-06T10:05:02.621Z (2 months ago)
- Language: Kotlin
- Size: 152 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Duration Picker Library
This is a duration picker dialog for android with hour, minute and second.## Screenshot
## Installation
### Installation for Groovy DSL
1. Add the following dependency in your project's `build.gradle` file:
```
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
```2. Add the following dependency in your app's `build.gradle` file:
```
dependencies {
implementation 'com.github.iambhargavnath:durationpicker-library:v1.0.3'
}
```### Installation for Kotlin DSL
1. Add the following dependency in your project's `settings.gradle.kts` file:
```kotlin
dependencyResolutionManagement {
...
repositories {
...
mavenCentral()
maven(url = "https://jitpack.io")
}
}
```2. Add the following dependency in your app's `build.gradle.kts` file:
```kotlin
dependencies {
implementation("com.github.iambhargavnath:durationpicker-library:v1.0.3")
}
```## How to use
```Example Code in Kotlin
val title = "Duration"
val dialog = DurationPickerDialog(this, title, object : DurationPickerDialog.OnDurationSetListener {
override fun onDurationSet(hours: Int, minutes: Int, seconds: Int) {
\\ Write your code here
}
})
dialog.show()
```### Developed by Bhargav Nath
## Find me at