Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (C) 2018 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"
     21     android:layout_height="@dimen/car_qs_footer_height"
     22     android:baselineAligned="false"
     23     android:clickable="false"
     24     android:clipChildren="false"
     25     android:clipToPadding="false"
     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"
     30     android:gravity="center_vertical">
     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"
     36         android:layout_width="@dimen/car_qs_footer_icon_width"
     37         android:layout_height="@dimen/car_qs_footer_icon_height"
     38         android:background="?android:attr/selectableItemBackground"
     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"
     46             android:scaleType="fitCenter"/>
     47     </com.android.systemui.statusbar.phone.MultiUserSwitch>
     48 
     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 
     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"
     65         android:textColor="@color/car_qs_footer_user_name_color"
     66         android:gravity="start|center_vertical"
     67         android:layout_centerVertical="true"
     68         android:layout_toEndOf="@id/user_switch_expand_icon" />
     69 
     70     <com.android.systemui.statusbar.phone.SettingsButton
     71         android:id="@+id/settings_button"
     72         android:layout_alignParentEnd="true"
     73         android:layout_centerVertical="true"
     74         android:layout_width="@dimen/car_qs_footer_icon_width"
     75         android:layout_height="@dimen/car_qs_footer_icon_height"
     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>
     84