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="mute_icon" format="reference"/> 21 <attr name="selectedIcon" format="reference"/> 22 <attr name="intent" format="string"/> 23 <attr name="longIntent" format="string"/> 24 <attr name="selectedAlpha" format="float" /> 25 <attr name="unselectedAlpha" format="float" /> 26 27 <!-- Custom attributes to configure hvac values --> 28 <declare-styleable name="AnimatedTemperatureView"> 29 <attr name="hvacAreaId" format="integer"/> 30 <attr name="hvacPropertyId" format="integer"/> 31 <attr name="hvacTempFormat" format="string"/> 32 <!-- how far away the animations should center around --> 33 <attr name="hvacPivotOffset" format="dimension"/> 34 <attr name="hvacMinValue" format="float"/> 35 <attr name="hvacMaxValue" format="float"/> 36 <attr name="hvacMinText" format="string|reference"/> 37 <attr name="hvacMaxText" format="string|reference"/> 38 <attr name="android:gravity"/> 39 <attr name="android:minEms"/> 40 <attr name="android:textAppearance"/> 41 </declare-styleable> 42 43 <declare-styleable name="SeatTemperatureLevelButton"> 44 <attr name="seatTemperatureType"> 45 <enum name="heating" value="1"/> 46 <enum name="cooling" value="-1"/> 47 </attr> 48 <!-- List of drawables that will be shown when the seat heat level button is clicked. 49 This list should have exactly R.integer.hvac_seat_heat_level_count items. 50 The first item should have the "off" drawable. --> 51 <attr name="seatTemperatureIconDrawableList" format="reference"/> 52 </declare-styleable> 53 54 <!-- Allow for custom attribs to be added to a nav button --> 55 <declare-styleable name="CarSystemBarButton"> 56 <!-- Intent to start when button is clicked --> 57 <attr name="intent" /> 58 <!-- Intent to start when button is clicked in the selected state. 59 If not specified the "intent" attribute will be used. --> 60 <attr name="selectedIntent" format="string"/> 61 <!-- Intent to start when button is clicked in the unselected state. 62 If not specified the "intent" attribute will be used. --> 63 <attr name="unselectedIntent" format="string"/> 64 <!-- intent to start when a long press has happened --> 65 <attr name="longIntent" /> 66 <!-- Event to fire when button is clicked --> 67 <attr name="event" format="string" /> 68 <!-- Event to fire when button is clicked in the selected state. 69 If not specified the "event" attribute will be used. --> 70 <attr name="selectedEvent" format="string"/> 71 <!-- Event to fire when button is clicked in the unselected state. 72 If not specified the "event" attribute will be used. --> 73 <attr name="unselectedEvent" format="string"/> 74 <!-- start the intent as a broad cast instead of an activity if true--> 75 <attr name="broadcast" format="boolean"/> 76 <!-- Alpha value to used when in selected state. Defaults 1f --> 77 <attr name="selectedAlpha" /> 78 <!-- Alpha value to used when in un-selected state. Defaults 0.7f --> 79 <attr name="unselectedAlpha" /> 80 <!-- icon to be rendered when in selected state --> 81 <attr name="selectedIcon" /> 82 <!-- icon to be rendered (drawable) --> 83 <attr name="icon"/> 84 <!-- categories that will be added as extras to the fired intents --> 85 <attr name="categories" format="string"/> 86 <!-- package names that will be added as extras to the fired intents --> 87 <attr name="packages" format="string" /> 88 <!-- componentName names that will be used for detecting selected state --> 89 <attr name="componentNames" format="string" /> 90 <!-- Panel names that will be used for detecting selected state --> 91 <attr name="panelNames" format="string" /> 92 <!-- whether to highlight the button when selected. Defaults false --> 93 <attr name="showMoreWhenSelected" format="boolean" /> 94 <!-- whether to highlight the button when selected. Defaults false --> 95 <attr name="highlightWhenSelected" format="boolean" /> 96 <!-- whether to show the icon of the app currently associated this button's role. Only 97 relevant for buttons associated to specific roles (e.g.: AssistantButton). 98 Defaults false --> 99 <attr name="useDefaultAppIconForRole" format="boolean"/> 100 <!-- whether to clear the back stack when this button is pressed. Only relevant for buttons 101 that have declared an intent that isn't used as a broadcast 102 (i.e. CarSystemBarButton_intent is defined, CarSystemBarButton_broadcast is false). 103 Defaults false. --> 104 <attr name="clearBackStack" format="boolean"/> 105 <!-- whether to toggle selected state when button is clicked. Defaults false --> 106 <attr name="toggleSelected" format="boolean" /> 107 </declare-styleable> 108 109 <!-- Custom attribute for the CarSystemBarElement interface - implementing classes must opt in 110 to consuming these attributes within their constructor and applying appropriately. --> 111 <declare-styleable name="CarSystemBarElement"> 112 <!-- Class name of the CarSystemBarElementController that should be attached to this view --> 113 <attr name="controller" format="string"/> 114 <!-- Attribute for specifying the system bar disable flag of a supporting element view. 115 This corresponds to the StatusBarManager.DisableFlags. --> 116 <attr name="systemBarDisableFlags" format="integer"> 117 <flag name="none" value="0"/> 118 <flag name="expand" value="1"/> 119 <flag name="notificationIcons" value="2"/> 120 <flag name="notificationAlerts" value="4"/> 121 <flag name="systemInfo" value="8"/> 122 <flag name="home" value="16"/> 123 <flag name="recent" value="32"/> 124 <flag name="back" value="64"/> 125 <flag name="clock" value="128"/> 126 <flag name="search" value="256"/> 127 <flag name="ongoingCallChip" value="512"/> 128 </attr> 129 <!-- Attribute for specifying the system bar disable flag of a supporting element view. 130 This corresponds to the StatusBarManager.Disable2Flags. --> 131 <attr name="systemBarDisable2Flags" format="integer"> 132 <flag name="none" value="0"/> 133 <flag name="quickSettings" value="1"/> 134 <flag name="systemIcons" value="2"/> 135 <flag name="notificationShade" value="4"/> 136 <flag name="globalActions" value="8"/> 137 <flag name="rotateSuggestions" value="16"/> 138 </attr> 139 <!-- Attribute for specifying if this element should be disabled when in the 140 LOCK_TASK_MODE_LOCKED state --> 141 <attr name="disableForLockTaskModeLocked" format="boolean"/> 142 </declare-styleable> 143 144 <declare-styleable name="CarSystemBarPanelButtonView"> 145 <!-- REQUIRED: Layout resource for the panel --> 146 <attr name="panelLayoutRes" format="reference"/> 147 <!-- Width of the panel. If not specified, will use default width value --> 148 <attr name="panelWidthRes" format="reference"/> 149 <!-- X Offset value for the panel location relative to the anchor view --> 150 <attr name="xOffset" format="integer"/> 151 <!-- Y Offset value for the panel location relative to the anchor view --> 152 <attr name="yOffset" format="integer"/> 153 <!-- Gravity of the panel relative to the anchor view - uses same flag format as android:gravity --> 154 <attr name="gravity" format="integer"> 155 <flag name="top" value="0x30" /> 156 <flag name="bottom" value="0x50" /> 157 <flag name="left" value="0x03" /> 158 <flag name="right" value="0x05" /> 159 <flag name="center_vertical" value="0x10" /> 160 <flag name="fill_vertical" value="0x70" /> 161 <flag name="center_horizontal" value="0x01" /> 162 <flag name="fill_horizontal" value="0x07" /> 163 <flag name="center" value="0x11" /> 164 <flag name="fill" value="0x77" /> 165 <flag name="clip_vertical" value="0x80" /> 166 <flag name="clip_horizontal" value="0x08" /> 167 <flag name="start" value="0x00800003" /> 168 <flag name="end" value="0x00800005" /> 169 </attr> 170 <!-- Whether the panel should be disabled while driving - defaults to false --> 171 <attr name="disabledWhileDriving" format="boolean"/> 172 <!-- Whether the panel should be disabled while unprovisioned - defaults to false --> 173 <attr name="disabledWhileUnprovisioned" format="boolean"/> 174 <!-- Whether the panel should be shown as a dropdown relative to the anchor view or not 175 (making it relative to the screen with offsets and gravity) - defaults to true --> 176 <attr name="showAsDropDown" format="boolean"/> 177 </declare-styleable> 178 179 <!-- Custom attributes to configure HVAC values --> 180 <declare-styleable name="HvacView"> 181 <attr name="hvacAreaId" format="integer"/> 182 <attr name="hvacPropertyId" format="integer"/> 183 <attr name="hvacTempFormat" format="string"/> 184 <attr name="hvacToggleOnButtonDrawable" format="reference"/> 185 <attr name="hvacToggleOffButtonDrawable" format="reference"/> 186 <!-- Whether the given HvacView must be turned off if the HVAC Auto mode is on. 187 Defaults to false. --> 188 <attr name="hvacDisableViewIfAutoOn" format="boolean" /> 189 </declare-styleable> 190 191 <declare-styleable name="HvacIntegerToggleButton"> 192 <attr name="invalidValue" format="integer"/> 193 <attr name="onValue" format="integer"/> 194 <attr name="offValue" format="integer"/> 195 <!-- Whether the given HvacView can be toggled off. This attribute can be useful when a 196 group of HvacToggleButtons should be used in a radio button like manner (i.e. only one 197 can be selected at a time, an option MUST be selected). 198 Defaults to false. --> 199 <attr name="preventToggleOff" format="boolean" /> 200 </declare-styleable> 201 202 <declare-styleable name="carVolumeItems"/> 203 <declare-styleable name="carVolumeItems_item"> 204 <!-- Align with AudioAttributes.USAGE_* --> 205 <attr name="usage"> 206 <enum name="unknown" value="0"/> 207 <enum name="media" value="1"/> 208 <enum name="voice_communication" value="2"/> 209 <enum name="voice_communication_signalling" value="3"/> 210 <enum name="alarm" value="4"/> 211 <enum name="notification" value="5"/> 212 <enum name="notification_ringtone" value="6"/> 213 <enum name="notification_communication_request" value="7"/> 214 <enum name="notification_communication_instant" value="8"/> 215 <enum name="notification_communication_delayed" value="9"/> 216 <enum name="notification_event" value="10"/> 217 <enum name="assistance_accessibility" value="11"/> 218 <enum name="assistance_navigation_guidance" value="12"/> 219 <enum name="assistance_sonification" value="13"/> 220 <enum name="game" value="14"/> 221 <!-- hidden, do not use --> 222 <!-- enum name="virtual_source" value="15"/ --> 223 <enum name="assistant" value="16"/> 224 <enum name="call_assistant" value="17"/> 225 <enum name="emergency" value="1000"/> 226 <enum name="safety" value="1001"/> 227 <enum name="vehicle_status" value="1002"/> 228 <enum name="announcement" value="1003"/> 229 </attr> 230 231 <!-- Icon resource ids to render on UI --> 232 <attr name="icon" /> 233 <attr name="mute_icon" /> 234 </declare-styleable> 235 236 <declare-styleable name="SystemUIQCView"> 237 <attr name="remoteQCProvider" format="string"/> 238 <attr name="localQCProvider" format="string"/> 239 </declare-styleable> 240 241 <declare-styleable name="QCFooterButton"> 242 <attr name="intent" format="string"/> 243 <attr name="disableWhileDriving" format="boolean"/> 244 </declare-styleable> 245 246 <declare-styleable name="QCFooterView"> 247 <attr name="intent" format="string"/> 248 <attr name="disableWhileDriving" format="boolean"/> 249 </declare-styleable> 250 251 <declare-styleable name="PinPadView"> 252 <attr name="layout" format="reference"/> 253 </declare-styleable> 254 255 <!-- Attributes used for showing displaycompat toolbar on system bars. --> 256 <declare-styleable name="CarDisplayCompatSystemBarView"> 257 <attr name="default_layout" format="reference"/> 258 <attr name="displaycompat_layout" format="reference"/> 259 <attr name="displaycompat_side" format="integer"> 260 <enum name="left" value="1"/> 261 <enum name="right" value="2"/> 262 </attr> 263 </declare-styleable> 264 265 <declare-styleable name="DisplayAreaView"> 266 <attr name="displayAreaFeatureId" format="integer" /> 267 <attr name="launchTaskDisplayAreaFeatureId" format="integer" /> 268 <attr name="cornerRadius" format="integer" /> 269 </declare-styleable> 270 271 <attr name="carControlHighlight" format="color|reference"/> 272 <attr name="systemBarPillRadius" format="dimension"/> 273 <attr name="systemBarPillSelectedRadius" format="dimension"/> 274 <attr name="hvacPanelBackgroundRadius" format="dimension"/> 275 <attr name="carVolumeItemCornerRadius" format="dimension"/> 276 <attr name="notificationShadeHandleBarRadius" format="dimension"/> 277 <attr name="notificationShadowRadius" format="dimension"/> 278 <attr name="carStatusIconPanelBorderRadius" format="dimension"/> 279 <attr name="carNavBarButtonSelectedCornerRadius" format="dimension"/> 280 <attr name="hvacPanelHandleBarRadius" format="dimension"/> 281 <attr name="temperatureBarBgRadius" format="dimension"/> 282 <attr name="hvacPanelButtonRadius" format="dimension"/> 283 <attr name="hvacFanSpeedBarCornerRadius" format="dimension"/> 284 <attr name="activityBlockingActionButtonCornerRadius" format="dimension"/> 285 <attr name="displayInputLockBackgroundRadius" format="dimension"/> 286 <attr name="userPickerPillRadius" format="dimension"/> 287 <attr name="pinPadKeyRadius" format="dimension"/> 288 <attr name="dataSubscriptionPopUpRadius" format="dimension"/> 289 <attr name="dataSubscriptionPopUpArrowRadius" format="dimension"/> 290</resources> 291