mazrou / QuantityView

Quantity View is a custom view in Android it used in case that you have an input of quantity

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

QuantityView

Installation

Add it in your root build.gradle at the end of repositories :

    allprojects {
		repositories {
			...
			maven { url 'https://jitpack.io' }
		}
	}

Add the dependency :

	dependencies {
	        implementation 'com.github.mazrou:QuantityView:1.0.1'
	}

Usage

To use the Quantity view in your project :

    <com.mazrou.quantityView.QuantityView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content" />

It will apear like :

The folowing table represant the other attribute of QuantityView :

attribute Type Default
qt_start_from integer 0
qt_max_value integer 100
qt_min_value integer 0
qt_delta_value integer 1
qt_enable boolean true

Contribution

Any suggestions are welcome, or you can add a PR (Pull request).

About

Quantity View is a custom view in Android it used in case that you have an input of quantity


Languages

Language:Kotlin 100.0%