-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master'
- Loading branch information
Showing
2 changed files
with
35 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,36 @@ | ||
#### [HIRE US](http://vrgsoft.net/) | ||
|
||
# FlipView | ||
![alt text](https://github.com/AndreiNikitin/FlipView/blob/master/ezgif.com-video-to-gif.gif "gif") | ||
![alt text](https://github.com/VRGsoftUA/FlipView/blob/master/ezgif.com-video-to-gif-2.gif "gif") | ||
|
||
# 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' | ||
} | ||
``` | ||
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 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.