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'
}
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 |
Any suggestions are welcome, or you can add a PR (Pull request).