Android Open Source - Swipe-Tabs Flip Vertical Transformer






From Project

Back to project page Swipe-Tabs.

License

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.

Java Source Code

package it.bellotti.android.swipetabs.transforms;
/*from  w  ww. j a v  a 2 s . c o m*/
import android.view.View;

/**
 * Created with IntelliJ IDEA.
 * User: SimoneBellotti
 * Date: 24/11/2014
 * Time: 12.45
 */
public class FlipVerticalTransformer extends BaseTransformer {

    @Override
    protected void onTransform(View view, float position) {
        final float rotation = -180f * position;
        view.setAlpha(rotation > 90f || rotation < -90f ? 0f : 1f);
        view.setPivotX(view.getWidth() * 0.5f);
        view.setPivotY(view.getHeight() * 0.5f);
        view.setRotationX(rotation);
    }
}




Java Source Code List

it.bellotti.android.swipetabs.activities.MainActivity.java
it.bellotti.android.swipetabs.adapters.TabsPagerAdapter.java
it.bellotti.android.swipetabs.fragments.CalendarFragment.java
it.bellotti.android.swipetabs.fragments.HomeFragment.java
it.bellotti.android.swipetabs.fragments.StatisticsFragment.java
it.bellotti.android.swipetabs.transforms.AccordionTransformer.java
it.bellotti.android.swipetabs.transforms.AlphaTransformer.java
it.bellotti.android.swipetabs.transforms.BackgroundToForegroundTransformer.java
it.bellotti.android.swipetabs.transforms.BaseTransformer.java
it.bellotti.android.swipetabs.transforms.CubeInTransformer.java
it.bellotti.android.swipetabs.transforms.CubeOutTransformer.java
it.bellotti.android.swipetabs.transforms.DepthPageTransformer.java
it.bellotti.android.swipetabs.transforms.FlipHorizontalTransformer.java
it.bellotti.android.swipetabs.transforms.FlipVerticalTransformer.java
it.bellotti.android.swipetabs.transforms.ForegroundToBackgroundTransformer.java
it.bellotti.android.swipetabs.transforms.ParallaxPageTransformer.java
it.bellotti.android.swipetabs.transforms.RotateDownTransformer.java
it.bellotti.android.swipetabs.transforms.RotateUpTransformer.java
it.bellotti.android.swipetabs.transforms.RotationPageTransformer.java
it.bellotti.android.swipetabs.transforms.ScalePageTransformer.java
it.bellotti.android.swipetabs.transforms.StackTransformer.java
it.bellotti.android.swipetabs.transforms.TabletTransformer.java
it.bellotti.android.swipetabs.transforms.ZoomInPageTransformer.java
it.bellotti.android.swipetabs.transforms.ZoomOutPageTransformer.java
it.bellotti.android.swipetabs.transforms.ZoomOutSlideTransformer.java