Back to project page Swipe-Tabs.
The source code is released under:
MIT License
If you think the Android project Swipe-Tabs 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 it.bellotti.android.swipetabs.transforms; // w w w . ja va 2 s . c o m import android.view.View; /** * Created with IntelliJ IDEA. * User: SimoneBellotti * Date: 24/11/2014 * Time: 12.41 */ public class CubeInTransformer extends BaseTransformer { @Override protected void onTransform(View view, float position) { // Rotate the fragment on the left or right edge view.setPivotX(position > 0 ? 0 : view.getWidth()); view.setPivotY(0); view.setRotationY(-90f * position); } @Override public boolean isPagingEnabled() { return true; } }