Skip to content

This is a duration picker dialog for android with hour, minute and second.

Notifications You must be signed in to change notification settings

iambhargavnath/durationpicker-library

Repository files navigation

Duration Picker Library

This is a duration picker dialog for android with hour, minute and second.

Screenshot

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' }
  }
}
  1. 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:
dependencyResolutionManagement {
  ...
  repositories {
    ...
    mavenCentral()
    maven(url = "https://jitpack.io")
  }
}
  1. Add the following dependency in your app's build.gradle.kts file:
dependencies {
  implementation("com.github.iambhargavnath:durationpicker-library:v1.0.3")
}

How to use

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

iambhargavnath iambhargavnath iambhargavnath iambhargavnath

About

This is a duration picker dialog for android with hour, minute and second.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages