Anthony Chen | 54daefe | 2017-04-07 17:19:54 -0700 | [diff] [blame] | 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 | <!-- 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 Eyler | fbc5d50 | 2017-09-06 16:26:29 -0700 | [diff] [blame] | 21 | android:layout_height="@dimen/car_qs_footer_height" |
Anthony Chen | 54daefe | 2017-04-07 17:19:54 -0700 | [diff] [blame] | 22 | android:baselineAligned="false" |
| 23 | android:clickable="false" |
| 24 | android:clipChildren="false" |
| 25 | android:clipToPadding="false" |
Bryan Eyler | fbc5d50 | 2017-09-06 16:26:29 -0700 | [diff] [blame] | 26 | 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 Eyler | 8014a50 | 2017-07-19 13:16:51 -0700 | [diff] [blame] | 30 | android:gravity="center_vertical"> |
Anthony Chen | 54daefe | 2017-04-07 17:19:54 -0700 | [diff] [blame] | 31 | |
| 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 Eyler | fbc5d50 | 2017-09-06 16:26:29 -0700 | [diff] [blame] | 36 | android:layout_width="@dimen/car_qs_footer_icon_width" |
| 37 | android:layout_height="@dimen/car_qs_footer_icon_height" |
Anthony Chen | 54daefe | 2017-04-07 17:19:54 -0700 | [diff] [blame] | 38 | 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 Eyler | fbc5d50 | 2017-09-06 16:26:29 -0700 | [diff] [blame] | 46 | android:scaleType="fitCenter"/> |
Anthony Chen | 54daefe | 2017-04-07 17:19:54 -0700 | [diff] [blame] | 47 | </com.android.systemui.statusbar.phone.MultiUserSwitch> |
| 48 | |
Bryan Eyler | ba88b3e | 2017-11-02 12:22:26 -0700 | [diff] [blame] | 49 | <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 Eyler | cade225 | 2017-08-31 17:57:45 -0700 | [diff] [blame] | 61 | <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 Eyler | fbc5d50 | 2017-09-06 16:26:29 -0700 | [diff] [blame] | 65 | android:textColor="@color/car_qs_footer_user_name_color" |
Bryan Eyler | cade225 | 2017-08-31 17:57:45 -0700 | [diff] [blame] | 66 | android:gravity="start|center_vertical" |
| 67 | android:layout_centerVertical="true" |
Bryan Eyler | ba88b3e | 2017-11-02 12:22:26 -0700 | [diff] [blame] | 68 | android:layout_toEndOf="@id/user_switch_expand_icon" /> |
Bryan Eyler | cade225 | 2017-08-31 17:57:45 -0700 | [diff] [blame] | 69 | |
Anthony Chen | 54daefe | 2017-04-07 17:19:54 -0700 | [diff] [blame] | 70 | <com.android.systemui.statusbar.phone.SettingsButton |
| 71 | android:id="@+id/settings_button" |
| 72 | android:layout_alignParentEnd="true" |
| 73 | android:layout_centerVertical="true" |
Bryan Eyler | fbc5d50 | 2017-09-06 16:26:29 -0700 | [diff] [blame] | 74 | android:layout_width="@dimen/car_qs_footer_icon_width" |
| 75 | android:layout_height="@dimen/car_qs_footer_icon_height" |
Anthony Chen | 54daefe | 2017-04-07 17:19:54 -0700 | [diff] [blame] | 76 | 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> |