File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
src/fr/castorflex/android/flipimageview/library Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -68,6 +68,8 @@ public interface OnFlipListener {
68
68
private boolean mIsRotationYEnabled ;
69
69
70
70
private boolean mIsRotationZEnabled ;
71
+
72
+ private boolean mIsFlipping ;
71
73
72
74
public FlipImageView (Context context ) {
73
75
super (context );
@@ -157,7 +159,9 @@ public void setDuration(int duration) {
157
159
public boolean isFlipped () {
158
160
return mIsFlipped ;
159
161
}
160
-
162
+ public boolean isFlipping () {
163
+ return mIsFlipping ;
164
+ }
161
165
public boolean isAnimated () {
162
166
return mIsDefaultAnimated ;
163
167
}
@@ -209,13 +213,15 @@ public void onAnimationStart(Animation animation) {
209
213
if (mListener != null ) {
210
214
mListener .onFlipStart ();
211
215
}
216
+ mIsFlipping = true ;
212
217
}
213
218
214
219
@ Override
215
220
public void onAnimationEnd (Animation animation ) {
216
221
if (mListener != null ) {
217
222
mListener .onFlipEnd ();
218
223
}
224
+ mIsFlipping = false ;
219
225
}
220
226
221
227
@ Override
You can’t perform that action at this time.
0 commit comments