blob: 55c192d56a4dc04d6a23fd58c2c15ff9f18aa856
1 | <!-- |
2 | Copyright (C) 2015 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 | <android.support.v4.widget.DrawerLayout |
17 | xmlns:android="http://schemas.android.com/apk/res/android" |
18 | android:id="@+id/drawer_layout" |
19 | android:layout_width="match_parent" |
20 | android:layout_height="match_parent"> |
21 | <!-- The main content view --> |
22 | <LinearLayout |
23 | android:id="@+id/content_parent" |
24 | android:layout_width="match_parent" |
25 | android:layout_height="match_parent" |
26 | android:orientation="vertical" |
27 | android:fitsSystemWindows="true"> |
28 | <Toolbar |
29 | android:id="@+id/action_bar" |
30 | style="?android:attr/actionBarStyle" |
31 | android:layout_width="match_parent" |
32 | android:layout_height="wrap_content" |
33 | android:theme="?android:attr/actionBarTheme" |
34 | android:navigationContentDescription="@*android:string/action_bar_up_description"/> |
35 | <FrameLayout |
36 | android:id="@+id/content_header_container" |
37 | style="?android:attr/actionBarStyle" |
38 | android:layout_width="match_parent" |
39 | android:layout_height="wrap_content"/> |
40 | <FrameLayout |
41 | android:id="@+id/content_frame" |
42 | android:layout_width="match_parent" |
43 | android:layout_height="fill_parent" |
44 | android:background="?android:attr/windowBackground" /> |
45 | </LinearLayout> |
46 | </android.support.v4.widget.DrawerLayout> |
47 |