Dmitri Plotnikov | e1d4c06 | 2010-07-15 16:20:36 -0700 | [diff] [blame] | 1 | <?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 Wang | f568b30 | 2016-04-02 13:58:43 -0700 | [diff] [blame^] | 17 | <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 Plotnikov | e1d4c06 | 2010-07-15 16:20:36 -0700 | [diff] [blame] | 22 | android:layout_width="match_parent" |
Wenyi Wang | f568b30 | 2016-04-02 13:58:43 -0700 | [diff] [blame^] | 23 | android:layout_height="match_parent" |
| 24 | android:fitsSystemWindows="true" |
| 25 | tools:openDrawer="start"> |
Katherine Kuan | b5760b9 | 2011-06-01 16:19:40 -0700 | [diff] [blame] | 26 | |
Wenyi Wang | f568b30 | 2016-04-02 13:58:43 -0700 | [diff] [blame^] | 27 | <RelativeLayout |
| 28 | android:id="@+id/list_container" |
Daniel Lehmann | 0cc2579 | 2011-03-02 21:38:03 -0800 | [diff] [blame] | 29 | android:layout_width="match_parent" |
Wenyi Wang | f568b30 | 2016-04-02 13:58:43 -0700 | [diff] [blame^] | 30 | android:layout_height="match_parent"> |
Katherine Kuan | b5760b9 | 2011-06-01 16:19:40 -0700 | [diff] [blame] | 31 | |
Wenyi Wang | f568b30 | 2016-04-02 13:58:43 -0700 | [diff] [blame^] | 32 | <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 Lehmann | 0cc2579 | 2011-03-02 21:38:03 -0800 | [diff] [blame] | 45 | android:layout_height="match_parent" |
Wenyi Wang | f568b30 | 2016-04-02 13:58:43 -0700 | [diff] [blame^] | 46 | android:layout_width="match_parent" |
| 47 | android:layout_below="@id/toolbar_parent" |
| 48 | /> |
Paul Soulos | 2b9563d | 2014-05-27 16:21:23 -0700 | [diff] [blame] | 49 | |
Wenyi Wang | f568b30 | 2016-04-02 13:58:43 -0700 | [diff] [blame^] | 50 | <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> |