• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<!--
2  ~ Copyright (C) 2021 The Android Open Source Project
3  ~
4  ~ Licensed under the Apache License, Version 2.0 (the "License");
5  ~ you may not use this file except in compliance with the License.
6  ~ You may obtain a copy of the License at
7  ~
8  ~      http://www.apache.org/licenses/LICENSE-2.0
9  ~
10  ~ Unless required by applicable law or agreed to in writing, software
11  ~ distributed under the License is distributed on an "AS IS" BASIS,
12  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  ~ See the License for the specific language governing permissions and
14  ~ limitations under the License.
15  -->
16
17<LinearLayout
18    xmlns:android="http://schemas.android.com/apk/res/android"
19    xmlns:systemui="http://schemas.android.com/apk/res-auto"
20    android:layout_width="match_parent"
21    android:layout_height="wrap_content"
22    android:layout_weight="1"
23    android:paddingStart="20dp"
24    android:paddingEnd="20dp"
25    android:gravity="center">
26
27    <com.android.systemui.car.hvac.toggle.HvacBooleanToggleButton
28        android:id="@+id/bool_toggle_button_default"
29        android:background="@drawable/hvac_panel_button_bg"
30        style="@style/HvacButton"
31        systemui:hvacAreaId="1"
32        systemui:hvacPropertyId="354419973"
33        systemui:hvacToggleOnButtonDrawable="@drawable/ic_front_defroster_on"
34        systemui:hvacToggleOffButtonDrawable="@drawable/ic_front_defroster_off"/>
35
36    <com.android.systemui.car.hvac.toggle.HvacBooleanToggleButton
37        android:id="@+id/bool_toggle_button_do_not_turn_off_when_power_off"
38        android:background="@drawable/hvac_panel_button_bg"
39        style="@style/HvacButton"
40        systemui:hvacAreaId="1"
41        systemui:hvacPropertyId="354419973"
42        systemui:hvacToggleOnButtonDrawable="@drawable/ic_front_defroster_on"
43        systemui:hvacToggleOffButtonDrawable="@drawable/ic_front_defroster_off"/>
44
45    <com.android.systemui.car.hvac.toggle.HvacBooleanToggleButton
46        android:id="@+id/bool_toggle_button_turn_off_when_auto_on"
47        android:background="@drawable/hvac_panel_button_bg"
48        style="@style/HvacButton"
49        systemui:hvacAreaId="1"
50        systemui:hvacPropertyId="354419973"
51        systemui:hvacDisableViewIfAutoOn="true"
52        systemui:hvacToggleOnButtonDrawable="@drawable/ic_front_defroster_on"
53        systemui:hvacToggleOffButtonDrawable="@drawable/ic_front_defroster_off"/>
54
55    <com.android.systemui.car.hvac.toggle.HvacIntegerToggleButton
56        android:id="@+id/int_toggle_button_default"
57        android:background="@drawable/hvac_panel_button_bg"
58        style="@style/HvacButton"
59        systemui:hvacAreaId="1"
60        systemui:hvacPropertyId="356517120"
61        systemui:hvacToggleOnButtonDrawable="@drawable/ic_front_defroster_on"
62        systemui:hvacToggleOffButtonDrawable="@drawable/ic_front_defroster_off"
63        systemui:onValue="1"
64        systemui:offValue="0"/>
65
66    <com.android.systemui.car.hvac.toggle.HvacIntegerToggleButton
67        android:id="@+id/int_toggle_button_do_not_turn_off_when_power_off"
68        android:background="@drawable/hvac_panel_button_bg"
69        style="@style/HvacButton"
70        systemui:hvacAreaId="1"
71        systemui:hvacPropertyId="356517120"
72        systemui:hvacToggleOnButtonDrawable="@drawable/ic_front_defroster_on"
73        systemui:hvacToggleOffButtonDrawable="@drawable/ic_front_defroster_off"
74        systemui:onValue="1"
75        systemui:offValue="0"/>
76
77    <com.android.systemui.car.hvac.toggle.HvacIntegerToggleButton
78        android:id="@+id/int_toggle_button_turn_off_when_auto_on"
79        android:background="@drawable/hvac_panel_button_bg"
80        style="@style/HvacButton"
81        systemui:hvacAreaId="1"
82        systemui:hvacPropertyId="356517120"
83        systemui:hvacDisableViewIfAutoOn="true"
84        systemui:hvacToggleOnButtonDrawable="@drawable/ic_front_defroster_on"
85        systemui:hvacToggleOffButtonDrawable="@drawable/ic_front_defroster_off"
86        systemui:onValue="1"
87        systemui:offValue="0"/>
88
89    <com.android.systemui.car.hvac.toggle.HvacIntegerToggleButton
90        android:id="@+id/int_toggle_button_keep_on_prevent_off"
91        android:background="@drawable/hvac_panel_button_bg"
92        style="@style/HvacButton"
93        systemui:hvacAreaId="1"
94        systemui:hvacPropertyId="356517120"
95        systemui:hvacToggleOnButtonDrawable="@drawable/ic_front_defroster_on"
96        systemui:hvacToggleOffButtonDrawable="@drawable/ic_front_defroster_off"
97        systemui:onValue="1"
98        systemui:offValue="0"
99        systemui:preventToggleOff="true"/>
100
101</LinearLayout>