Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (C) 2016 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 <FrameLayout
     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     <android.support.v4.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         <FrameLayout
     29             android:id="@+id/content_frame"
     30             android:layout_width="match_parent"
     31             android:layout_height="match_parent" />
     32 
     33         <FrameLayout
     34             android:id="@+id/drawer_content"
     35             android:layout_width="match_parent"
     36             android:layout_height="match_parent"
     37             android:layout_gravity="left"
     38             android:layout_marginEnd="@dimen/car_drawer_right_margin"
     39             android:background="@color/car_card"
     40             android:paddingTop="@dimen/lens_header_height" >
     41 
     42             <android.support.car.ui.PagedListView
     43                 android:id="@+id/drawer_list"
     44                 android:layout_width="match_parent"
     45                 android:layout_height="match_parent" />
     46 
     47             <ProgressBar
     48                 android:id="@+id/drawer_progress"
     49                 android:layout_width="@dimen/car_drawer_progress_bar_size"
     50                 android:layout_height="@dimen/car_drawer_progress_bar_size"
     51                 android:layout_gravity="center"
     52                 android:indeterminate="true"
     53                 android:visibility="gone" />
     54 
     55         </FrameLayout>
     56     </android.support.v4.widget.DrawerLayout>
     57 
     58     <!-- Placing toolbar last so it appears above the content/drawer -->
     59     <FrameLayout
     60         android:layout_width="wrap_content"
     61         android:layout_height="@dimen/lens_header_height">
     62         <android.support.v7.widget.Toolbar
     63             android:id="@+id/main_toolbar"
     64             android:layout_width="wrap_content"
     65             android:layout_height="wrap_content"
     66             android:layout_gravity="center_vertical"
     67             app:titleTextAppearance="@style/CarTitle.Light"
     68             app:contentInsetStart="@dimen/stream_content_keyline_1" />
     69     </FrameLayout>
     70 
     71 </FrameLayout>