| 1 |
<?xml version="1.0" encoding="utf-8"?> |
| 2 |
<android.support.v4.widget.DrawerLayout |
| 3 |
xmlns:android="http://schemas.android.com/apk/res/android" |
| 4 |
xmlns:app="http://schemas.android.com/apk/res-auto" |
| 5 |
xmlns:tools="http://schemas.android.com/tools" |
| 6 |
android:id="@+id/drawer_layout" |
| 7 |
android:layout_width="match_parent" |
| 8 |
android:layout_height="match_parent" |
| 9 |
android:fitsSystemWindows="true" |
| 10 |
tools:openDrawer="start"> |
| 11 |
|
| 12 |
<#if hasAppBar> |
| 13 |
<include |
| 14 |
layout="@layout/${appBarLayoutName}" |
| 15 |
android:layout_width="match_parent" |
| 16 |
android:layout_height="match_parent" /> |
| 17 |
<#else> |
| 18 |
<LinearLayout |
| 19 |
android:layout_width="match_parent" |
| 20 |
android:layout_height="match_parent" |
| 21 |
android:orientation="vertical"> |
| 22 |
|
| 23 |
<android.support.v7.widget.Toolbar |
| 24 |
android:id="@+id/toolbar" |
| 25 |
android:layout_height="wrap_content" |
| 26 |
android:layout_width="match_parent" |
| 27 |
android:minHeight="?attr/actionBarSize" |
| 28 |
android:background="?attr/colorPrimary" |
| 29 |
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar" |
| 30 |
app:popupTheme="@style/ThemeOverlay.AppCompat.Light" /> |
| 31 |
|
| 32 |
<include |
| 33 |
layout="@layout/${layoutName}" |
| 34 |
android:layout_width="match_parent" |
| 35 |
android:layout_height="match_parent" /> |
| 36 |
</LinearLayout> |
| 37 |
</#if> |
| 38 |
|
| 39 |
<android.support.design.widget.NavigationView |
| 40 |
android:id="@+id/nav_view" |
| 41 |
android:layout_width="wrap_content" |
| 42 |
android:layout_height="match_parent" |
| 43 |
android:layout_gravity="start" |
| 44 |
android:fitsSystemWindows="true" |
| 45 |
app:headerLayout="@layout/${navHeaderLayoutName}" |
| 46 |
app:menu="@menu/${drawerMenu}" /> |
| 47 |
|
| 48 |
</android.support.v4.widget.DrawerLayout> |