blob: 5aad98e45eb01a80aab4bf133e15f74c271ae84b [file] [log] [blame]
<!--
~ 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.
-->
<merge xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:id="@+id/segment_container"
android:layout_width="@dimen/hvac_fan_speed_bar_width"
android:layout_height="@dimen/hvac_fan_speed_bar_height"
android:layout_centerInParent="true"
android:orientation="horizontal"
android:background="@drawable/fan_speed_inset"
android:layout_marginStart="@dimen/hvac_fan_speed_bar_margin"
android:layout_marginEnd="@dimen/hvac_fan_speed_bar_margin">
<TextView
android:id="@+id/fan_off"
android:text="@string/fan_speed_off"
android:layout_marginStart="@dimen/hvac_fan_speed_bar_end_button_margin"
android:layout_marginEnd="@dimen/hvac_fan_speed_bar_segment_margin"
style="@style/HvacFanSpeedText"/>
<com.android.systemui.car.hvac.referenceui.FanSpeedBarSegment
android:id="@+id/fan_speed_1"
style="@style/HvacFanSpeedBar"/>
<com.android.systemui.car.hvac.referenceui.FanSpeedBarSegment
android:id="@+id/fan_speed_2"
style="@style/HvacFanSpeedBar"/>
<com.android.systemui.car.hvac.referenceui.FanSpeedBarSegment
android:id="@+id/fan_speed_3"
style="@style/HvacFanSpeedBar"/>
<com.android.systemui.car.hvac.referenceui.FanSpeedBarSegment
android:id="@+id/fan_speed_4"
style="@style/HvacFanSpeedBar"/>
<TextView
android:id="@+id/fan_max"
android:text="@string/fan_speed_max"
android:layout_marginEnd="@dimen/hvac_fan_speed_bar_end_button_margin"
android:layout_marginStart="@dimen/hvac_fan_speed_bar_segment_margin"
style="@style/HvacFanSpeedText"/>
</LinearLayout>
</merge>