https://github.com/sephiroth74/numberslidingpicker
Android Number Picker with gestures
https://github.com/sephiroth74/numberslidingpicker
android android-library material-design numberpicker picker slider
Last synced: about 1 year ago
JSON representation
Android Number Picker with gestures
- Host: GitHub
- URL: https://github.com/sephiroth74/numberslidingpicker
- Owner: sephiroth74
- License: mit
- Created: 2019-01-18T14:45:38.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-02-18T14:48:57.000Z (over 5 years ago)
- Last Synced: 2025-03-30T06:07:41.536Z (about 1 year ago)
- Topics: android, android-library, material-design, numberpicker, picker, slider
- Language: Kotlin
- Homepage:
- Size: 1.87 MB
- Stars: 358
- Watchers: 9
- Forks: 56
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Material Number Sliding Picker
======================
A widget that enables the user to select a number from a predefined range.
Progress value can be changed using the up and down arrows, click and edit the editable text or swiping up/down or left/right.

[](https://travis-ci.org/sephiroth74/NumberSlidingPicker)
[](https://maven-badges.herokuapp.com/maven-central/it.sephiroth.android.library/number-sliding-picker)
[](https://jitpack.io/#sephiroth74/NumberSlidingPicker)
Installation
===
## Maven
```gradle
compile 'it.sephiroth.android.library:number-sliding-picker:**version**'
```
## JitPack
**Step 1.** Add the JitPack repository to your build file:
```gradle
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
```
**Step 2.** Add the dependency
```gradle
dependencies {
implementation 'com.github.sephiroth74:NumberSlidingPicker:Tag'
}
```
Get the latest version on [JitPack](https://jitpack.io/#sephiroth74/NumberSlidingPicker)
Usage
===
```xml
```
> See [attrs.xml](./numberpicker/src/main/res/values/attrs.xml) for a complete list of attributes
## Listener
```kotlin
numberPicker.doOnProgressChanged { numberPicker, progress, formUser ->
// progress changed
}
numberPicker.doOnStartTrackingTouch { numberPicker ->
// tracking started
}
numberPicker.doOnStopTrackingTouch { numberPicker ->
// tracking ended
}
```
License
===
MIT License
Copyright (c) 2019 Alessandro Crugnola
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.