android-page-transition
项目地址:
android-page-transition
简介:viewPager 左右滑动时的错位视差,以及内部 Fragment Item 上下拖拽和进入新的 Activity 的 transition 动画,滑动流畅
viewpager with vertical sliding effects and activity transition
Coding design
Sliding pages to the left or right, as we know, could be implemented by using ViewPager. And fortunately, ViewPager's PagerTransformer is allowed for customization. That's to say, CustPagerTransformer could get rid of all the parallax effects.
Then, in viewpager's fragment item, vertical slide is an independent module, which could be realized by using ViewDragHelper. In the activity transition part, android OS (above 5.0) makes it easy to transfer to another activity.
Thanks
rubensousa/ViewPagerCards
antoniolg/MaterialEverywhere
Demo Apk