ViewPager 在 ScrollView 中顯示不全的解決方法

好比我這裏android

 <android.support.v4.view.ViewPager
                    android:id="@+id/viewPager2"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_below="@+id/viewPager2tabMenu" />spa

viewPage高度是wrap_content,將其改成一個固定的值就能夠解決了。orm

更加詳細猛戳這裏rem

http://stackoverflow.com/questions/9034030/viewpager-in-scrollviewget

相關文章
相關標籤/搜索