blob: 1252ffd0cd989a417a98b72acea4f11de713965d [file] [log] [blame]
<?xml version="1.0" encoding="utf-8"?>
<!--
* Copyright (c) 2016, 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:layout_centerInParent="true"
android:id="@+id/segment_container"
android:orientation="horizontal"
android:background="@drawable/fan_speed_inset"
android:layout_width="@dimen/hvac_fan_speed_bar_width"
android:layout_height="@dimen/hvac_fan_speed_bar_height"
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.car.hvac.ui.FanSpeedBarSegment
android:id="@+id/fan_speed_1"
style="@style/HvacFanSpeedBar"/>
<com.android.car.hvac.ui.FanSpeedBarSegment
android:id="@+id/fan_speed_2"
style="@style/HvacFanSpeedBar"/>
<com.android.car.hvac.ui.FanSpeedBarSegment
android:id="@+id/fan_speed_3"
style="@style/HvacFanSpeedBar"/>
<com.android.car.hvac.ui.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>