Skip to content

himanshu-soni/QuantityView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

1732b72 · Jan 13, 2017

History

32 Commits
Jan 13, 2017
Jan 13, 2017
Dec 19, 2016
Jan 13, 2017
Oct 9, 2015
May 9, 2016
Sep 29, 2015
Jan 13, 2017
Sep 29, 2015
Dec 19, 2016
Sep 29, 2015
Sep 29, 2015
Sep 29, 2015
Sep 29, 2015
Sep 29, 2015

Repository files navigation

QuantityView

Android quantity view with add and remove button to simply use as a complex widget with handful of quick customizations.

Download

Sample Screen

QuantityView QuantityView QuantityView

Installation

add gradle dependency to your dependency list:

dependencies {
	compile 'me.himanshusoni.quantityview:quantity-view:1.2.0'
}

Use

  1. Include QuantityView in your xml.
<me.himanshusoni.quantityview.QuantityView
	xmlns:app="http://schemas.android.com/apk/res-auto"
    android:id="@+id/quantityView_default"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_marginTop="10dp"
    app:qv_quantity="10" />

Customization

Attributes:

app:qv_addButtonBackground="color|drawable"
app:qv_addButtonText="string"
app:qv_addButtonTextColor="color"
app:qv_removeButtonBackground="color|drawable"
app:qv_removeButtonText="string"
app:qv_removeButtonTextColor="color"
app:qv_quantityBackground="color|drawable"
app:qv_quantityTextColor="color"
app:qv_quantity="integer"
app:qv_quantityPadding="dimension"
app:qv_maxQuantity="integer"
app:qv_minQuantity="integer"
app:qv_quantityDialog="boolean"

Change Log

v1.2.0
  • old and new quantity in OnQuantityChangeListener.
v1.1.0
  • added option to use custom click listener on quantity for custom view.

================== developed to make programming easy.

by Himanshu Soni (himanshusoni.me@gmail.com)

About

Android quantity view with add and remove button.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages