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<merge xmlns:android="http://schemas.android.com/apk/res/android" 17 android:layout_width="match_parent" 18 android:layout_height="match_parent"> 19 <LinearLayout 20 android:id="@+id/segment_container" 21 android:layout_width="@dimen/hvac_fan_speed_bar_width" 22 android:layout_height="@dimen/hvac_fan_speed_bar_height" 23 android:layout_centerInParent="true" 24 android:orientation="horizontal" 25 android:background="@drawable/fan_speed_inset" 26 android:layout_marginStart="@dimen/hvac_fan_speed_bar_margin" 27 android:layout_marginEnd="@dimen/hvac_fan_speed_bar_margin"> 28 <TextView 29 android:id="@+id/fan_off" 30 android:text="@string/fan_speed_off" 31 android:layout_marginStart="@dimen/hvac_fan_speed_bar_end_button_margin" 32 android:layout_marginEnd="@dimen/hvac_fan_speed_bar_segment_margin" 33 style="@style/HvacFanSpeedText"/> 34 <com.android.systemui.car.hvac.referenceui.FanSpeedBarSegment 35 android:id="@+id/fan_speed_1" 36 style="@style/HvacFanSpeedBar"/> 37 <com.android.systemui.car.hvac.referenceui.FanSpeedBarSegment 38 android:id="@+id/fan_speed_2" 39 style="@style/HvacFanSpeedBar"/> 40 <com.android.systemui.car.hvac.referenceui.FanSpeedBarSegment 41 android:id="@+id/fan_speed_3" 42 style="@style/HvacFanSpeedBar"/> 43 <com.android.systemui.car.hvac.referenceui.FanSpeedBarSegment 44 android:id="@+id/fan_speed_4" 45 style="@style/HvacFanSpeedBar"/> 46 <TextView 47 android:id="@+id/fan_max" 48 android:text="@string/fan_speed_max" 49 android:layout_marginEnd="@dimen/hvac_fan_speed_bar_end_button_margin" 50 android:layout_marginStart="@dimen/hvac_fan_speed_bar_segment_margin" 51 style="@style/HvacFanSpeedText"/> 52 </LinearLayout> 53</merge>