Skip to content

Commit 3d80391

Browse files
Update README.md
1 parent ab53bc1 commit 3d80391

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

README.md

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Changes exist in the [releases](https://github.com/wajahatkarim3/EasyFlipView/re
2525
Add this in your app's build.gradle file:
2626
```groovy
2727
dependencies {
28-
implementation 'com.wajahatkarim3.EasyFlipView:EasyFlipView:2.1.0'
28+
implementation 'com.wajahatkarim3.EasyFlipView:EasyFlipView:2.1.1'
2929
}
3030
```
3131

@@ -35,7 +35,7 @@ Or add EasyFlipView as a new dependency inside your pom.xml
3535
<dependency>
3636
<groupId>com.wajahatkarim3.EasyFlipView</groupId>
3737
<artifactId>EasyFlipView</artifactId>
38-
<version>2.1.0</version>
38+
<version>2.1.1</version>
3939
<type>pom</type>
4040
</dependency>
4141
```
@@ -160,6 +160,21 @@ mYourFlipView.setToHorizontalType();
160160
boolean isVertical = mYourFlipView.isVerticalType();
161161
mYourFlipView.setToVerticalType();
162162

163+
// Sets the animation direction from left (horizontal) and back (vertical)
164+
easyFlipView.setFlipTypeFromLeft();
165+
166+
// Sets the animation direction from right (horizontal) and front (vertical)
167+
easyFlipView.setFlipTypeFromRight();
168+
169+
// Sets the animation direction from front (vertical) and right (horizontal)
170+
easyFlipView.setFlipTypeFromFront();
171+
172+
// Sets the animation direction from back (vertical) and left (horizontal)
173+
easyFlipView.setFlipTypeFromBack();
174+
175+
// Returns the flip type from direction. For horizontal, it will be either right or left and for vertical, it will be front or back.
176+
easyFlipView.getFlipTypeFrom();
177+
163178
```
164179

165180
Flip Animation Listener

0 commit comments

Comments
 (0)