blob: cdc29eec21cdef93bc7d08a66c1461cd2bb72183 [file] [log] [blame]
Brad Stenning754f8c92018-06-19 15:03:46 -07001<?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
Heemin Seog9b078d32020-04-21 15:07:32 -070018<com.android.systemui.car.navigationbar.CarNavigationBarView
Brad Stenning754f8c92018-06-19 15:03:46 -070019 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"
Brad Stenningfbc8a0f2018-11-09 10:35:01 -080024 android:background="@drawable/system_bar_background"
Brad Stenning754f8c92018-06-19 15:03:46 -070025 android:orientation="vertical">
26
27 <RelativeLayout
28 android:layout_width="match_parent"
29 android:layout_height="wrap_content"
Heemin Seoga0a4e6b2020-06-02 14:52:17 -070030 android:layout_weight="1"
31 android:layoutDirection="ltr">
Brad Stenning754f8c92018-06-19 15:03:46 -070032
33 <FrameLayout
34 android:id="@+id/left_hvac_container"
35 android:layout_width="wrap_content"
36 android:layout_height="match_parent"
37 android:layout_alignParentStart="true"
38 >
39
Heemin Seog9b078d32020-04-21 15:07:32 -070040 <com.android.systemui.car.navigationbar.CarNavigationButton
Brad Stenning754f8c92018-06-19 15:03:46 -070041 android:id="@+id/hvacleft"
42 android:layout_width="match_parent"
43 android:layout_height="match_parent"
44 android:background="@null"
45 systemui:broadcast="true"
46 systemui:intent="intent:#Intent;action=android.car.intent.action.TOGGLE_HVAC_CONTROLS;end"
47 />
48
Heemin Seog51a86332020-04-19 01:14:12 -070049 <com.android.systemui.car.hvac.AnimatedTemperatureView
Brad Stenning754f8c92018-06-19 15:03:46 -070050 android:id="@+id/lefttext"
51 android:layout_width="wrap_content"
52 android:layout_height="match_parent"
Heemin Seog50b43b72019-03-17 23:54:23 -070053 android:paddingStart="@*android:dimen/car_padding_4"
Brad Stenning754f8c92018-06-19 15:03:46 -070054 android:paddingEnd="16dp"
55 android:gravity="center_vertical|start"
56 android:minEms="4"
Heemin Seog50b43b72019-03-17 23:54:23 -070057 android:textAppearance="@style/TextAppearance.CarStatus"
davidlnb453cded2018-07-02 14:49:08 -070058 systemui:hvacAreaId="49"
Brad Stenning754f8c92018-06-19 15:03:46 -070059 systemui:hvacMaxText="@string/hvac_max_text"
60 systemui:hvacMaxValue="@dimen/hvac_max_value"
61 systemui:hvacMinText="@string/hvac_min_text"
62 systemui:hvacMinValue="@dimen/hvac_min_value"
63 systemui:hvacPivotOffset="60dp"
64 systemui:hvacPropertyId="358614275"
65 systemui:hvacTempFormat="%.0f\u00B0"
66 />
67 </FrameLayout>
68
69 <FrameLayout
70 android:id="@+id/clock_container"
71 android:layout_width="wrap_content"
72 android:layout_height="match_parent"
73 android:layout_centerInParent="true"
74 >
Heemin Seog9b078d32020-04-21 15:07:32 -070075 <com.android.systemui.car.navigationbar.CarNavigationButton
Brad Stenning754f8c92018-06-19 15:03:46 -070076 android:id="@+id/qs"
77 android:layout_width="match_parent"
78 android:layout_height="match_parent"
79 android:background="@null"
Alex Stetson2dd82d52020-05-05 14:46:31 -070080 systemui:intent="intent:#Intent;component=com.android.car.settings/.common.CarSettingActivities$QuickSettingActivity;launchFlags=0x24000000;end"
Brad Stenning754f8c92018-06-19 15:03:46 -070081 />
82 <com.android.systemui.statusbar.policy.Clock
83 android:id="@+id/clock"
84 android:layout_width="wrap_content"
85 android:layout_height="wrap_content"
86 android:layout_gravity="center"
87 android:elevation="5dp"
88 android:singleLine="true"
89 android:textAppearance="@style/TextAppearance.StatusBar.Clock"
90 />
91 </FrameLayout>
92
93 <LinearLayout
94 android:id="@+id/system_icon_area"
95 android:layout_width="wrap_content"
96 android:layout_height="match_parent"
97 android:layout_centerHorizontal="true"
98 android:layout_centerVertical="true"
99 android:layout_toEndOf="@+id/clock_container"
Heemin Seog50b43b72019-03-17 23:54:23 -0700100 android:paddingStart="@*android:dimen/car_padding_1"
Brad Stenning754f8c92018-06-19 15:03:46 -0700101 android:gravity="center_vertical"
102 android:orientation="horizontal"
103 >
104
105 <include
106 layout="@layout/system_icons"
107 android:layout_width="wrap_content"
108 android:layout_height="wrap_content"
109 android:layout_weight="1"
110 android:paddingStart="4dp"
111 android:gravity="center_vertical"
112 />
113 </LinearLayout>
114
115 <FrameLayout
116 android:id="@+id/right_hvac_container"
117 android:layout_width="wrap_content"
118 android:layout_height="match_parent"
119 android:layout_alignParentEnd="true"
120 >
121
Heemin Seog9b078d32020-04-21 15:07:32 -0700122 <com.android.systemui.car.navigationbar.CarNavigationButton
Brad Stenning754f8c92018-06-19 15:03:46 -0700123 android:id="@+id/hvacright"
124 android:layout_width="match_parent"
125 android:layout_height="match_parent"
126 android:background="@null"
127 systemui:broadcast="true"
128 systemui:intent="intent:#Intent;action=android.car.intent.action.TOGGLE_HVAC_CONTROLS;end"
129 />
130
Heemin Seog51a86332020-04-19 01:14:12 -0700131 <com.android.systemui.car.hvac.AnimatedTemperatureView
Brad Stenning754f8c92018-06-19 15:03:46 -0700132 android:id="@+id/righttext"
133 android:layout_width="wrap_content"
134 android:layout_height="match_parent"
135 android:paddingStart="16dp"
Heemin Seog50b43b72019-03-17 23:54:23 -0700136 android:paddingEnd="@*android:dimen/car_padding_4"
Brad Stenning754f8c92018-06-19 15:03:46 -0700137 android:gravity="center_vertical|end"
138 android:minEms="4"
Heemin Seog50b43b72019-03-17 23:54:23 -0700139 android:textAppearance="@style/TextAppearance.CarStatus"
davidlnb453cded2018-07-02 14:49:08 -0700140 systemui:hvacAreaId="68"
Brad Stenning754f8c92018-06-19 15:03:46 -0700141 systemui:hvacMaxText="@string/hvac_max_text"
142 systemui:hvacMaxValue="@dimen/hvac_max_value"
143 systemui:hvacMinText="@string/hvac_min_text"
144 systemui:hvacMinValue="@dimen/hvac_min_value"
145 systemui:hvacPivotOffset="60dp"
146 systemui:hvacPropertyId="358614275"
147 systemui:hvacTempFormat="%.0f\u00B0"
148 />
149 </FrameLayout>
150 </RelativeLayout>
151
Heemin Seog9b078d32020-04-21 15:07:32 -0700152</com.android.systemui.car.navigationbar.CarNavigationBarView>