QuantityPickerView

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

License

License

Categories

Categories

Ant Build Tools GUI User Interface
GroupId

GroupId

com.github.guilhe
ArtifactId

ArtifactId

quantity-picker-view
Last Version

Last Version

1.2.4
Release Date

Release Date

Type

Type

aar
Description

Description

QuantityPickerView
View capable of increasing or decreasing a unit value with a toggle animation.
Project URL

Project URL

https://github.com/GuilhE/android-quantity-picker-view
Source Code Management

Source Code Management

https://github.com/GuilhE/android-quantity-picker-view

Download quantity-picker-view

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.guilhe/quantity-picker-view/ -->
<dependency>
    <groupId>com.github.guilhe</groupId>
    <artifactId>quantity-picker-view</artifactId>
    <version>1.2.4</version>
    <type>aar</type>
</dependency>
// https://jarcasting.com/artifacts/com.github.guilhe/quantity-picker-view/
implementation 'com.github.guilhe:quantity-picker-view:1.2.4'
// https://jarcasting.com/artifacts/com.github.guilhe/quantity-picker-view/
implementation ("com.github.guilhe:quantity-picker-view:1.2.4")
'com.github.guilhe:quantity-picker-view:aar:1.2.4'
<dependency org="com.github.guilhe" name="quantity-picker-view" rev="1.2.4">
  <artifact name="quantity-picker-view" type="aar" />
</dependency>
@Grapes(
@Grab(group='com.github.guilhe', module='quantity-picker-view', version='1.2.4')
)
libraryDependencies += "com.github.guilhe" % "quantity-picker-view" % "1.2.4"
[com.github.guilhe/quantity-picker-view "1.2.4"]

Dependencies

runtime (4)

Group / Artifact Type Version
org.jetbrains.kotlin : kotlin-android-extensions-runtime jar 1.3.72
org.jetbrains.kotlin : kotlin-stdlib-jdk7 jar 1.3.72
com.android.support » support-annotations jar 28.0.0
androidx.appcompat » appcompat jar 1.1.0

Project Modules

There are no modules declared in this project.

QuantityPickerView

Android Arsenal

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

Installation

QuantityPickerView is distributed through Maven Central, Jcenter and Jitpack.

implementation 'com.github.guilhe:quantity-picker-view:${LATEST_VERSION}'

Maven Central Download Bintray

Usage

Check out the sample module where you can find a few examples of how to create it by xml.

Attributes accepted in xml:

<resources>
    <attr name="min" format="integer" />
    <attr name="max" format="integer" />
    <attr name="value" format="integer" />
    <attr name="textLabelSize" format="dimension" />
    <attr name="textLabelFormatter" format="string" />
    <attr name="textLabelFont" format="reference" />
    <attr name="backgroundColor" format="color" />
    <attr name="btnRemove" format="reference" />
    <attr name="btnAdd" format="reference" />
    <attr name="isOpen" format="boolean" />
    <attr name="autoToggle" format="boolean" />
    <attr name="rippleEnable" format="boolean" />
    <attr name="rippleColor" format="color" />
</resources>

Example:

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

Bugs and Feedback

For bugs, questions and discussions please use the Github 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

http://www.apache.org/licenses/LICENSE-2.0

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.

Versions

Version
1.2.4
1.2.3
1.2.2
1.2.1
1.2.0
1.1.0
1.0.2
1.0.1
1.0.0