1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 ~ Copyright (C) 2018 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.statusbar.car.CarNavigationBarView 19 xmlns:android="http://schemas.android.com/apk/res/android" 20 xmlns:systemui="http://schemas.android.com/apk/res-auto" 21 android:id="@+id/car_top_bar" 22 android:layout_width="match_parent" 23 android:layout_height="match_parent" 24 android:background="@drawable/system_bar_background" 25 android:orientation="vertical"> 26 27 <RelativeLayout 28 android:layout_width="match_parent" 29 android:layout_height="wrap_content" 30 android:layout_weight="1"> 31 32 <FrameLayout 33 android:id="@+id/left_hvac_container" 34 android:layout_width="wrap_content" 35 android:layout_height="match_parent" 36 android:layout_alignParentStart="true" 37 > 38 39 <com.android.systemui.statusbar.car.CarNavigationButton 40 android:id="@+id/hvacleft" 41 android:layout_width="match_parent" 42 android:layout_height="match_parent" 43 android:background="@null" 44 systemui:broadcast="true" 45 systemui:intent="intent:#Intent;action=android.car.intent.action.TOGGLE_HVAC_CONTROLS;end" 46 /> 47 48 <com.android.systemui.statusbar.hvac.AnimatedTemperatureView 49 android:id="@+id/lefttext" 50 android:layout_width="wrap_content" 51 android:layout_height="match_parent" 52 android:paddingStart="@*android:dimen/car_padding_4" 53 android:paddingEnd="16dp" 54 android:gravity="center_vertical|start" 55 android:minEms="4" 56 android:textAppearance="@style/TextAppearance.CarStatus" 57 systemui:hvacAreaId="49" 58 systemui:hvacMaxText="@string/hvac_max_text" 59 systemui:hvacMaxValue="@dimen/hvac_max_value" 60 systemui:hvacMinText="@string/hvac_min_text" 61 systemui:hvacMinValue="@dimen/hvac_min_value" 62 systemui:hvacPivotOffset="60dp" 63 systemui:hvacPropertyId="358614275" 64 systemui:hvacTempFormat="%.0f\u00B0" 65 /> 66 </FrameLayout> 67 68 <FrameLayout 69 android:id="@+id/clock_container" 70 android:layout_width="wrap_content" 71 android:layout_height="match_parent" 72 android:layout_centerInParent="true" 73 > 74 <com.android.systemui.statusbar.car.CarNavigationButton 75 android:id="@+id/qs" 76 android:layout_width="match_parent" 77 android:layout_height="match_parent" 78 android:background="@null" 79 systemui:intent="intent:#Intent;component=com.android.car.settings/.common.CarSettingActivity;launchFlags=0x24000000;end" 80 /> 81 <com.android.systemui.statusbar.policy.Clock 82 android:id="@+id/clock" 83 android:layout_width="wrap_content" 84 android:layout_height="wrap_content" 85 android:layout_gravity="center" 86 android:elevation="5dp" 87 android:singleLine="true" 88 android:textAppearance="@style/TextAppearance.StatusBar.Clock" 89 /> 90 </FrameLayout> 91 92 <LinearLayout 93 android:id="@+id/system_icon_area" 94 android:layout_width="wrap_content" 95 android:layout_height="match_parent" 96 android:layout_centerHorizontal="true" 97 android:layout_centerVertical="true" 98 android:layout_toEndOf="@+id/clock_container" 99 android:paddingStart="@*android:dimen/car_padding_1" 100 android:gravity="center_vertical" 101 android:orientation="horizontal" 102 > 103 104 <include 105 layout="@layout/system_icons" 106 android:layout_width="wrap_content" 107 android:layout_height="wrap_content" 108 android:layout_weight="1" 109 android:paddingStart="4dp" 110 android:gravity="center_vertical" 111 /> 112 </LinearLayout> 113 114 <FrameLayout 115 android:id="@+id/right_hvac_container" 116 android:layout_width="wrap_content" 117 android:layout_height="match_parent" 118 android:layout_alignParentEnd="true" 119 > 120 121 <com.android.systemui.statusbar.car.CarNavigationButton 122 android:id="@+id/hvacright" 123 android:layout_width="match_parent" 124 android:layout_height="match_parent" 125 android:background="@null" 126 systemui:broadcast="true" 127 systemui:intent="intent:#Intent;action=android.car.intent.action.TOGGLE_HVAC_CONTROLS;end" 128 /> 129 130 <com.android.systemui.statusbar.hvac.AnimatedTemperatureView 131 android:id="@+id/righttext" 132 android:layout_width="wrap_content" 133 android:layout_height="match_parent" 134 android:paddingStart="16dp" 135 android:paddingEnd="@*android:dimen/car_padding_4" 136 android:gravity="center_vertical|end" 137 android:minEms="4" 138 android:textAppearance="@style/TextAppearance.CarStatus" 139 systemui:hvacAreaId="68" 140 systemui:hvacMaxText="@string/hvac_max_text" 141 systemui:hvacMaxValue="@dimen/hvac_max_value" 142 systemui:hvacMinText="@string/hvac_min_text" 143 systemui:hvacMinValue="@dimen/hvac_min_value" 144 systemui:hvacPivotOffset="60dp" 145 systemui:hvacPropertyId="358614275" 146 systemui:hvacTempFormat="%.0f\u00B0" 147 /> 148 </FrameLayout> 149 </RelativeLayout> 150 151</com.android.systemui.statusbar.car.CarNavigationBarView> 152