sample/src/main/res/layout/detail_activity.xml
<?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:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin">
<TextView
android:id="@+id/title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Hi! I'm the detail"/>
<FrameLayout
android:id="@+id/placeholder"
android:layout_below="@+id/title"
android:layout_above="@+id/buttons"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
<LinearLayout
android:id="@+id/buttons"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_alignParentBottom="true">
<Button
android:id="@+id/next"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="next view"/>
<Button
android:id="@+id/prev"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="prev view"/>
<Button
android:id="@+id/act"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="next activity"/>
<Button
android:id="@+id/prev_act"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="prev activity"/>
<Button
android:id="@+id/times"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="back n times"/>
</LinearLayout>
</RelativeLayout>