Back to project page SlidingMenuLibrary.
The source code is released under:
Apache License
If you think the Android project SlidingMenuLibrary listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.jeremyfeinstein.slidingmenu.example.anim; // www .j ava 2s .c om import android.graphics.Canvas; import com.jeremyfeinstein.slidingmenu.example.R; import com.jeremyfeinstein.slidingmenu.example.R.string; import com.jeremyfeinstein.slidingmenu.lib.SlidingMenu.CanvasTransformer; public class CustomScaleAnimation extends CustomAnimation { public CustomScaleAnimation() { super(R.string.anim_scale, new CanvasTransformer() { @Override public void transformCanvas(Canvas canvas, float percentOpen) { canvas.scale(percentOpen, 1, 0, 0); } }); } }