请教高手如何解决ViewPager限制高度

fxfxfxfxw fxfxfxfxw 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
如图,我想让Viewpager不会遮挡下面的底部导航,但是Listview要正常使用,,,如果我把Viewpager限制宽度的话ListView就刷不出来。。。。求大神解决
<fragment
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:name="com.example.myapplication.MyFragment"
android:id="@+id/fragment">
</fragment>
<android.support.v4.view.ViewPager
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/viewpager"

android:layout_alignParentTop="true"
>
<android.support.v4.view.PagerTabStrip
android:layout_width="match_parent"
android:layout_height="20dp"
android:layout_gravity="top"
android:id="@+id/tab">

</android.support.v4.view.PagerTabStrip>

</android.support.v4.view.ViewPager>

底部导航Radiogroup是用fragment显示的
...全文

相关推荐

评论 6
收藏 已收藏
分享
返回顶部
fxfxfxfxw
Android 80,490 成员 91,371 内容