IncrementProductView
Interesting concept of products incrementation inspired this Design
View
Download
For project API 21+.
For arc animation used this library components ArcAnimator
Gradle
Usage
Add IncrementProductView to your xml layout
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 view
Inside 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