1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2017 The Android Open Source Project 3 4Licensed under the Apache License, Version 2.0 (the "License"); 5you may not use this file except in compliance with the License. 6You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10Unless required by applicable law or agreed to in writing, software 11distributed under the License is distributed on an "AS IS" BASIS, 12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13See the License for the specific language governing permissions and 14limitations under the License. 15--> 16<androidx.coordinatorlayout.widget.CoordinatorLayout 17 xmlns:android="http://schemas.android.com/apk/res/android" 18 xmlns:app="http://schemas.android.com/apk/res-auto" 19 android:layout_width="match_parent" 20 android:layout_height="match_parent"> 21 22 <androidx.drawerlayout.widget.DrawerLayout 23 android:id="@+id/drawer_layout" 24 android:layout_width="match_parent" 25 android:layout_height="match_parent"> 26 27 <!-- The main content view. Fragments will be added here. --> 28 <androidx.car.moderator.SpeedBumpView 29 android:id="@+id/content_frame" 30 android:layout_width="match_parent" 31 android:layout_height="match_parent" 32 app:layout_behavior="@string/appbar_scrolling_view_behavior" /> 33 34 <include 35 android:layout_width="match_parent" 36 android:layout_height="match_parent" 37 android:layout_gravity="start" 38 layout="@layout/car_drawer" /> 39 </androidx.drawerlayout.widget.DrawerLayout> 40 41 <android.support.design.widget.AppBarLayout 42 android:id="@+id/appbar" 43 android:layout_width="match_parent" 44 android:layout_height="wrap_content" 45 android:fitsSystemWindows="true"> 46 <!-- The min height of the Toolbar needs to be set to ensure that the icons in it 47 are vertically centered. --> 48 <androidx.car.widget.ClickThroughToolbar 49 android:id="@+id/car_toolbar" 50 android:layout_width="match_parent" 51 android:layout_height="@dimen/car_app_bar_height" 52 android:layout_gravity="center_vertical" 53 android:minHeight="@dimen/car_app_bar_height" 54 style="@style/Widget.Car.Toolbar" /> 55 </android.support.design.widget.AppBarLayout> 56</androidx.coordinatorlayout.widget.CoordinatorLayout> 57