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; /* w w w . j av a 2s.c o m*/ import android.view.View; import com.nineoldandroids.view.ViewHelper; public class CubeInTransformer extends BaseTransformer { @Override protected void onTransform(View view, float position) { // Rotate the fragment on the left or right edge ViewHelper.setPivotX(view,position > 0 ? 0 : view.getWidth()); ViewHelper.setPivotY(view,0); ViewHelper.setRotation(view,-90f * position); } @Override public boolean isPagingEnabled() { return true; } }