@@ -0,0 +1,1606 @@
+package me.twmm.twdroid.views;%0A%0Aimport android.support.v4.view.ViewPager;%0Aimport android.view.View;%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) //a%E9%A1%B5%E6%BB%91%E5%8A%A8%E8%87%B3b%E9%A1%B5 %EF%BC%9B a%E9%A1%B5%E4%BB%8E 0.0 -1 %EF%BC%9Bb%E9%A1%B5%E4%BB%8E1 ~ 0.0  %0A        %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 + (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  

add zoomoutpageTransformer