Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (C) 2017 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 <androidx.drawerlayout.widget.DrawerLayout
     17     xmlns:android="http://schemas.android.com/apk/res/android"
     18     xmlns:app="http://schemas.android.com/apk/res-auto"
     19     android:id="@+id/drawer_layout"
     20     android:layout_width="match_parent"
     21     android:layout_height="match_parent">
     22 
     23     <androidx.coordinatorlayout.widget.CoordinatorLayout
     24         android:layout_width="match_parent"
     25         android:layout_height="match_parent">
     26 
     27         <com.google.android.material.appbar.AppBarLayout
     28             android:id="@+id/appbar"
     29             android:layout_width="match_parent"
     30             android:layout_height="wrap_content"
     31             android:fitsSystemWindows="true">
     32             <!-- The min height of the Toolbar needs to be set to ensure that the icons in it
     33                  are vertically centered. -->
     34             <androidx.appcompat.widget.Toolbar
     35                 android:id="@+id/car_toolbar"
     36                 android:layout_width="match_parent"
     37                 android:layout_height="@dimen/car_app_bar_height"
     38                 android:layout_gravity="center_vertical"
     39                 android:minHeight="@dimen/car_app_bar_height"
     40                 style="?attr/toolbarStyle" />
     41         </com.google.android.material.appbar.AppBarLayout>
     42 
     43         <!-- The main content view. Fragments will be added here. -->
     44         <androidx.car.moderator.SpeedBumpView
     45             android:id="@+id/content_frame"
     46             android:layout_width="match_parent"
     47             android:layout_height="match_parent"
     48             app:layout_behavior="@string/appbar_scrolling_view_behavior" />
     49     </androidx.coordinatorlayout.widget.CoordinatorLayout>
     50 
     51     <include
     52         android:layout_width="match_parent"
     53         android:layout_height="match_parent"
     54         android:layout_gravity="start"
     55         android:layout_marginEnd="@dimen/car_margin"
     56         layout="@layout/car_drawer" />
     57 </androidx.drawerlayout.widget.DrawerLayout>
     58