mirror of
https://github.com/MinimalBible/MinimalBible
synced 2025-04-19 17:31:37 -04:00
40 lines
1.7 KiB
XML
40 lines
1.7 KiB
XML
<!-- 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"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:id="@+id/drawer_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
tools:context="org.bspeice.minimalbible.activities.viewer.BibleViewer">
|
|
|
|
<!-- Main content
|
|
fitsSystemWindows not set so that the Bible view can flow
|
|
over the navigation drawer -->
|
|
<LinearLayout
|
|
android:id="@+id/container"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical">
|
|
|
|
<android.support.v7.widget.Toolbar
|
|
android:id="@+id/toolbar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="@color/colorPrimary"
|
|
android:minHeight="?attr/actionBarSize" />
|
|
|
|
<org.bspeice.minimalbible.activity.viewer.BibleView
|
|
android:id="@+id/content"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent" />
|
|
</LinearLayout>
|
|
|
|
<!-- Navigation drawer - layout_gravity:start activates the magic. -->
|
|
<org.bspeice.minimalbible.activity.viewer.BibleMenu
|
|
android:id="@+id/navigation_drawer"
|
|
style="@style/MinimalBible.NavigationDrawer"
|
|
android:layout_width="@dimen/navigation_drawer_width"
|
|
android:layout_height="match_parent"
|
|
android:layout_gravity="start" />
|
|
|
|
</android.support.v4.widget.DrawerLayout>
|