blob: 8282e919eee6678bb540f0c96af8cf51f7619c45 [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 Wangf568b302016-04-02 13:58:43 -070027 <RelativeLayout
28 android:id="@+id/list_container"
Daniel Lehmann0cc25792011-03-02 21:38:03 -080029 android:layout_width="match_parent"
Wenyi Wangf568b302016-04-02 13:58:43 -070030 android:layout_height="match_parent">
Katherine Kuanb5760b92011-06-01 16:19:40 -070031
Wenyi Wangf568b302016-04-02 13:58:43 -070032 <include
33 layout="@layout/people_activity_toolbar"
34 android:id="@+id/toolbar_parent" />
35
36 <!--
37 ViewPager for swiping between tabs. We put StrequentContactListFragment,
38 DefaultContactBrowseListFragment and GroupBrowseListFragment at runtime.
39
40 (Adding them directly as the children of this view is not recommended. ViewPager should
41 be treated like a ListView, which doesn't expect children to be added from the layout.)
42 -->
43 <android.support.v4.view.ViewPager
44 android:id="@+id/tab_pager"
Daniel Lehmann0cc25792011-03-02 21:38:03 -080045 android:layout_height="match_parent"
Wenyi Wangf568b302016-04-02 13:58:43 -070046 android:layout_width="match_parent"
47 android:layout_below="@id/toolbar_parent"
48 />
Paul Soulos2b9563d2014-05-27 16:21:23 -070049
Wenyi Wangf568b302016-04-02 13:58:43 -070050 <FrameLayout
51 android:id="@+id/contacts_unavailable_view"
52 android:layout_width="match_parent"
53 android:layout_height="match_parent"
54 android:layout_below="@id/toolbar_parent"
55 android:visibility="gone">
56 <FrameLayout
57 android:id="@+id/contacts_unavailable_container"
58 android:layout_height="match_parent"
59 android:layout_width="match_parent" />
60 </FrameLayout>
61
62 <include layout="@layout/floating_action_button" />
63 </RelativeLayout>
64
65 <android.support.design.widget.NavigationView
66 android:id="@+id/nav_view"
67 android:layout_width="wrap_content"
68 android:layout_height="match_parent"
69 android:layout_gravity="start"
70 android:fitsSystemWindows="true"
71 app:headerLayout="@layout/nav_header_main"
72 app:menu="@menu/activity_main_drawer"/>
73
74</android.support.v4.widget.DrawerLayout>