2015-01-19 20:26:35 +00:00
<!-- A DrawerLayout is intended to be used as the top - level content view using match_parent for both width and height to consume the full space available. -->
<android.support.v4.widget.DrawerLayout xmlns:android= "http://schemas.android.com/apk/res/android"
2015-01-23 17:53:00 +00:00
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/drawer_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
2015-01-19 20:26:35 +00:00
tools:context=".MainActivity">
<!-- As the main content view, the view below consumes the entire
space available using match_parent in both dimensions. -->
2015-10-08 15:30:54 +00:00
<android.support.design.widget.CoordinatorLayout
2015-10-06 22:40:40 +00:00
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
2015-04-11 11:12:51 +00:00
<FrameLayout
2015-10-08 15:30:54 +00:00
android:id="@+id/container"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal">
<FrameLayout
android:id="@+id/container_left"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="start"
android:layout_marginRight="5dp"
android:layout_weight="1" />
<FrameLayout
android:id="@+id/container_right"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="end"
android:layout_marginLeft="5dp"
android:layout_weight="1" />
</LinearLayout>
2015-10-08 18:25:59 +00:00
2015-10-08 15:30:54 +00:00
<android.support.design.widget.FloatingActionButton
2015-10-06 22:40:40 +00:00
android:id="@+id/next_button"
android:layout_width="wrap_content"
2015-04-11 11:12:51 +00:00
android:layout_height="wrap_content"
2015-10-06 22:40:40 +00:00
android:layout_gravity="bottom|end"
2015-10-08 15:30:54 +00:00
android:layout_margin="16dp"
2015-10-06 22:40:40 +00:00
android:onClick="next"
2015-10-08 15:30:54 +00:00
android:src="@drawable/ic_arrow_forward_white"
android:text="@string/next"
2015-10-06 22:40:40 +00:00
android:visibility="gone" />
2015-04-11 11:12:51 +00:00
2015-10-08 15:30:54 +00:00
<android.support.design.widget.FloatingActionButton
2015-10-06 22:40:40 +00:00
android:id="@+id/prev_button"
android:layout_width="wrap_content"
2015-04-11 11:12:51 +00:00
android:layout_height="wrap_content"
2015-10-06 22:40:40 +00:00
android:layout_gravity="bottom|start"
2015-10-08 15:30:54 +00:00
android:layout_margin="16dp"
2015-10-06 22:40:40 +00:00
android:onClick="previous"
2015-10-08 15:30:54 +00:00
android:src="@drawable/ic_arrow_back_white"
android:text="@string/previous"
2015-10-06 22:40:40 +00:00
android:visibility="gone" />
2015-01-19 20:26:35 +00:00
2015-10-08 15:30:54 +00:00
</android.support.design.widget.CoordinatorLayout>
2015-01-19 20:26:35 +00:00
<!-- android:layout_gravity="start" tells DrawerLayout to treat
this as a sliding drawer on the left side for left-to-right
languages and on the right side for right-to-left languages.
If you're not building against API 17 or higher, use
android:layout_gravity="left" instead. -->
<!-- The drawer is given a fixed width in dp and extends the full height of
the container. -->
2015-01-23 17:53:00 +00:00
<fragment
android:id="@+id/navigation_drawer"
android:name="org.openlp.android2.fragments.NavigationDrawerFragment"
android:layout_width="@dimen/navigation_drawer_width"
2015-04-11 11:12:51 +00:00
android:layout_height="fill_parent"
2015-01-23 17:53:00 +00:00
android:layout_gravity="start"
2015-01-19 20:26:35 +00:00
tools:layout="@layout/fragment_navigation_drawer" />
</android.support.v4.widget.DrawerLayout>