Brad Stenning | 754f8c9 | 2018-06-19 15:03:46 -0700 | [diff] [blame] | 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 | |
Heemin Seog | 9b078d3 | 2020-04-21 15:07:32 -0700 | [diff] [blame] | 18 | <com.android.systemui.car.navigationbar.CarNavigationBarView |
Brad Stenning | 754f8c9 | 2018-06-19 15:03:46 -0700 | [diff] [blame] | 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" |
Brad Stenning | fbc8a0f | 2018-11-09 10:35:01 -0800 | [diff] [blame] | 24 | android:background="@drawable/system_bar_background" |
Brad Stenning | 754f8c9 | 2018-06-19 15:03:46 -0700 | [diff] [blame] | 25 | android:orientation="vertical"> |
| 26 | |
| 27 | <RelativeLayout |
| 28 | android:layout_width="match_parent" |
| 29 | android:layout_height="wrap_content" |
Heemin Seog | a0a4e6b | 2020-06-02 14:52:17 -0700 | [diff] [blame] | 30 | android:layout_weight="1" |
| 31 | android:layoutDirection="ltr"> |
Brad Stenning | 754f8c9 | 2018-06-19 15:03:46 -0700 | [diff] [blame] | 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 | |
Heemin Seog | 9b078d3 | 2020-04-21 15:07:32 -0700 | [diff] [blame] | 40 | <com.android.systemui.car.navigationbar.CarNavigationButton |
Brad Stenning | 754f8c9 | 2018-06-19 15:03:46 -0700 | [diff] [blame] | 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 | |
Heemin Seog | 51a8633 | 2020-04-19 01:14:12 -0700 | [diff] [blame] | 49 | <com.android.systemui.car.hvac.AnimatedTemperatureView |
Brad Stenning | 754f8c9 | 2018-06-19 15:03:46 -0700 | [diff] [blame] | 50 | android:id="@+id/lefttext" |
| 51 | android:layout_width="wrap_content" |
| 52 | android:layout_height="match_parent" |
Heemin Seog | 50b43b7 | 2019-03-17 23:54:23 -0700 | [diff] [blame] | 53 | android:paddingStart="@*android:dimen/car_padding_4" |
Brad Stenning | 754f8c9 | 2018-06-19 15:03:46 -0700 | [diff] [blame] | 54 | android:paddingEnd="16dp" |
| 55 | android:gravity="center_vertical|start" |
| 56 | android:minEms="4" |
Heemin Seog | 50b43b7 | 2019-03-17 23:54:23 -0700 | [diff] [blame] | 57 | android:textAppearance="@style/TextAppearance.CarStatus" |
davidln | b453cded | 2018-07-02 14:49:08 -0700 | [diff] [blame] | 58 | systemui:hvacAreaId="49" |
Brad Stenning | 754f8c9 | 2018-06-19 15:03:46 -0700 | [diff] [blame] | 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 | > |
Heemin Seog | 9b078d3 | 2020-04-21 15:07:32 -0700 | [diff] [blame] | 75 | <com.android.systemui.car.navigationbar.CarNavigationButton |
Brad Stenning | 754f8c9 | 2018-06-19 15:03:46 -0700 | [diff] [blame] | 76 | android:id="@+id/qs" |
| 77 | android:layout_width="match_parent" |
| 78 | android:layout_height="match_parent" |
| 79 | android:background="@null" |
Alex Stetson | 2dd82d5 | 2020-05-05 14:46:31 -0700 | [diff] [blame] | 80 | systemui:intent="intent:#Intent;component=com.android.car.settings/.common.CarSettingActivities$QuickSettingActivity;launchFlags=0x24000000;end" |
Brad Stenning | 754f8c9 | 2018-06-19 15:03:46 -0700 | [diff] [blame] | 81 | /> |
| 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 Seog | 50b43b7 | 2019-03-17 23:54:23 -0700 | [diff] [blame] | 100 | android:paddingStart="@*android:dimen/car_padding_1" |
Brad Stenning | 754f8c9 | 2018-06-19 15:03:46 -0700 | [diff] [blame] | 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 | |
Heemin Seog | 9b078d3 | 2020-04-21 15:07:32 -0700 | [diff] [blame] | 122 | <com.android.systemui.car.navigationbar.CarNavigationButton |
Brad Stenning | 754f8c9 | 2018-06-19 15:03:46 -0700 | [diff] [blame] | 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 | |
Heemin Seog | 51a8633 | 2020-04-19 01:14:12 -0700 | [diff] [blame] | 131 | <com.android.systemui.car.hvac.AnimatedTemperatureView |
Brad Stenning | 754f8c9 | 2018-06-19 15:03:46 -0700 | [diff] [blame] | 132 | android:id="@+id/righttext" |
| 133 | android:layout_width="wrap_content" |
| 134 | android:layout_height="match_parent" |
| 135 | android:paddingStart="16dp" |
Heemin Seog | 50b43b7 | 2019-03-17 23:54:23 -0700 | [diff] [blame] | 136 | android:paddingEnd="@*android:dimen/car_padding_4" |
Brad Stenning | 754f8c9 | 2018-06-19 15:03:46 -0700 | [diff] [blame] | 137 | android:gravity="center_vertical|end" |
| 138 | android:minEms="4" |
Heemin Seog | 50b43b7 | 2019-03-17 23:54:23 -0700 | [diff] [blame] | 139 | android:textAppearance="@style/TextAppearance.CarStatus" |
davidln | b453cded | 2018-07-02 14:49:08 -0700 | [diff] [blame] | 140 | systemui:hvacAreaId="68" |
Brad Stenning | 754f8c9 | 2018-06-19 15:03:46 -0700 | [diff] [blame] | 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 | |
Heemin Seog | 9b078d3 | 2020-04-21 15:07:32 -0700 | [diff] [blame] | 152 | </com.android.systemui.car.navigationbar.CarNavigationBarView> |