https://github.com/vrgsoftua/flipview
Flip View
https://github.com/vrgsoftua/flipview
android animation compare flip pair
Last synced: 11 months ago
JSON representation
Flip View
- Host: GitHub
- URL: https://github.com/vrgsoftua/flipview
- Owner: VRGsoftUA
- Created: 2017-11-21T13:45:20.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-08-31T13:45:33.000Z (almost 8 years ago)
- Last Synced: 2025-07-11T00:02:13.431Z (11 months ago)
- Topics: android, animation, compare, flip, pair
- Language: Java
- Homepage: http://vrgsoft.net
- Size: 22.2 MB
- Stars: 35
- Watchers: 1
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#### [HIRE US](http://vrgsoft.net/)
# FlipView

# Usage
*For a working implementation, Have a look at the Sample Project - sample*
1. Include the library as local library project.
```gradle
allprojects {
repositories {
maven { url 'https://jitpack.io' }
}
}
dependencies {
compile 'com.github.VRGsoftUA:FlipView:1.0.1'
}
```
2. You need to implement two generic interfaces:
Pair and Binder. Interface Pair give view information about models for left and right parts of view. Binder - is a kind of Adapter which bind model to front view
# Customization
| Method | Description |
| ------------- | ------------- |
| setCameraDistance(int cameraDistance) | If this value equal to 0, rotation 3D effect will be completely shown |
| setCurrentPosition(int position) | Sets current position in data set provided to this view |
| setCyclic(boolean cyclic) | Sets whether this view should show data set cyclically or not |
| addBackInAnimListener(Animator.AnimatorListener listener) | Adds a listener to back in animator (when back side starts to show itself) |
| addFrontInAnimListener(Animator.AnimatorListener listener) | Adds a listener to front in animator (when front side starts to show itself) |
| setHardwareAccelerate(boolean hardwareAccelerate) | Sets whether this view should use hardware acceleration or not. |
#### Contributing
* Contributions are always welcome
* If you want a feature and can code, feel free to fork and add the change yourself and make a pull request