blob: ad68e84edf393d30c27862ba0bea6a5a62b50c1b [file] [log] [blame]
Wenyi Wangbb229242016-05-25 16:04:13 -07001<?xml version="1.0" encoding="utf-8"?>
2<!--
3 Copyright (C) 2016 The Android Open Source Project
4
5 Licensed under the Apache License, Version 2.0 (the "License");
6 you may not use this file except in compliance with the License.
7 You may obtain a copy of the License at
8
9 http://www.apache.org/licenses/LICENSE-2.0
10
11 Unless required by applicable law or agreed to in writing, software
12 distributed under the License is distributed on an "AS IS" BASIS,
13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 See the License for the specific language governing permissions and
15 limitations under the License.
16-->
17
18<android.support.v4.widget.DrawerLayout
19 xmlns:android="http://schemas.android.com/apk/res/android"
20 xmlns:app="http://schemas.android.com/apk/res-auto"
21 xmlns:tools="http://schemas.android.com/tools"
22 android:id="@+id/drawer_layout"
23 android:layout_width="match_parent"
24 android:layout_height="match_parent"
25 android:fitsSystemWindows="true"
26 tools:openDrawer="start">
27
28 <!-- To prevent hamburger menu from getting the initial focus. -->
29 <View
30 android:focusable="true"
31 android:focusableInTouchMode="true"
32 android:layout_width="1px"
33 android:layout_height="1px" >
34 <requestFocus/>
35 </View>
36
37 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
38 android:id="@+id/fragment_container"
39 android:orientation="vertical"
40 android:layout_width="match_parent"
41 android:layout_height="match_parent">
42
43 <include
44 layout="@layout/people_activity_toolbar"
45 android:id="@+id/toolbar_parent" />
46
47 <FrameLayout
48 android:id="@+id/content_frame"
49 android:layout_width="match_parent"
50 android:layout_height="fill_parent"
51 android:background="?android:attr/windowBackground" />
52 </LinearLayout>
53
54 <android.support.design.widget.NavigationView
55 android:id="@+id/nav_view"
56 android:layout_width="wrap_content"
57 android:layout_height="match_parent"
58 android:layout_gravity="start"
59 android:fitsSystemWindows="true"
Wenyi Wangf8a5ab42016-05-25 16:04:13 -070060 app:itemBackground="@drawable/drawer_item_background"
Wenyi Wangbb229242016-05-25 16:04:13 -070061 app:headerLayout="@layout/nav_header_main"
62 app:menu="@menu/activity_main_drawer"/>
63
64</android.support.v4.widget.DrawerLayout>