【发布时间】:2023-04-08 08:39:02
【问题描述】:
我想看看 首先会在片段上显示广告视图,最后会出现 botton android pagertabstrip,但 pagertabstip 会以某种方式占据整页。 我的代码在下面
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/black" >
<LinearLayout
android:id="@+id/adview"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/black"
android:orientation="vertical" >
</LinearLayout>
<android.support.v4.view.ViewPager
android:id="@+id/pager"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_above="@+id/tabs"
android:layout_below="@+id/adview"
tools:context=".MainActivity" />
<com.astuetz.PagerSlidingTabStrip
android:id="@+id/tabs"
android:layout_width="match_parent"
android:layout_height="48dip"
android:layout_alignParentBottom="true"
android:layout_below="@+id/adview"
android:background="@color/black" >
</com.astuetz.PagerSlidingTabStrip>
</RelativeLayout>
我如何做到这一点,标签条底部和分页器视图顶部,
【问题讨论】:
标签: android android-fragments pager