@@ -0,0 +1,698 @@
+package cn.diaovision.omnicontrol.widget;%0A%0Aimport android.support.v4.view.ViewPager;%0Aimport android.view.View;%0A%0A/**%0A * Created by TaoYimin on 2017/5/22.%0A */%0A%0Apublic class ViewPagerTransformer implements ViewPager.PageTransformer %7B%0A%0A    @Override%0A    public void transformPage(View view, float position) %7B%0A        float alpha = 0;%0A        if (0 %3C= position && position %3C= 1) %7B%0A            alpha = 1 - position;%0A        %7D else if (-1 %3C position && position %3C 0) %7B%0A            alpha = position + 1;%0A        %7D%0A        view.setAlpha(alpha);%0A        view.setTranslationX(view.getWidth() * -position);%0A        float yPosition = position * view.getHeight();%0A        view.setTranslationY(yPosition);%0A    %7D%0A%7D

add vertical viewpager transformer