blob: 3afd4ea33039b0df20d541e3b09ee513a9fd57d5 [file] [log] [blame]
Anthony Chen54daefe2017-04-07 17:19:54 -07001<?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<!-- extends RelativeLayout -->
17<com.android.systemui.qs.car.CarQSFooter
18 xmlns:android="http://schemas.android.com/apk/res/android"
19 android:id="@+id/qs_footer"
20 android:layout_width="match_parent"
Bryan Eylerfbc5d502017-09-06 16:26:29 -070021 android:layout_height="@dimen/car_qs_footer_height"
Anthony Chen54daefe2017-04-07 17:19:54 -070022 android:baselineAligned="false"
23 android:clickable="false"
24 android:clipChildren="false"
25 android:clipToPadding="false"
Bryan Eylerfbc5d502017-09-06 16:26:29 -070026 android:paddingBottom="@dimen/car_qs_footer_padding_bottom"
27 android:paddingTop="@dimen/car_qs_footer_padding_top"
28 android:paddingEnd="@dimen/car_qs_footer_padding_end"
29 android:paddingStart="@dimen/car_qs_footer_padding_start"
Bryan Eyler8014a502017-07-19 13:16:51 -070030 android:gravity="center_vertical">
Anthony Chen54daefe2017-04-07 17:19:54 -070031
32 <com.android.systemui.statusbar.phone.MultiUserSwitch
33 android:id="@+id/multi_user_switch"
34 android:layout_alignParentStart="true"
35 android:layout_centerVertical="true"
Bryan Eylerfbc5d502017-09-06 16:26:29 -070036 android:layout_width="@dimen/car_qs_footer_icon_width"
37 android:layout_height="@dimen/car_qs_footer_icon_height"
Anthony Chen54daefe2017-04-07 17:19:54 -070038 android:background="@drawable/ripple_drawable"
39 android:focusable="true">
40
41 <ImageView
42 android:id="@+id/multi_user_avatar"
43 android:layout_width="match_parent"
44 android:layout_height="match_parent"
45 android:layout_gravity="center"
Bryan Eylerfbc5d502017-09-06 16:26:29 -070046 android:scaleType="fitCenter"/>
Anthony Chen54daefe2017-04-07 17:19:54 -070047 </com.android.systemui.statusbar.phone.MultiUserSwitch>
48
Bryan Eylerba88b3e2017-11-02 12:22:26 -070049 <ImageView
50 android:id="@+id/user_switch_expand_icon"
51 android:layout_height="match_parent"
52 android:layout_width="@dimen/car_qs_footer_user_switch_icon_width"
53 android:layout_centerVertical="true"
54 android:layout_toEndOf="@+id/multi_user_switch"
55 android:layout_marginLeft="@dimen/car_qs_footer_user_switch_icon_margin"
56 android:layout_marginRight="@dimen/car_qs_footer_user_switch_icon_margin"
57 android:src="@drawable/car_ic_arrow_drop_up"
58 android:scaleType="fitCenter">
59 </ImageView>
60
Bryan Eylercade2252017-08-31 17:57:45 -070061 <TextView android:id="@+id/user_name"
62 android:layout_width="wrap_content"
63 android:layout_height="wrap_content"
64 android:textSize="@dimen/car_qs_footer_user_name_text_size"
Bryan Eylerfbc5d502017-09-06 16:26:29 -070065 android:textColor="@color/car_qs_footer_user_name_color"
Bryan Eylercade2252017-08-31 17:57:45 -070066 android:gravity="start|center_vertical"
67 android:layout_centerVertical="true"
Bryan Eylerba88b3e2017-11-02 12:22:26 -070068 android:layout_toEndOf="@id/user_switch_expand_icon" />
Bryan Eylercade2252017-08-31 17:57:45 -070069
Anthony Chen54daefe2017-04-07 17:19:54 -070070 <com.android.systemui.statusbar.phone.SettingsButton
71 android:id="@+id/settings_button"
72 android:layout_alignParentEnd="true"
73 android:layout_centerVertical="true"
Bryan Eylerfbc5d502017-09-06 16:26:29 -070074 android:layout_width="@dimen/car_qs_footer_icon_width"
75 android:layout_height="@dimen/car_qs_footer_icon_height"
Anthony Chen54daefe2017-04-07 17:19:54 -070076 android:background="@drawable/ripple_drawable"
77 android:contentDescription="@string/accessibility_quick_settings_settings"
78 android:scaleType="centerCrop"
79 android:src="@drawable/ic_settings_16dp"
80 android:tint="?android:attr/colorForeground"
81 style="@android:style/Widget.Material.Button.Borderless" />
82
83</com.android.systemui.qs.car.CarQSFooter>