• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.car.navigationbar.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        android:layoutDirection="ltr">
32
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
40            <com.android.systemui.car.navigationbar.CarNavigationButton
41                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
49            <com.android.systemui.car.hvac.AnimatedTemperatureView
50                android:id="@+id/lefttext"
51                android:layout_width="wrap_content"
52                android:layout_height="match_parent"
53                android:paddingStart="@*android:dimen/car_padding_4"
54                android:paddingEnd="16dp"
55                android:gravity="center_vertical|start"
56                android:minEms="4"
57                android:textAppearance="@style/TextAppearance.CarStatus"
58                systemui:hvacAreaId="49"
59                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        >
75            <com.android.systemui.car.navigationbar.CarNavigationButton
76                android:id="@+id/qs"
77                android:layout_width="match_parent"
78                android:layout_height="match_parent"
79                android:background="@null"
80                android:focusedByDefault="true"
81                systemui:intent="intent:#Intent;component=com.android.car.settings/.common.CarSettingActivities$QuickSettingActivity;launchFlags=0x24000000;end"/>
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"
100            android:paddingStart="@*android:dimen/car_padding_1"
101            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
122            <com.android.systemui.car.navigationbar.CarNavigationButton
123                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
131            <com.android.systemui.car.hvac.AnimatedTemperatureView
132                android:id="@+id/righttext"
133                android:layout_width="wrap_content"
134                android:layout_height="match_parent"
135                android:paddingStart="16dp"
136                android:paddingEnd="@*android:dimen/car_padding_4"
137                android:gravity="center_vertical|end"
138                android:minEms="4"
139                android:textAppearance="@style/TextAppearance.CarStatus"
140                systemui:hvacAreaId="68"
141                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
152</com.android.systemui.car.navigationbar.CarNavigationBarView>
153