| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| ~ Copyright (C) 2021 The Android Open Source Project |
| ~ |
| ~ Licensed under the Apache License, Version 2.0 (the "License"); |
| ~ you may not use this file except in compliance with the License. |
| ~ You may obtain a copy of the License at |
| ~ |
| ~ http://www.apache.org/licenses/LICENSE-2.0 |
| ~ |
| ~ Unless required by applicable law or agreed to in writing, software |
| ~ distributed under the License is distributed on an "AS IS" BASIS, |
| ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| ~ See the License for the specific language governing permissions and |
| ~ limitations under the License. |
| --> |
| |
| <com.android.car.ui.FocusArea |
| xmlns:android="http://schemas.android.com/apk/res/android" |
| xmlns:app="http://schemas.android.com/apk/res-auto" |
| xmlns:systemui="http://schemas.android.com/apk/res-auto" |
| android:id="@+id/hvac_panel_container" |
| android:layout_width="match_parent" |
| android:layout_height="@dimen/hvac_panel_full_expanded_height" |
| android:layout_gravity="bottom"> |
| <com.android.systemui.car.hvac.HvacPanelView |
| android:id="@+id/hvac_panel" |
| android:orientation="vertical" |
| android:layout_width="match_parent" |
| android:layout_height="match_parent" |
| android:background="@drawable/hvac_panel_bg"> |
| |
| <ImageButton |
| android:id="@+id/hvac_panel_close_button" |
| android:layout_width="@dimen/hvac_panel_exit_button_dimen" |
| android:layout_height="@dimen/hvac_panel_exit_button_dimen" |
| android:layout_marginLeft="@dimen/hvac_panel_exit_button_margin" |
| android:layout_marginTop="@dimen/hvac_panel_exit_button_margin" |
| android:background="@drawable/hvac_default_background" |
| android:scaleType="center" |
| android:src="@drawable/ic_hvac_close" |
| app:layout_constraintTop_toTopOf="parent" |
| app:layout_constraintLeft_toLeftOf="parent"/> |
| <FrameLayout |
| android:id="@+id/hvac_header_title" |
| android:layout_width="wrap_content" |
| android:layout_height="@dimen/wrap_content" |
| android:layout_marginTop="@dimen/hvac_panel_title_margin" |
| android:layout_marginLeft="@dimen/hvac_panel_button_dimen" |
| android:layout_marginRight="@dimen/hvac_panel_button_dimen" |
| app:layout_constraintTop_toTopOf="parent" |
| app:layout_constraintLeft_toLeftOf="parent" |
| app:layout_constraintRight_toRightOf="parent"> |
| <TextView |
| android:layout_width="match_parent" |
| android:layout_height="match_parent" |
| android:textAppearance="?android:attr/textAppearanceLarge" |
| android:text="@string/hvac_panel_header" |
| android:gravity="center"/> |
| </FrameLayout> |
| |
| <androidx.constraintlayout.widget.Guideline |
| android:id="@+id/top_guideline" |
| android:layout_width="match_parent" |
| android:layout_height="1dp" |
| android:orientation="horizontal" |
| app:layout_constraintGuide_begin="@dimen/hvac_panel_buttons_guideline"/> |
| |
| <!-- ************************ --> |
| <!-- First column of buttons. --> |
| <!-- ************************ --> |
| |
| <com.android.systemui.car.hvac.toggle.HvacBooleanToggleButton |
| android:id="@+id/cooling_on_off" |
| android:layout_width="@dimen/hvac_panel_button_dimen" |
| android:layout_height="@dimen/hvac_panel_button_dimen" |
| android:layout_marginBottom="@dimen/hvac_panel_button_internal_margin" |
| android:layout_marginLeft="@dimen/hvac_panel_button_external_margin" |
| android:layout_marginRight="@dimen/hvac_panel_button_internal_margin" |
| android:background="@drawable/hvac_default_background" |
| app:layout_constraintBottom_toTopOf="@+id/steering_wheel_heat_on_off" |
| app:layout_constraintLeft_toLeftOf="parent" |
| app:layout_constraintTop_toBottomOf="@+id/top_guideline" |
| systemui:hvacAreaId="117" |
| systemui:hvacPropertyId="354419973" |
| systemui:hvacToggleOffButtonDrawable="@drawable/ic_ac_off" |
| systemui:hvacToggleOnButtonDrawable="@drawable/ic_ac_on" |
| systemui:hvacTurnOffIfAutoOn="true"/> |
| |
| <com.android.systemui.car.hvac.toggle.HvacIntegerToggleButton |
| android:id="@+id/steering_wheel_heat_on_off" |
| android:layout_width="@dimen/hvac_panel_button_dimen" |
| android:layout_height="@dimen/hvac_panel_button_dimen" |
| android:layout_marginBottom="@dimen/hvac_panel_button_internal_margin" |
| android:layout_marginLeft="@dimen/hvac_panel_button_external_margin" |
| android:layout_marginRight="@dimen/hvac_panel_button_internal_margin" |
| android:layout_marginTop="@dimen/hvac_panel_button_internal_margin" |
| android:background="@drawable/hvac_heat_background" |
| app:layout_constraintBottom_toTopOf="@+id/hvac_on_off" |
| app:layout_constraintLeft_toLeftOf="parent" |
| app:layout_constraintTop_toBottomOf="@+id/cooling_on_off" |
| systemui:hvacAreaId="117" |
| systemui:hvacPropertyId="289408269" |
| systemui:hvacToggleOffButtonDrawable="@drawable/ic_heated_steering_off" |
| systemui:hvacToggleOnButtonDrawable="@drawable/ic_heated_steering_on" |
| systemui:hvacTurnOffIfAutoOn="true" |
| systemui:onValue="1" |
| systemui:offValue="0"/> |
| |
| <com.android.systemui.car.hvac.toggle.HvacBooleanToggleButton |
| android:id="@+id/hvac_on_off" |
| android:layout_width="@dimen/hvac_panel_button_dimen" |
| android:layout_height="@dimen/hvac_panel_button_dimen" |
| android:layout_marginBottom="@dimen/hvac_panel_button_external_margin" |
| android:layout_marginLeft="@dimen/hvac_panel_button_external_margin" |
| android:layout_marginRight="@dimen/hvac_panel_button_internal_margin" |
| android:layout_marginTop="@dimen/hvac_panel_button_internal_margin" |
| android:background="@drawable/hvac_default_background" |
| app:layout_constraintBottom_toBottomOf="parent" |
| app:layout_constraintLeft_toLeftOf="parent" |
| app:layout_constraintTop_toBottomOf="@+id/steering_wheel_heat_on_off" |
| systemui:hvacAreaId="117" |
| systemui:hvacPropertyId="354419984" |
| systemui:hvacToggleOffButtonDrawable="@drawable/ic_power_off" |
| systemui:hvacToggleOnButtonDrawable="@drawable/ic_power_on" |
| systemui:hvacTurnOffIfPowerOff="false"/> |
| |
| <!-- ************************* --> |
| <!-- Second column of buttons. --> |
| <!-- ************************* --> |
| |
| <com.android.systemui.car.hvac.SeatTemperatureLevelButton |
| android:id="@+id/seat_cooler_driver_on_off" |
| android:layout_width="@dimen/hvac_panel_button_dimen" |
| android:layout_height="@dimen/hvac_panel_tall_button_height" |
| android:layout_marginBottom="@dimen/hvac_panel_button_internal_margin" |
| android:layout_marginLeft="@dimen/hvac_panel_button_internal_margin" |
| android:layout_marginRight="@dimen/hvac_panel_button_internal_margin" |
| android:background="@drawable/hvac_cool_background" |
| app:layout_constraintBottom_toTopOf="@+id/seat_heater_driver_on_off" |
| app:layout_constraintLeft_toRightOf="@+id/cooling_on_off" |
| app:layout_constraintRight_toLeftOf="@+id/airflow_group" |
| app:layout_constraintTop_toBottomOf="@+id/top_guideline" |
| systemui:hvacAreaId="1" |
| systemui:seatTemperatureType="cooling" |
| systemui:seatTemperatureIconDrawableList="@array/hvac_driver_seat_cool_icons"/> |
| |
| <com.android.systemui.car.hvac.SeatTemperatureLevelButton |
| android:id="@+id/seat_heater_driver_on_off" |
| android:layout_width="@dimen/hvac_panel_button_dimen" |
| android:layout_height="@dimen/hvac_panel_tall_button_height" |
| android:layout_marginBottom="@dimen/hvac_panel_button_external_margin" |
| android:layout_marginLeft="@dimen/hvac_panel_button_internal_margin" |
| android:layout_marginRight="@dimen/hvac_panel_button_internal_margin" |
| android:layout_marginTop="@dimen/hvac_panel_button_internal_margin" |
| android:background="@drawable/hvac_heat_background" |
| app:layout_constraintBottom_toBottomOf="parent" |
| app:layout_constraintLeft_toRightOf="@+id/hvac_on_off" |
| app:layout_constraintRight_toLeftOf="@+id/fan_speed_control" |
| app:layout_constraintTop_toBottomOf="@+id/seat_cooler_driver_on_off" |
| systemui:hvacAreaId="1" |
| systemui:seatTemperatureType="heating" |
| systemui:seatTemperatureIconDrawableList="@array/hvac_driver_seat_heat_icons"/> |
| |
| <!-- ************************ --> |
| <!-- Third column of buttons. --> |
| <!-- ************************ --> |
| |
| <LinearLayout |
| android:id="@+id/airflow_group" |
| android:layout_width="0dp" |
| android:layout_height="0dp" |
| android:layout_marginBottom="@dimen/hvac_panel_button_internal_margin" |
| android:layout_marginLeft="@dimen/hvac_panel_button_internal_margin" |
| android:layout_marginRight="@dimen/hvac_panel_button_internal_margin" |
| android:orientation="vertical" |
| app:layout_constraintBottom_toTopOf="@+id/fan_speed_control" |
| app:layout_constraintLeft_toRightOf="@+id/seat_cooler_driver_on_off" |
| app:layout_constraintRight_toLeftOf="@+id/seat_cooler_passenger_on_off" |
| app:layout_constraintTop_toBottomOf="@+id/top_guideline"> |
| <include layout="@layout/fan_direction"/> |
| </LinearLayout> |
| |
| <com.android.systemui.car.hvac.custom.FanSpeedSeekBar |
| android:id="@+id/fan_speed_control" |
| android:layout_width="0dp" |
| android:layout_height="@dimen/hvac_panel_button_dimen" |
| android:layout_marginBottom="@dimen/hvac_panel_button_external_margin" |
| android:layout_marginLeft="@dimen/hvac_panel_button_internal_margin" |
| android:layout_marginRight="@dimen/hvac_panel_button_internal_margin" |
| android:layout_marginTop="@dimen/hvac_panel_button_internal_margin" |
| android:progressDrawable="@drawable/fan_speed_seek_bar" |
| android:thumb="@drawable/fan_speed_seek_bar_thumb" |
| android:maxHeight="@dimen/hvac_panel_button_dimen" |
| android:minHeight="@dimen/hvac_panel_button_dimen" |
| android:background="@drawable/fan_speed_seek_bar_background" |
| android:splitTrack="false" |
| app:layout_constraintBottom_toBottomOf="parent" |
| app:layout_constraintLeft_toRightOf="@+id/seat_heater_driver_on_off" |
| app:layout_constraintRight_toLeftOf="@+id/seat_heater_passenger_on_off" |
| app:layout_constraintTop_toBottomOf="@+id/airflow_windshield"/> |
| |
| <!-- ************************* --> |
| <!-- Fourth column of buttons. --> |
| <!-- ************************* --> |
| |
| <com.android.systemui.car.hvac.SeatTemperatureLevelButton |
| android:id="@+id/seat_cooler_passenger_on_off" |
| android:layout_width="@dimen/hvac_panel_button_dimen" |
| android:layout_height="@dimen/hvac_panel_tall_button_height" |
| android:layout_marginBottom="@dimen/hvac_panel_button_internal_margin" |
| android:layout_marginLeft="@dimen/hvac_panel_button_internal_margin" |
| android:layout_marginRight="@dimen/hvac_panel_button_internal_margin" |
| android:background="@drawable/hvac_cool_background" |
| app:layout_constraintBottom_toTopOf="@+id/seat_heater_passenger_on_off" |
| app:layout_constraintRight_toLeftOf="@+id/recycle_air_on_off" |
| app:layout_constraintTop_toBottomOf="@+id/top_guideline" |
| systemui:hvacAreaId="4" |
| systemui:seatTemperatureType="cooling" |
| systemui:seatTemperatureIconDrawableList="@array/hvac_passenger_seat_cool_icons"/> |
| |
| <com.android.systemui.car.hvac.SeatTemperatureLevelButton |
| android:id="@+id/seat_heater_passenger_on_off" |
| android:layout_width="@dimen/hvac_panel_button_dimen" |
| android:layout_height="@dimen/hvac_panel_tall_button_height" |
| android:layout_marginBottom="@dimen/hvac_panel_button_external_margin" |
| android:layout_marginLeft="@dimen/hvac_panel_button_internal_margin" |
| android:layout_marginRight="@dimen/hvac_panel_button_internal_margin" |
| android:layout_marginTop="@dimen/hvac_panel_button_internal_margin" |
| android:background="@drawable/hvac_heat_background" |
| app:layout_constraintBottom_toBottomOf="parent" |
| app:layout_constraintRight_toLeftOf="@+id/hvac_driver_passenger_sync" |
| app:layout_constraintTop_toBottomOf="@+id/seat_cooler_passenger_on_off" |
| systemui:hvacAreaId="4" |
| systemui:seatTemperatureType="heating" |
| systemui:seatTemperatureIconDrawableList="@array/hvac_passenger_seat_heat_icons"/> |
| |
| <!-- ************************ --> |
| <!-- Fifth column of buttons. --> |
| <!-- ************************ --> |
| |
| <com.android.systemui.car.hvac.toggle.HvacBooleanToggleButton |
| android:id="@+id/recycle_air_on_off" |
| android:layout_width="@dimen/hvac_panel_button_dimen" |
| android:layout_height="@dimen/hvac_panel_button_dimen" |
| android:layout_marginBottom="@dimen/hvac_panel_button_internal_margin" |
| android:layout_marginLeft="@dimen/hvac_panel_button_internal_margin" |
| android:layout_marginRight="@dimen/hvac_panel_button_external_margin" |
| android:background="@drawable/hvac_default_background" |
| app:layout_constraintBottom_toTopOf="@+id/hvac_driver_passenger_sync" |
| app:layout_constraintRight_toRightOf="parent" |
| app:layout_constraintTop_toBottomOf="@+id/top_guideline" |
| systemui:hvacAreaId="117" |
| systemui:hvacPropertyId="354419986" |
| systemui:hvacTurnOffIfAutoOn="true" |
| systemui:hvacToggleOnButtonDrawable="@drawable/ic_recirculate_on" |
| systemui:hvacToggleOffButtonDrawable="@drawable/ic_recirculate_off"/> |
| |
| <com.android.systemui.car.hvac.toggle.HvacBooleanToggleButton |
| android:id="@+id/hvac_driver_passenger_sync" |
| android:layout_width="@dimen/hvac_panel_button_dimen" |
| android:layout_height="@dimen/hvac_panel_button_dimen" |
| android:layout_marginBottom="@dimen/hvac_panel_button_internal_margin" |
| android:layout_marginLeft="@dimen/hvac_panel_button_internal_margin" |
| android:layout_marginRight="@dimen/hvac_panel_button_external_margin" |
| android:layout_marginTop="@dimen/hvac_panel_button_internal_margin" |
| android:background="@drawable/hvac_default_background" |
| app:layout_constraintBottom_toTopOf="@+id/auto_temperature_on_off" |
| app:layout_constraintRight_toRightOf="parent" |
| app:layout_constraintTop_toBottomOf="@+id/recycle_air_on_off" |
| systemui:hvacAreaId="117" |
| systemui:hvacPropertyId="354419977" |
| systemui:hvacToggleOffButtonDrawable="@drawable/ic_sync_off" |
| systemui:hvacToggleOnButtonDrawable="@drawable/ic_sync_on" |
| systemui:hvacTurnOffIfAutoOn="true"/> |
| |
| <com.android.systemui.car.hvac.toggle.HvacBooleanToggleButton |
| android:id="@+id/auto_temperature_on_off" |
| android:layout_width="@dimen/hvac_panel_button_dimen" |
| android:layout_height="@dimen/hvac_panel_button_dimen" |
| android:layout_marginBottom="@dimen/hvac_panel_button_external_margin" |
| android:layout_marginLeft="@dimen/hvac_panel_button_internal_margin" |
| android:layout_marginRight="@dimen/hvac_panel_button_external_margin" |
| android:layout_marginTop="@dimen/hvac_panel_button_internal_margin" |
| android:background="@drawable/hvac_default_background" |
| app:layout_constraintBottom_toBottomOf="parent" |
| app:layout_constraintRight_toRightOf="parent" |
| app:layout_constraintTop_toBottomOf="@+id/hvac_driver_passenger_sync" |
| systemui:hvacAreaId="117" |
| systemui:hvacPropertyId="354419978" |
| systemui:hvacToggleOnButtonDrawable="@drawable/ic_auto_on" |
| systemui:hvacToggleOffButtonDrawable="@drawable/ic_auto_off"/> |
| |
| <include |
| layout="@layout/hvac_panel_handle_bar" |
| app:layout_constraintTop_toTopOf="parent"/> |
| </com.android.systemui.car.hvac.HvacPanelView> |
| </com.android.car.ui.FocusArea> |