@@ -0,0 +1,1706 @@
+package com.ruigoncalo.marvin.utils;%0A%0Aimport android.support.v4.view.ViewPager;%0Aimport android.view.View;%0A%0A/**%0A * Font: http://developer.android.com/training/animation/screen-slide.html%0A *%0A * Created by ruigoncalo on 28/04/16.%0A */%0Apublic class ZoomOutPageTransformer implements ViewPager.PageTransformer %7B%0A    private static final float MIN_SCALE = 0.85f;%0A    private static final float MIN_ALPHA = 0.5f;%0A%0A    public void transformPage(View view, float position) %7B%0A        int pageWidth = view.getWidth();%0A        int pageHeight = view.getHeight();%0A%0A        if (position %3C -1) %7B // %5B-Infinity,-1)%0A            // This page is way off-screen to the left.%0A            view.setAlpha(0);%0A%0A        %7D else if (position %3C= 1) %7B // %5B-1,1%5D%0A            // Modify the default slide transition to shrink the page as well%0A            float scaleFactor = Math.max(MIN_SCALE, 1 - Math.abs(position));%0A            float vertMargin = pageHeight * (1 - scaleFactor) / 2;%0A            float horzMargin = pageWidth * (1 - scaleFactor) / 2;%0A            if (position %3C 0) %7B%0A                view.setTranslationX(horzMargin - vertMargin / 2);%0A            %7D else %7B%0A                view.setTranslationX(-horzMargin + vertMargin / 2);%0A            %7D%0A%0A            // Scale the page down (between MIN_SCALE and 1)%0A            view.setScaleX(scaleFactor);%0A            view.setScaleY(scaleFactor);%0A%0A            // Fade the page relative to its size.%0A            view.setAlpha(MIN_ALPHA +%0A                    (scaleFactor - MIN_SCALE) /%0A                            (1 - MIN_SCALE) * (1 - MIN_ALPHA));%0A%0A        %7D else %7B // (1,+Infinity%5D%0A            // This page is way off-screen to the right.%0A            view.setAlpha(0);%0A        %7D%0A    %7D%0A%7D%0A

Create pager transformer for collections screen