This is a duration picker dialog for android with hour, minute and second.
- 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' }
}
}
- Add the following dependency in your app's
build.gradle
file:
dependencies {
implementation 'com.github.iambhargavnath:durationpicker-library:v1.0.3'
}
- Add the following dependency in your project's
settings.gradle.kts
file:
dependencyResolutionManagement {
...
repositories {
...
mavenCentral()
maven(url = "https://jitpack.io")
}
}
- Add the following dependency in your app's
build.gradle.kts
file:
dependencies {
implementation("com.github.iambhargavnath:durationpicker-library:v1.0.3")
}
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()