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 | |
Marcus Hagerott | bea2b85 | 2016-08-11 14:55:52 -0700 | [diff] [blame^] | 17 | <android.support.design.widget.CoordinatorLayout |
| 18 | xmlns:android="http://schemas.android.com/apk/res/android" |
| 19 | android:id="@+id/root" |
Dmitri Plotnikov | e1d4c06 | 2010-07-15 16:20:36 -0700 | [diff] [blame] | 20 | android:layout_width="match_parent" |
Marcus Hagerott | bea2b85 | 2016-08-11 14:55:52 -0700 | [diff] [blame^] | 21 | android:layout_height="match_parent" > |
Katherine Kuan | b5760b9 | 2011-06-01 16:19:40 -0700 | [diff] [blame] | 22 | |
Marcus Hagerott | bea2b85 | 2016-08-11 14:55:52 -0700 | [diff] [blame^] | 23 | <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 24 | android:id="@+id/list_container" |
| 25 | android:layout_width="match_parent" |
| 26 | android:layout_height="match_parent"> |
Wenyi Wang | c516dd3 | 2016-04-07 16:25:51 -0700 | [diff] [blame] | 27 | |
Marcus Hagerott | bea2b85 | 2016-08-11 14:55:52 -0700 | [diff] [blame^] | 28 | <!-- |
| 29 | ViewPager for swiping between tabs. We put fragments at runtime. |
Wenyi Wang | f568b30 | 2016-04-02 13:58:43 -0700 | [diff] [blame] | 30 | |
Marcus Hagerott | bea2b85 | 2016-08-11 14:55:52 -0700 | [diff] [blame^] | 31 | (Adding them directly as the children of this view is not recommended. ViewPager should |
| 32 | be treated like a ListView, which doesn't expect children to be added from the layout.) |
| 33 | --> |
| 34 | <android.support.v4.view.ViewPager |
| 35 | android:id="@+id/tab_pager" |
Wenyi Wang | bb22924 | 2016-05-25 16:04:13 -0700 | [diff] [blame] | 36 | android:layout_height="match_parent" |
Marcus Hagerott | bea2b85 | 2016-08-11 14:55:52 -0700 | [diff] [blame^] | 37 | android:layout_width="match_parent" |
| 38 | android:layout_below="@id/toolbar_parent" |
| 39 | /> |
| 40 | |
| 41 | <FrameLayout |
| 42 | android:id="@+id/contacts_unavailable_view" |
| 43 | android:layout_width="match_parent" |
| 44 | android:layout_height="match_parent" |
| 45 | android:layout_below="@id/toolbar_parent" |
| 46 | android:visibility="gone"> |
| 47 | <FrameLayout |
| 48 | android:id="@+id/contacts_unavailable_container" |
| 49 | android:layout_height="match_parent" |
| 50 | android:layout_width="match_parent" /> |
| 51 | </FrameLayout> |
| 52 | |
| 53 | </RelativeLayout> |
Wenyi Wang | bb22924 | 2016-05-25 16:04:13 -0700 | [diff] [blame] | 54 | |
| 55 | <include layout="@layout/floating_action_button" /> |
Marcus Hagerott | bea2b85 | 2016-08-11 14:55:52 -0700 | [diff] [blame^] | 56 | </android.support.design.widget.CoordinatorLayout> |