Back to project page AndroidImageSlider.
The source code is released under:
MIT License
If you think the Android project AndroidImageSlider 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.daimajia.slider.library.Transformers; //from w w w . j a v a 2 s . c o m import android.view.View; import com.nineoldandroids.view.ViewHelper; public class RotateDownTransformer extends BaseTransformer { private static final float ROT_MOD = -15f; @Override protected void onTransform(View view, float position) { final float width = view.getWidth(); final float height = view.getHeight(); final float rotation = ROT_MOD * position * -1.25f; ViewHelper.setPivotX(view,width * 0.5f); ViewHelper.setPivotY(view,height); ViewHelper.setRotation(view,rotation); } @Override protected boolean isPagingEnabled() { return true; } }