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/nav_bar_background" 24 android:gravity="center" 25 android:orientation="horizontal"> 26 27 <LinearLayout 28 android:id="@+id/nav_buttons" 29 android:layout_width="match_parent" 30 android:layout_height="wrap_content" 31 android:layout_marginHorizontal="@dimen/car_nav_buttons_margin" 32 android:layoutDirection="ltr" 33 android:gravity="center"> 34 35 <com.android.systemui.car.systembar.CarSystemBarButton 36 android:id="@+id/home" 37 android:contentDescription="@string/system_bar_home_label" 38 style="@style/SystemBarButton" 39 systemui:componentNames="com.android.car.carlauncher/.CarLauncher" 40 systemui:highlightWhenSelected="true" 41 systemui:icon="@drawable/car_ic_home" 42 systemui:intent="intent:#Intent;action=android.intent.action.MAIN;category=android.intent.category.HOME;launchFlags=0x14000000;end" 43 systemui:systemBarDisableFlags="home" 44 systemui:controller="com.android.systemui.car.systembar.HomeButtonController"/> 45 46 <com.android.systemui.car.systembar.CarSystemBarButton 47 android:id="@+id/passenger_home" 48 android:contentDescription="@string/system_bar_home_label" 49 android:visibility="gone" 50 style="@style/SystemBarButton" 51 systemui:highlightWhenSelected="true" 52 systemui:icon="@drawable/car_ic_home" 53 systemui:intent="intent:#Intent;action=android.intent.action.MAIN;category=android.intent.category.HOME;launchFlags=0x14000000;end" 54 systemui:systemBarDisableFlags="home" 55 systemui:controller="com.android.systemui.car.systembar.PassengerHomeButtonController"/> 56 57 <Space 58 android:layout_width="0dp" 59 android:layout_height="match_parent" 60 android:layout_weight="1"/> 61 62 <com.android.systemui.car.hvac.TemperatureControlView 63 android:id="@+id/driver_hvac" 64 style="@style/TemperatureControlView" 65 systemui:hvacAreaId="49" 66 systemui:controller="com.android.systemui.car.hvac.TemperatureControlViewController"> 67 <include layout="@layout/adjustable_temperature_view"/> 68 </com.android.systemui.car.hvac.TemperatureControlView> 69 70 <Space 71 android:layout_width="0dp" 72 android:layout_height="match_parent" 73 android:layout_weight="1"/> 74 75 <com.android.systemui.car.systembar.AppGridButton 76 android:id="@+id/grid_nav" 77 android:contentDescription="@string/system_bar_applications_label" 78 style="@style/SystemBarButton" 79 systemui:componentNames="@string/config_appGridComponentName" 80 systemui:highlightWhenSelected="true" 81 systemui:icon="@drawable/car_ic_apps" 82 systemui:intent="@string/system_bar_app_drawer_intent" 83 systemui:clearBackStack="@bool/config_enableClearBackStack" 84 systemui:systemBarDisableFlags="home"/> 85 86 <com.android.systemui.car.systembar.element.layout.CarSystemBarFrameLayout 87 android:layout_width="wrap_content" 88 android:layout_height="wrap_content" 89 android:layout_marginHorizontal="@dimen/dock_container_margin" 90 systemui:controller="com.android.systemui.car.systembar.DockViewControllerWrapper"> 91 <com.android.car.docklib.view.DockView 92 android:id="@+id/dock" 93 android:layout_width="wrap_content" 94 android:layout_height="wrap_content" /> 95 </com.android.systemui.car.systembar.element.layout.CarSystemBarFrameLayout> 96 97 <com.android.systemui.car.systembar.CarSystemBarButton 98 android:id="@+id/control_center_nav" 99 android:contentDescription="@string/system_bar_control_center_label" 100 style="@style/SystemBarButton" 101 android:visibility="gone" 102 systemui:highlightWhenSelected="true" 103 systemui:icon="@drawable/car_ic_control_center" 104 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" 105 systemui:componentNames="com.android.car.multidisplay.controlcenter/.ControlCenterActivity" 106 systemui:controller="com.android.systemui.car.systembar.ControlCenterButtonController"/> 107 108 <Space 109 android:layout_width="0dp" 110 android:layout_height="match_parent" 111 android:layout_weight="1"/> 112 113 <com.android.systemui.car.hvac.TemperatureControlView 114 android:id="@+id/passenger_hvac" 115 style="@style/TemperatureControlView" 116 systemui:hvacAreaId="68" 117 systemui:controller="com.android.systemui.car.hvac.TemperatureControlViewController"> 118 <include layout="@layout/adjustable_temperature_view"/> 119 </com.android.systemui.car.hvac.TemperatureControlView> 120 121 <Space 122 android:layout_width="0dp" 123 android:layout_height="match_parent" 124 android:layout_weight="1"/> 125 126 <com.android.systemui.car.systembar.AssistantButton 127 android:id="@+id/assistant" 128 android:contentDescription="@string/system_bar_assistant_label" 129 style="@style/SystemBarButton" 130 systemui:highlightWhenSelected="true" 131 systemui:icon="@drawable/ic_mic_light"/> 132 133 </LinearLayout> 134 135 <LinearLayout 136 android:id="@+id/lock_screen_nav_buttons" 137 android:layout_width="match_parent" 138 android:layout_height="wrap_content" 139 android:layout_weight="1" 140 android:gravity="center" 141 android:layoutDirection="ltr" 142 android:paddingEnd="@dimen/car_keyline_1" 143 android:paddingStart="@dimen/car_keyline_1" 144 android:visibility="gone"/> 145 146 <LinearLayout 147 android:id="@+id/occlusion_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 <com.android.systemui.car.systembar.CarSystemBarButton 157 android:id="@+id/home" 158 android:contentDescription="@string/system_bar_home_label" 159 style="@style/SystemBarButton" 160 systemui:componentNames="com.android.car.carlauncher/.CarLauncher" 161 systemui:highlightWhenSelected="true" 162 systemui:icon="@drawable/car_ic_home" 163 systemui:intent="intent:#Intent;action=android.intent.action.MAIN;category=android.intent.category.HOME;launchFlags=0x14000000;end" 164 systemui:systemBarDisableFlags="home" 165 systemui:controller="com.android.systemui.car.systembar.HomeButtonController"/> 166 </LinearLayout> 167</com.android.systemui.car.systembar.CarSystemBarView> 168