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

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

Awesome Lists containing this project

README

          

# QuantityPickerView
[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-QuantityPickerView-brightgreen.svg?style=flat)](https://android-arsenal.com/details/1/8022)

A View capable of increasing or decreasing a unit value with a toggle animation.
Sample Sample

## 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}'
```
[![Maven Central](https://img.shields.io/maven-central/v/com.github.guilhe/quantity-picker-view.svg)](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"/>
```

Sample Sample

## 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.