Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/steelkiwi/incrementproductview
Interesting concept of products incrementation
https://github.com/steelkiwi/incrementproductview
custom customizable increase java library view
Last synced: 6 days ago
JSON representation
Interesting concept of products incrementation
- Host: GitHub
- URL: https://github.com/steelkiwi/incrementproductview
- Owner: steelkiwi
- Created: 2017-06-30T13:04:48.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-07-14T11:31:54.000Z (over 7 years ago)
- Last Synced: 2024-12-07T07:51:26.812Z (18 days ago)
- Topics: custom, customizable, increase, java, library, view
- Language: Java
- Homepage: http://steelkiwi.com/
- Size: 250 KB
- Stars: 259
- Watchers: 14
- Forks: 46
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# IncrementProductView
[![Made in SteelKiwi](https://github.com/steelkiwi/IncrementProductView/blob/master/assets/made_in_steelkiwi.png)](http://steelkiwi.com/blog/)
[ ![Download](https://api.bintray.com/packages/soulyaroslav/maven/increment-product-view/images/download.svg) ](https://bintray.com/soulyaroslav/maven/increment-product-view/_latestVersion)
# DescriptionInteresting concept of products incrementation inspired this [Design](https://dribbble.com/shots/1769468-Product-Animation)
# View
![Animation](https://github.com/steelkiwi/IncrementProductView/blob/master/assets/animation.gif)
# Download
For project API 21+.
For arc animation used this library components [ArcAnimator](https://github.com/asyl/ArcAnimator)## Gradle
```gradle
compile 'com.steelkiwi:increment-product-view:1.2.0'
```# Usage
Add IncrementProductView to your xml layout
```xml
```
You can customize view, through this attributes
* app:ipv_middle_icon - main view icon
* app:ipv_highlight_background_color - background color when view is expand
* app:ipv_default_background_color - background color when view is idle
* app:ipv_text_color - counter text color
* app:ipv_text_size - counter text size
* app:ipv_add_icon - icon for expand board view state
* app:ipv_decrement_icon - icon for decrease view
* app:ipv_increment_icon - icon for increase view
* app:ipv_confirm_icon - icon for confirmation view state
* app:ipv_counter_background_color - background color for board viewInside your client code need to implement listener OnStateListener to handle view state.
IncrementProductView state:* onCountChange(int count) - call after each incrementation
* onConfirm(int count) - call after click on confirmation view
* onClose() - call after closing board view# License
```
Copyright © 2017 SteelKiwi, http://steelkiwi.comLicensed 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 athttp://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.
```