• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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="CarSystemBarButton">
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        <!-- whether to clear the back stack when this button is pressed. Only relevant for buttons
73             that have declared an intent that isn't used as a broadcast
74             (i.e. CarSystemBarButton_intent is defined, CarSystemBarButton_broadcast is false).
75             Defaults false. -->
76        <attr name="clearBackStack" format="boolean"/>
77    </declare-styleable>
78
79    <!-- Custom attributes to configure hvac values -->
80    <declare-styleable name="TemperatureView">
81        <attr name="hvacAreaId" format="integer"/>
82        <attr name="hvacPropertyId" format="integer"/>
83        <attr name="hvacTempFormat" format="string"/>
84    </declare-styleable>
85
86    <declare-styleable name="carVolumeItems"/>
87    <declare-styleable name="carVolumeItems_item">
88        <!-- Align with AudioAttributes.USAGE_* -->
89        <attr name="usage">
90            <enum name="unknown" value="0"/>
91            <enum name="media" value="1"/>
92            <enum name="voice_communication" value="2"/>
93            <enum name="voice_communication_signalling" value="3"/>
94            <enum name="alarm" value="4"/>
95            <enum name="notification" value="5"/>
96            <enum name="notification_ringtone" value="6"/>
97            <enum name="notification_communication_request" value="7"/>
98            <enum name="notification_communication_instant" value="8"/>
99            <enum name="notification_communication_delayed" value="9"/>
100            <enum name="notification_event" value="10"/>
101            <enum name="assistance_accessibility" value="11"/>
102            <enum name="assistance_navigation_guidance" value="12"/>
103            <enum name="assistance_sonification" value="13"/>
104            <enum name="game" value="14"/>
105            <!-- hidden, do not use -->
106            <!-- enum name="virtual_source" value="15"/ -->
107            <enum name="assistant" value="16"/>
108            <enum name="call_assistant" value="17"/>
109            <enum name="emergency" value="1000"/>
110            <enum name="safety" value="1001"/>
111            <enum name="vehicle_status" value="1002"/>
112            <enum name="announcement" value="1003"/>
113        </attr>
114
115        <!-- Icon resource ids to render on UI -->
116        <attr name="icon" />
117    </declare-styleable>
118</resources>
119