Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!--
      3      Copyright (C) 2015 The Android Open Source Project
      4 
      5      Licensed under the Apache License, Version 2.0 (the "License");
      6      you may not use this file except in compliance with the License.
      7      You may obtain a copy of the License at
      8 
      9           http://www.apache.org/licenses/LICENSE-2.0
     10 
     11      Unless required by applicable law or agreed to in writing, software
     12      distributed under the License is distributed on an "AS IS" BASIS,
     13      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     14      See the License for the specific language governing permissions and
     15      limitations under the License.
     16 -->
     17 <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
     18         android:fitsSystemWindows="true"
     19         android:layout_width="match_parent"
     20         android:layout_height="match_parent"
     21         android:background="@android:color/black"
     22         android:visibility="gone">
     23 
     24     <!-- This progressbar is activated while we're switching users. -->
     25     <ProgressBar
     26         android:id="@+id/switching_users"
     27         android:layout_width="wrap_content"
     28         android:layout_height="wrap_content"
     29         android:indeterminate="true"
     30         android:visibility="gone"
     31         android:layout_gravity="center" />
     32 
     33     <RelativeLayout
     34         android:id="@+id/container"
     35         android:layout_width="match_parent"
     36         android:layout_height="match_parent">
     37 
     38         <include layout="@layout/car_status_bar_header"
     39             android:theme="@android:style/Theme"
     40             android:layout_alignParentTop="true"/>
     41 
     42         <!-- This progress bar is the countdown timer. -->
     43         <ProgressBar
     44             android:id="@+id/countdown_progress"
     45             android:layout_width="match_parent"
     46             android:layout_height="@dimen/car_user_switcher_progress_bar_height"
     47             style="@style/CarUserSwitcher.ProgressBar"
     48             android:layout_marginTop="@dimen/car_user_switcher_progress_bar_margin_top"
     49             android:layout_alignParentTop="true"/>
     50 
     51         <com.android.systemui.statusbar.car.UserGridView
     52             android:id="@+id/user_grid"
     53             android:layout_width="match_parent"
     54             android:layout_height="wrap_content"
     55             android:layout_marginLeft="@dimen/car_margin"
     56             android:layout_marginRight="@dimen/car_margin"
     57             android:layout_centerInParent="true" />
     58 
     59         <com.android.systemui.statusbar.car.PageIndicator
     60             android:id="@+id/user_switcher_page_indicator"
     61             android:layout_width="match_parent"
     62             android:layout_height="@dimen/car_page_indicator_dot_diameter"
     63             android:layout_marginTop="@dimen/car_page_indicator_margin_top"
     64             android:layout_below="@+id/user_grid" />
     65 
     66         <Button
     67             android:id="@+id/start_driving"
     68             android:layout_width="wrap_content"
     69             android:layout_height="@dimen/car_start_driving_height"
     70             android:text="@string/start_driving"
     71             style="@style/CarUserSwitcher.StartDrivingButton"
     72             android:layout_alignParentBottom="true"
     73             android:layout_centerHorizontal="true" />
     74     </RelativeLayout>
     75 </FrameLayout>
     76