How to make two Fragments appear side

In Google Play on tablets, click on Apps and you will see a ViewPager with CATEGORIES, FEATURED, TOP PAID, and so on. When you swipe your finger from TOP PAID to FEATURED, the Fragment for TOP PAID leaves completely and simultaneously brings in the FEATURED Fragment.

However, when you scroll to CATEGORIES, you'll see that the left half of the FEATURED Fragment remains on the screen alongside with CATEGORIES instead of completing leaving the screen. The left half of FEATURED is still scrollable and its child views can still be clicked on...etc. How is this done? I notice that this behavior is not seen in Google Play on phones.

链接地址: http://www.djcxy.com/p/68140.html

上一篇: Android.app片段与android.support.v4.app使用ViewPager?

下一篇: 如何使两个碎片出现在一边