<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="200dp">
<android.support.v4.view.ViewPager
android:id="@+id/vp"
android:layout_width="match_parent"
android:layout_height="200dp"
>
</android.support.v4.view.ViewPager>
<TextView
android:id="@+id/vp_tv"
android:layout_width="match_parent"
android:layout_height="40dp"
android:text="标题"
android:maxLength="15"
android:background="#88aaaaaa"
android:gravity="center_vertical"
android:paddingLeft="10dp"
android:layout_alignParentBottom="true"
/>
<LinearLayout
android:id="@+id/ll"
android:layout_width="wrap_content"
android:layout_height="40dp"
android:layout_alignParentBottom="true"
android:orientation="horizontal"
>
</LinearLayout>
</RelativeLayout>
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="200dp">
<android.support.v4.view.ViewPager
android:id="@+id/vp"
android:layout_width="match_parent"
android:layout_height="200dp"
>
</android.support.v4.view.ViewPager>
<TextView
android:id="@+id/vp_tv"
android:layout_width="match_parent"
android:layout_height="40dp"
android:text="标题"
android:maxLength="15"
android:background="#88aaaaaa"
android:gravity="center_vertical"
android:paddingLeft="10dp"
android:layout_alignParentBottom="true"
/>
<LinearLayout
android:id="@+id/ll"
android:layout_width="wrap_content"
android:layout_height="40dp"
android:layout_alignParentBottom="true"
android:orientation="horizontal"
>
</LinearLayout>
</RelativeLayout>