https://github.com/guilhe/quantitypickerview
A View capable of increasing or decreasing a unit value with a toggle animation
https://github.com/guilhe/quantitypickerview
android android-pickers android-pickerview android-view androidx
Last synced: 11 months ago
JSON representation
A View capable of increasing or decreasing a unit value with a toggle animation
- Host: GitHub
- URL: https://github.com/guilhe/quantitypickerview
- Owner: GuilhE
- License: apache-2.0
- Created: 2020-01-17T15:04:00.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-08-29T17:16:31.000Z (almost 4 years ago)
- Last Synced: 2025-07-22T21:33:23.782Z (11 months ago)
- Topics: android, android-pickers, android-pickerview, android-view, androidx
- Language: Kotlin
- Homepage: https://guilhe.github.io/QuantityPickerView
- Size: 3.8 MB
- Stars: 46
- Watchers: 5
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# QuantityPickerView
[](https://android-arsenal.com/details/1/8022)
A View capable of increasing or decreasing a unit value with a toggle animation.

## Installation
QuantityPickerView is distributed through [Maven Central](https://search.maven.org/artifact/com.github.guilhe/quantity-picker-view) and [Jitpack](https://jitpack.io/#GuilhE/QuantityPickerView).
```groovy
implementation 'com.github.guilhe:quantity-picker-view:${LATEST_VERSION}'
```
[](https://search.maven.org/search?q=g:com.github.guilhe%20AND%quantity-picker-view)
## Usage
Check out the __sample__ module where you can find a few examples of how to create it by `xml`.
Attributes accepted in xml:
```xml
```
Example:
```xml
com.github.guilhe.views.QuantityPickerView
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:textLabelFont="@font/permanentmarker_regular"
app:textLabelFormatter="%s units."
app:textLabelSize="14sp"/>
```

## Dependencies
- [com.android.support:support-annotations](https://developer.android.com/topic/libraries/support-library/packages.html#annotations)
- [androidx.appcompat:appcompat](https://developer.android.com/jetpack/androidx/releases/appcompat) (for ResourcesCompat.getFont())
## Bugs and Feedback
For bugs, questions and discussions please use the [Github Issues](https://github.com/GuilhE/QuantityPickerView/issues).
## LICENSE
Copyright (c) 2020-present, GuilhE.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.