在ScrollView 中添加
android:fillViewport="true"整体设置
<ScrollView
android:layout_width="match_parent"
android:fillViewport="true"
android:layout_height="match_parent">
<android.support.v4.view.ViewPager
android:layout_width="match_parent"
android:layout_height="match_parent">
</android.support.v4.view.ViewPager>
</LinearLayout>
</ScrollView>
本文介绍如何使用ScrollView并配合ViewPager实现内容完全填充视口的效果。通过设置android:fillViewport=true,可以确保ScrollView内的子视图能填充整个屏幕高度。
480

被折叠的 条评论
为什么被折叠?



