Skip to content

设置ViewPageTransformer,达到viewpage切换动画,包括3D切换动画,使用简单

Notifications You must be signed in to change notification settings

LuckLe/3DViewPageTransformer

Repository files navigation

3DViewPageTransformer

设置ViewPageTransformer,达到viewpage切换动画,包括3D切换动画,使用简单

话不多说,直接上效果图

具体使用:

//			"默认", "深入浅出", "立方体", "旋转","左右折叠", "右上角进入" , "右下角进入", "淡入淡出","3D无缩放","3D有缩放"
                case 0:
                    mViewPager.setPageTransformer(true, new DefaultTransformer());
                    break;
                case 1:
                    mViewPager.setPageTransformer(true, new DepthPageTransformer());
                    break;
                case 2:
                    mViewPager.setPageTransformer(true, new CubeTransformer());
                    break;
                case 3:
                    mViewPager.setPageTransformer(true, new RotateTransformer());
                    break;
                case 4:
                    mViewPager.setPageTransformer(true, new AccordionTransformer());
                    break;
                case 5:
                    mViewPager.setPageTransformer(true, new InRightUpTransformer());
                    break;
                case 6:
                    mViewPager.setPageTransformer(true, new InRightDownTransformer());
                    break;
                case 7:
                    mViewPager.setPageTransformer(true, new ZoomOutPageTransformer());
                    break;
                case 8:
                    mViewPager.setPageTransformer(true, new ThreeDTransformer());
                    break;
                case 9:
                    mViewPager.setPageTransformer(true, new ThreeeDAndScaleTransformer());

如有其它好的切换效果,也可告诉我,我更新在此。

About

设置ViewPageTransformer,达到viewpage切换动画,包括3D切换动画,使用简单

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages