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; /* www.jav a2s . co m*/ import android.view.View; /** * Created with IntelliJ IDEA. * User: SimoneBellotti * Date: 24/11/2014 * Time: 12.45 */ public class FlipHorizontalTransformer extends BaseTransformer { @Override protected void onTransform(View view, float position) { final float rotation = 180f * position; view.setAlpha(rotation > 90f || rotation < -90f ? 0 : 1); view.setPivotX(view.getWidth() * 0.5f); view.setPivotY(view.getHeight() * 0.5f); view.setRotationY(rotation); } }