【发布时间】:2014-01-03 22:28:04
【问题描述】:
我正在开发一个带有 4 个选项卡的 Android 应用程序。
这是我的 activity_main.xml
<android.support.v4.view.ViewPager xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/pager"
android:layout_width="match_parent"
android:layout_height="match_parent">
</android.support.v4.view.ViewPager>
这是我的一个标签(目前它们都一样)
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:background="#ff8400" >
<TextView android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:text="Top Screen"
android:textSize="20dp"
android:layout_centerInParent="true"/>
</RelativeLayout>
如何添加在每个选项卡上可见的页脚?
这是添加一个在滚动标签时保持可见的播放器。
【问题讨论】:
标签: java android android-fragments tabs