FlippableImageView
Custom Android ImageView layout supporting smooth horizontal card-flip actions, complete with angle transitions along the Y-axis.
Constructors
JAVA
FlippableImageView view = new FlippableImageView(context, reverseBackImage, Speed.NORMAL);
Enumeration: FlippableImageView.Speed
Adjusts the number of rotation degrees rendered per animation frame:
SLOW: Rotates 5 degrees per frame.NORMAL: Rotates 15 degrees per frame.FAST: Rotates 30 degrees per frame.
Methods
void setFrontImage(int resId / Drawable d)
Assigns the active front layout asset from drawables.
void setBackImage(int resId / Drawable d)
Assigns the back layout image. If reverseBackImage is active, the image is mirrored horizontally on load.
void setReverseBackImage(boolean reverse)
Sets whether the back image is mirrored. Reassign the back image asset after modifying this flag to apply changes.
void instantFlip()
Instantly alternates the view between 0° and 180° rotation states without animation.
void flip()
Starts a smooth, progressive flip transition. Swaps the visible bitmap as the rotation passes the 90° threshold.