1
0
mirror of https://gitlab.com/openlp/android.git synced 2024-11-01 00:57:06 +00:00
android/app/src/main/res/layout/activity_main.xml

32 lines
1.5 KiB
XML
Raw Normal View History

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-01-23 17:53:00 +00:00
<FrameLayout
android:id="@+id/container"
android:layout_width="match_parent"
2015-01-19 20:26:35 +00:00
android:layout_height="match_parent" />
<!-- 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"
android:layout_height="match_parent"
android:layout_gravity="start"
2015-01-19 20:26:35 +00:00
tools:layout="@layout/fragment_navigation_drawer" />
</android.support.v4.widget.DrawerLayout>