blob: 8b4dc18c92f5859b4696efd183089c2c7d3539ff [file] [log] [blame]
Dmitri Plotnikove1d4c062010-07-15 16:20:36 -07001<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2009 The Android Open Source Project
3
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15-->
16
Wenyi Wangf568b302016-04-02 13:58:43 -070017<android.support.v4.widget.DrawerLayout
18 xmlns:android="http://schemas.android.com/apk/res/android"
19 xmlns:app="http://schemas.android.com/apk/res-auto"
20 xmlns:tools="http://schemas.android.com/tools"
21 android:id="@+id/drawer_layout"
Dmitri Plotnikove1d4c062010-07-15 16:20:36 -070022 android:layout_width="match_parent"
Wenyi Wangf568b302016-04-02 13:58:43 -070023 android:layout_height="match_parent"
24 android:fitsSystemWindows="true"
25 tools:openDrawer="start">
Katherine Kuanb5760b92011-06-01 16:19:40 -070026
Wenyi Wangc516dd32016-04-07 16:25:51 -070027 <!-- To prevent hamburger menu from getting the initial focus. -->
28 <View
29 android:focusable="true"
30 android:focusableInTouchMode="true"
31 android:layout_width="1px"
32 android:layout_height="1px" >
33 <requestFocus/>
34 </View>
35
Wenyi Wangf568b302016-04-02 13:58:43 -070036 <RelativeLayout
37 android:id="@+id/list_container"
Daniel Lehmann0cc25792011-03-02 21:38:03 -080038 android:layout_width="match_parent"
Wenyi Wangf568b302016-04-02 13:58:43 -070039 android:layout_height="match_parent">
Katherine Kuanb5760b92011-06-01 16:19:40 -070040
Wenyi Wangf568b302016-04-02 13:58:43 -070041 <include
42 layout="@layout/people_activity_toolbar"
43 android:id="@+id/toolbar_parent" />
44
45 <!--
46 ViewPager for swiping between tabs. We put StrequentContactListFragment,
47 DefaultContactBrowseListFragment and GroupBrowseListFragment at runtime.
48
49 (Adding them directly as the children of this view is not recommended. ViewPager should
50 be treated like a ListView, which doesn't expect children to be added from the layout.)
51 -->
52 <android.support.v4.view.ViewPager
53 android:id="@+id/tab_pager"
Daniel Lehmann0cc25792011-03-02 21:38:03 -080054 android:layout_height="match_parent"
Wenyi Wangf568b302016-04-02 13:58:43 -070055 android:layout_width="match_parent"
56 android:layout_below="@id/toolbar_parent"
57 />
Paul Soulos2b9563d2014-05-27 16:21:23 -070058
Wenyi Wangf568b302016-04-02 13:58:43 -070059 <FrameLayout
60 android:id="@+id/contacts_unavailable_view"
61 android:layout_width="match_parent"
62 android:layout_height="match_parent"
63 android:layout_below="@id/toolbar_parent"
64 android:visibility="gone">
65 <FrameLayout
66 android:id="@+id/contacts_unavailable_container"
67 android:layout_height="match_parent"
68 android:layout_width="match_parent" />
69 </FrameLayout>
70
71 <include layout="@layout/floating_action_button" />
72 </RelativeLayout>
73
74 <android.support.design.widget.NavigationView
75 android:id="@+id/nav_view"
76 android:layout_width="wrap_content"
77 android:layout_height="match_parent"
78 android:layout_gravity="start"
79 android:fitsSystemWindows="true"
80 app:headerLayout="@layout/nav_header_main"
81 app:menu="@menu/activity_main_drawer"/>
82
83</android.support.v4.widget.DrawerLayout>