Genie effect Android lib
Currently support animation to right/bottom/top sides. Left side is remained to be done.
The sample app shows the way to use this genie effect library.
private AnimSurface mAnimSurface; // declare the surface to show the animation, usually capture all the screen.
if (mAnimSurface == null) {
mAnimSurface = new AnimSurface(GenieSampleActivity.this);
mAnimSurface.setLayoutParams(new LinearLayout.LayoutParams(-1, -1));
}
// By passing the view to be animated to the util's function to start the animation on AnimSurface.
AnimSurfaceUtil.startAnimation(GenieSampleActivity.this, mAnimSurface, image, mReverse); // image is the view to be animated.
mReverse = !mReverse;
where image is the view to be animated.
The path in animation is very important here, the key in this lib is to calculate the right shape at time T then apply it with mesh.
The illustration is like below:
The final path:
The path on half way: