1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 ~ Copyright (C) 2020 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 18<com.android.systemui.car.systembar.CarSystemBarView 19 xmlns:android="http://schemas.android.com/apk/res/android" 20 xmlns:systemui="http://schemas.android.com/apk/res-auto" 21 android:layout_width="match_parent" 22 android:layout_height="match_parent" 23 android:background="@drawable/system_bar_background" 24 android:gravity="center" 25 android:orientation="horizontal"> 26 27 <RelativeLayout 28 android:id="@+id/nav_buttons" 29 android:layout_width="match_parent" 30 android:layout_height="wrap_content" 31 android:layoutDirection="ltr"> 32 33 <com.android.systemui.car.hvac.TemperatureControlView 34 android:id="@+id/driver_hvac" 35 android:layout_width="wrap_content" 36 android:layout_height="match_parent" 37 android:gravity="center_vertical" 38 systemui:hvacAreaId="49"> 39 <include layout="@layout/adjustable_temperature_view"/> 40 </com.android.systemui.car.hvac.TemperatureControlView> 41 42 <LinearLayout 43 android:layout_width="wrap_content" 44 android:layout_height="match_parent" 45 android:layout_centerInParent="true" 46 android:layout_weight="1" 47 android:gravity="center" 48 android:layoutDirection="ltr" 49 android:paddingEnd="@dimen/system_bar_button_group_padding" 50 android:paddingStart="@dimen/system_bar_button_group_padding"> 51 52 <Space 53 android:layout_width="0dp" 54 android:layout_height="match_parent" 55 android:layout_weight="1"/> 56 57 <com.android.systemui.car.systembar.CarSystemBarButton 58 android:id="@+id/home" 59 android:contentDescription="@string/system_bar_home_label" 60 style="@style/SystemBarButton" 61 systemui:componentNames="com.android.car.carlauncher/.CarLauncher" 62 systemui:highlightWhenSelected="true" 63 systemui:icon="@drawable/car_ic_home" 64 systemui:intent="intent:#Intent;action=android.intent.action.MAIN;category=android.intent.category.HOME;launchFlags=0x14000000;end"/> 65 66 <com.android.systemui.car.systembar.CarSystemBarButton 67 android:id="@+id/passenger_home" 68 android:contentDescription="@string/system_bar_home_label" 69 android:visibility="gone" 70 style="@style/SystemBarButton" 71 systemui:highlightWhenSelected="true" 72 systemui:icon="@drawable/car_ic_home" 73 systemui:intent="intent:#Intent;action=android.intent.action.MAIN;category=android.intent.category.HOME;launchFlags=0x14000000;end"/> 74 75 <com.android.systemui.car.systembar.CarSystemBarButton 76 android:id="@+id/phone_nav" 77 android:contentDescription="@string/system_bar_phone_label" 78 style="@style/SystemBarButton" 79 systemui:highlightWhenSelected="true" 80 systemui:icon="@drawable/car_ic_phone" 81 systemui:intent="intent:#Intent;action=android.intent.action.MAIN;category=android.intent.category.LAUNCHER;package=com.android.car.dialer;launchFlags=0x10000000;end" 82 systemui:packages="com.android.car.dialer" 83 systemui:clearBackStack="true"/> 84 85 <com.android.systemui.car.systembar.AppGridButton 86 android:id="@+id/grid_nav" 87 android:contentDescription="@string/system_bar_applications_label" 88 style="@style/SystemBarButton" 89 systemui:componentNames="@string/config_appGridComponentName" 90 systemui:highlightWhenSelected="true" 91 systemui:icon="@drawable/car_ic_apps" 92 systemui:intent="@string/system_bar_app_drawer_intent" 93 systemui:clearBackStack="true"/> 94 95 <com.android.systemui.car.systembar.HvacButton 96 android:id="@+id/hvac" 97 android:contentDescription="@string/system_bar_climate_control_label" 98 style="@style/SystemBarButton" 99 systemui:highlightWhenSelected="true" 100 systemui:icon="@drawable/car_ic_hvac" 101 systemui:broadcast="true"/> 102 103 <com.android.systemui.car.systembar.CarSystemBarButton 104 android:id="@+id/control_center_nav" 105 android:contentDescription="@string/system_bar_control_center_label" 106 style="@style/SystemBarButton" 107 android:visibility="gone" 108 systemui:highlightWhenSelected="true" 109 systemui:icon="@drawable/car_ic_control_center" 110 systemui:intent="intent:#Intent;action=android.intent.action.MAIN;package=com.android.car.multidisplay.controlcenter;component=com.android.car.multidisplay.controlcenter/.ControlCenterActivity;B.BOTTOM_BAR_LAUNCH=true;end" 111 systemui:componentNames="com.android.car.multidisplay.controlcenter/.ControlCenterActivity"/> 112 113 <com.android.systemui.car.systembar.CarSystemBarButton 114 android:id="@+id/notifications" 115 android:contentDescription="@string/system_bar_notifications_label" 116 style="@style/SystemBarButton" 117 systemui:highlightWhenSelected="true" 118 systemui:icon="@drawable/car_ic_notification" 119 systemui:longIntent="intent:#Intent;action=com.android.car.bugreport.action.START_AUDIO_FIRST;component=com.android.car.bugreport/.BugReportActivity;end"/> 120 121 <com.android.systemui.car.systembar.AssistantButton 122 android:id="@+id/assistant" 123 android:contentDescription="@string/system_bar_assistant_label" 124 style="@style/SystemBarButton" 125 systemui:highlightWhenSelected="true" 126 systemui:icon="@drawable/ic_mic_light"/> 127 128 <Space 129 android:layout_width="0dp" 130 android:layout_height="match_parent" 131 android:layout_weight="1"/> 132 </LinearLayout> 133 134 <com.android.systemui.car.hvac.TemperatureControlView 135 android:id="@+id/passenger_hvac" 136 android:layout_width="wrap_content" 137 android:layout_height="match_parent" 138 android:layout_alignParentEnd="true" 139 android:gravity="center_vertical" 140 systemui:hvacAreaId="68"> 141 <include layout="@layout/adjustable_temperature_view"/> 142 </com.android.systemui.car.hvac.TemperatureControlView> 143 144 </RelativeLayout> 145 146 <LinearLayout 147 android:id="@+id/lock_screen_nav_buttons" 148 android:layout_width="match_parent" 149 android:layout_height="wrap_content" 150 android:layout_weight="1" 151 android:gravity="center" 152 android:layoutDirection="ltr" 153 android:paddingEnd="@dimen/car_keyline_1" 154 android:paddingStart="@dimen/car_keyline_1" 155 android:visibility="gone"/> 156 157 <LinearLayout 158 android:id="@+id/occlusion_buttons" 159 android:layout_width="match_parent" 160 android:layout_height="wrap_content" 161 android:layout_weight="1" 162 android:gravity="center" 163 android:layoutDirection="ltr" 164 android:paddingEnd="@dimen/car_keyline_1" 165 android:paddingStart="@dimen/car_keyline_1" 166 android:visibility="gone"> 167 <com.android.systemui.car.systembar.CarSystemBarButton 168 android:id="@+id/home" 169 android:contentDescription="@string/system_bar_home_label" 170 style="@style/SystemBarButton" 171 systemui:componentNames="com.android.car.carlauncher/.CarLauncher" 172 systemui:highlightWhenSelected="true" 173 systemui:icon="@drawable/car_ic_home" 174 systemui:intent="intent:#Intent;action=android.intent.action.MAIN;category=android.intent.category.HOME;launchFlags=0x14000000;end"/> 175 </LinearLayout> 176</com.android.systemui.car.systembar.CarSystemBarView> 177