| <?xml version="1.0" encoding="utf-8"?> |
| <!-- |
| Copyright (C) 2015 The Android Open Source Project |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| android:fitsSystemWindows="true" |
| android:layout_width="match_parent" |
| android:layout_height="match_parent" |
| android:background="@android:color/black" |
| android:visibility="gone"> |
| |
| <!-- This progressbar is activated while we're switching users. --> |
| <ProgressBar |
| android:id="@+id/switching_users" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:indeterminate="true" |
| android:visibility="gone" |
| android:layout_gravity="center" /> |
| |
| <RelativeLayout |
| android:id="@+id/container" |
| android:layout_width="match_parent" |
| android:layout_height="match_parent"> |
| |
| <!-- This progress bar is the countdown timer. --> |
| <ProgressBar |
| android:id="@+id/countdown_progress" |
| android:layout_width="match_parent" |
| android:layout_height="@dimen/car_user_switcher_progress_bar_height" |
| style="@style/CarUserSwitcher.ProgressBar" |
| android:layout_marginTop="@dimen/car_user_switcher_progress_bar_margin_top" |
| android:layout_alignParentTop="true"/> |
| |
| <com.android.systemui.statusbar.car.UserGridView |
| android:id="@+id/user_grid" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:layout_marginLeft="@dimen/car_margin" |
| android:layout_marginRight="@dimen/car_margin" |
| android:layout_centerInParent="true" /> |
| |
| <com.android.systemui.statusbar.car.PageIndicator |
| android:id="@+id/user_switcher_page_indicator" |
| android:layout_width="match_parent" |
| android:layout_height="@dimen/car_page_indicator_dot_diameter" |
| android:layout_marginTop="@dimen/car_page_indicator_margin_top" |
| android:layout_below="@+id/user_grid" /> |
| |
| <Button |
| android:id="@+id/start_driving" |
| android:layout_width="wrap_content" |
| android:layout_height="@dimen/car_start_driving_height" |
| android:text="@string/start_driving" |
| style="@style/CarUserSwitcher.StartDrivingButton" |
| android:layout_alignParentBottom="true" |
| android:layout_centerHorizontal="true" /> |
| </RelativeLayout> |
| </FrameLayout> |