1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2019 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<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" 18 xmlns:settings="http://schemas.android.com/apk/res-auto" 19 android:title="@string/units_settings" 20 android:key="@string/psk_units"> 21 <ListPreference 22 android:key="@string/pk_units_speed" 23 android:title="@string/units_speed_title" 24 android:dialogTitle="@string/units_speed_title" 25 settings:controller="com.android.car.settings.units.UnitsSpeedPreferenceController"/> 26 27 <ListPreference 28 android:key="@string/pk_units_distance" 29 android:title="@string/units_distance_title" 30 android:dialogTitle="@string/units_distance_title" 31 settings:controller="com.android.car.settings.units.UnitsDistancePreferenceController"/> 32 33 <ListPreference 34 android:key="@string/pk_units_fuel_consumption" 35 android:title="@string/units_fuel_consumption_title" 36 android:dialogTitle="@string/units_fuel_consumption_title" 37 settings:controller="com.android.car.settings.units.UnitsFuelConsumptionPreferenceController"/> 38 39 <ListPreference 40 android:key="@string/pk_units_energy_consumption" 41 android:title="@string/units_energy_consumption_title" 42 android:dialogTitle="@string/units_energy_consumption_title" 43 settings:controller="com.android.car.settings.units.UnitsEnergyConsumptionPreferenceController"/> 44 45 <ListPreference 46 android:key="@string/pk_units_temperature" 47 android:title="@string/units_temperature_title" 48 android:dialogTitle="@string/units_temperature_title" 49 settings:controller="com.android.car.settings.units.UnitsTemperaturePreferenceController"/> 50 51 <ListPreference 52 android:key="@string/pk_units_volume" 53 android:title="@string/units_volume_title" 54 android:dialogTitle="@string/units_volume_title" 55 settings:controller="com.android.car.settings.units.UnitsVolumePreferenceController"/> 56 57 <ListPreference 58 android:key="@string/pk_units_pressure" 59 android:title="@string/units_pressure_title" 60 android:dialogTitle="@string/units_pressure_title" 61 settings:controller="com.android.car.settings.units.UnitsPressurePreferenceController"/> 62 63</PreferenceScreen> 64