1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  ~ Copyright 2018 The Android Open Source Project
4  ~
5  ~ Licensed under the Apache License, Version 2.0 (the "License");
6  ~ you may not use this file except in compliance with the License.
7  ~ You may obtain a copy of the License at
8  ~
9  ~      http://www.apache.org/licenses/LICENSE-2.0
10  ~
11  ~ Unless required by applicable law or agreed to in writing, software
12  ~ distributed under the License is distributed on an "AS IS" BASIS,
13  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  ~ See the License for the specific language governing permissions and
15  ~ limitations under the License.
16  -->
17
18<resources>
19    <attr name="icon" format="reference"/>
20    <attr name="selectedIcon" format="reference"/>
21    <attr name="intent" format="string"/>
22    <attr name="longIntent" format="string"/>
23    <attr name="selectedAlpha" format="float" />
24    <attr name="unselectedAlpha" format="float" />
25
26    <!-- Custom attributes to configure hvac values -->
27    <declare-styleable name="AnimatedTemperatureView">
28        <attr name="hvacAreaId" format="integer"/>
29        <attr name="hvacPropertyId" format="integer"/>
30        <attr name="hvacTempFormat" format="string"/>
31        <!-- how far away the animations should center around -->
32        <attr name="hvacPivotOffset" format="dimension"/>
33        <attr name="hvacMinValue" format="float"/>
34        <attr name="hvacMaxValue" format="float"/>
35        <attr name="hvacMinText" format="string|reference"/>
36        <attr name="hvacMaxText" format="string|reference"/>
37        <attr name="android:gravity"/>
38        <attr name="android:minEms"/>
39        <attr name="android:textAppearance"/>
40    </declare-styleable>
41
42    <!-- Allow for custom attribs to be added to a nav button -->
43    <declare-styleable name="CarNavigationButton">
44        <!-- intent to start when button is click -->
45        <attr name="intent" />
46        <!-- intent to start when a long press has happened -->
47        <attr name="longIntent" />
48        <!-- start the intent as a broad cast instead of an activity if true-->
49        <attr name="broadcast" format="boolean"/>
50        <!-- Alpha value to used when in selected state.  Defaults 1f  -->
51        <attr name="selectedAlpha" />
52        <!-- Alpha value to used when in un-selected state.  Defaults 0.7f  -->
53        <attr name="unselectedAlpha" />
54        <!-- icon to be rendered when in selected state -->
55        <attr name="selectedIcon" />
56        <!-- icon to be rendered (drawable) -->
57        <attr name="icon"/>
58        <!-- categories that will be added as extras to the fired intents -->
59        <attr name="categories" format="string"/>
60        <!-- package names that will be added as extras to the fired intents -->
61        <attr name="packages" format="string" />
62        <!-- componentName names that will be used for detecting selected state -->
63        <attr name="componentNames" format="string" />
64        <!-- whether to highlight the button when selected. Defaults false -->
65        <attr name="showMoreWhenSelected" format="boolean" />
66        <!-- whether to highlight the button when selected. Defaults false -->
67        <attr name="highlightWhenSelected" format="boolean" />
68        <!-- whether to show the icon of the app currently associated this button's role. Only
69             relevant for buttons associated to specific roles (e.g.: AssistantButton).
70             Defaults false -->
71        <attr name="useDefaultAppIconForRole" format="boolean"/>
72    </declare-styleable>
73
74    <!-- Custom attributes to configure hvac values -->
75    <declare-styleable name="TemperatureView">
76        <attr name="hvacAreaId" format="integer"/>
77        <attr name="hvacPropertyId" format="integer"/>
78        <attr name="hvacTempFormat" format="string"/>
79    </declare-styleable>
80
81    <declare-styleable name="carVolumeItems"/>
82    <declare-styleable name="carVolumeItems_item">
83        <!-- Align with AudioAttributes.USAGE_* -->
84        <attr name="usage">
85            <enum name="unknown" value="0"/>
86            <enum name="media" value="1"/>
87            <enum name="voice_communication" value="2"/>
88            <enum name="voice_communication_signalling" value="3"/>
89            <enum name="alarm" value="4"/>
90            <enum name="notification" value="5"/>
91            <enum name="notification_ringtone" value="6"/>
92            <enum name="notification_communication_request" value="7"/>
93            <enum name="notification_communication_instant" value="8"/>
94            <enum name="notification_communication_delayed" value="9"/>
95            <enum name="notification_event" value="10"/>
96            <enum name="assistance_accessibility" value="11"/>
97            <enum name="assistance_navigation_guidance" value="12"/>
98            <enum name="assistance_sonification" value="13"/>
99            <enum name="game" value="14"/>
100            <!-- hidden, do not use -->
101            <!-- enum name="virtual_source" value="15"/ -->
102            <enum name="assistant" value="16"/>
103            <enum name="call_assistant" value="17"/>
104            <enum name="emergency" value="1000"/>
105            <enum name="safety" value="1001"/>
106            <enum name="vehicle_status" value="1002"/>
107            <enum name="announcement" value="1003"/>
108        </attr>
109
110        <!-- Icon resource ids to render on UI -->
111        <attr name="icon" />
112    </declare-styleable>
113</resources>
114