Skip to content

Commit 34b7ebe

Browse files
committed
updated readme (sample added)
1 parent fb0ff05 commit 34b7ebe

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,22 @@ Small android lib allowing you to make a flip imageview easily, by extending Fli
77

88
This lib is based on the FlipAnimator by coomar. All the credits goes to him.
99

10+
XML Usage
11+
---------
12+
```xml
13+
<fr.castorflex.android.flipimageview.library.FlipImageView
14+
xmlns:fiv="http://schemas.android.com/apk/res-auto"
15+
android:id="@+id/imageview"
16+
android:layout_width="match_parent"
17+
android:layout_height="match_parent"
18+
android:src="@drawable/YOUR_DEFAULT_DRAWABLE"
19+
fiv:flipDrawable="@drawable/YOUR_FLIPPED_DRAWABLE"
20+
fiv:duration="YOUR_DURATION_IN_MS"
21+
fiv:interpolator="@android:anim/YOUR_INTERPOLATOR"
22+
fiv:isAnimated="true|false"
23+
fiv:isFlipped="true|false"/>
24+
```
25+
1026
License
1127
-------
1228

0 commit comments

Comments
 (0)