Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

Awesome Lists containing this project

README

        

# 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' }
}
}
```

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


iambhargavnath
iambhargavnath
iambhargavnath
iambhargavnath