• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  ~ Copyright (C) 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<resources>
18    <!-- Text size for car -->
19    <dimen name="car_title_size">32sp</dimen>
20    <dimen name="car_title2_size">32sp</dimen>
21    <dimen name="car_headline1_size">45sp</dimen>
22    <dimen name="car_headline2_size">32sp</dimen>
23    <dimen name="car_headline3_size">24sp</dimen>
24    <dimen name="car_headline4_size">20sp</dimen>
25    <dimen name="car_body1_size">32sp</dimen>
26    <dimen name="car_body2_size">28sp</dimen>
27    <dimen name="car_body3_size">26sp</dimen>
28    <dimen name="car_body4_size">24sp</dimen>
29    <!-- car_body5_size is deprecated -->
30    <dimen name="car_body5_size">18sp</dimen>
31    <dimen name="car_label1_size">26sp</dimen>
32    <dimen name="car_label2_size">64sp</dimen>
33    <dimen name="car_action1_size">26sp</dimen>
34    <dimen name="car_action2_size">26sp</dimen>
35    <!-- Paddings -->
36    <dimen name="car_padding_0">4dp</dimen>
37    <dimen name="car_padding_1">8dp</dimen>
38    <dimen name="car_padding_2">16dp</dimen>
39    <dimen name="car_padding_3">24dp</dimen>
40    <dimen name="car_padding_4">32dp</dimen>
41    <dimen name="car_padding_5">64dp</dimen>
42    <dimen name="car_padding_6">96dp</dimen>
43
44    <!--
45       Note: status bar height and navigation bar heights are defined
46       in frameworks/base/core package and thus will have no effect if
47       set here. See car_product overlay for car specific defaults-->
48
49    <!-- Overrides the space between each status icon in the system bar -->
50    <dimen name="status_bar_system_icon_spacing">16dp</dimen>
51    <!-- Overrides the size of the network signal icon -->
52    <dimen name="signal_icon_size">32dp</dimen>
53    <dimen name="system_bar_user_icon_padding">16dp</dimen>
54    <dimen name="system_bar_user_icon_drawing_size">36dp</dimen>
55    <!-- Padding on either side of the group of all system bar buttons -->
56    <dimen name="system_bar_button_group_padding">64dp</dimen>
57    <dimen name="system_bar_icon_drawing_size">44dp</dimen>
58    <dimen name="system_bar_button_size">76dp</dimen>
59    <!-- Margin between the system bar buttons -->
60    <dimen name="system_bar_button_margin">32dp</dimen>
61    <!-- Padding between the system bar button and the icon within it -->
62    <dimen name="system_bar_button_padding">16dp</dimen>
63    <!-- Radius for system bar pill buttons -->
64    <dimen name="system_bar_pill_radius">30dp</dimen>
65
66    <!-- The amount by which to scale up the status bar icons. -->
67    <item name="status_bar_icon_scale_factor" format="float" type="dimen">1.75</item>
68
69    <dimen name="car_primary_icon_size">@*android:dimen/car_primary_icon_size</dimen>
70
71    <dimen name="hvac_container_padding">16dp</dimen>
72    <dimen name="hvac_temperature_text_size">56sp</dimen>
73    <dimen name="hvac_temperature_text_padding">8dp</dimen>
74    <dimen name="hvac_temperature_button_size">76dp</dimen>
75    <!--These values represent MIN and MAX for hvac-->
76    <item name="hvac_min_value_celsius" format="float" type="dimen">10</item>
77    <item name="hvac_max_value_celsius" format="float" type="dimen">35</item>
78
79    <!-- Largest size an avatar might need to be drawn in the user picker, status bar, or
80         quick settings header -->
81    <dimen name="max_avatar_size">128dp</dimen>
82
83    <!-- Standard image button size for volume dialog buttons -->
84    <dimen name="volume_button_size">84dp</dimen>
85    <!-- The maximum width allowed for the volume dialog. For auto, we allow this to span a good
86         deal of the screen. This value accounts for the side margins. -->
87    <dimen name="volume_dialog_panel_width">1920dp</dimen>
88    <dimen name="volume_dialog_side_margin">@dimen/side_margin</dimen>
89
90    <dimen name="volume_dialog_elevation">6dp</dimen>
91
92    <dimen name="volume_dialog_row_margin_end">@*android:dimen/car_keyline_3</dimen>
93
94    <dimen name="volume_dialog_row_padding_end">0dp</dimen>
95
96    <dimen name="line_item_height">128dp</dimen>
97    <dimen name="volume_icon_size">96dp</dimen>
98    <dimen name="side_margin">148dp</dimen>
99    <dimen name="car_keyline_1">24dp</dimen>
100    <dimen name="car_keyline_2">96dp</dimen>
101    <dimen name="car_keyline_3">128dp</dimen>
102
103    <!-- Height of icons in Privacy chip dialog. Both App Op icon and application icon -->
104    <dimen name="privacy_chip_dialog_icon_height">48dp</dimen>
105    <!-- Icon size for Privacy chip -->
106    <dimen name="privacy_chip_icon_size">32dp</dimen>
107    <!-- Background width for Privacy chip -->
108    <dimen name="privacy_chip_width">76dp</dimen>
109    <!-- Margin between icons of Privacy chip -->
110    <dimen name="privacy_chip_icon_margin">2dp</dimen>
111    <!-- Diameter of indicator circle in mic privacy chip animation -->
112    <dimen name="privacy_chip_indicator_circle_diameter">21.5dp</dimen>
113
114    <!-- Car volume dimens. -->
115    <dimen name="car_volume_item_icon_size">@dimen/car_primary_icon_size</dimen>
116    <dimen name="car_volume_item_height">@*android:dimen/car_single_line_list_item_height</dimen>
117    <dimen name="car_volume_item_padding_start">@*android:dimen/car_keyline_1</dimen>
118    <dimen name="car_volume_item_padding_end">@*android:dimen/car_keyline_1</dimen>
119    <dimen name="car_volume_item_seekbar_margin_vertical">@*android:dimen/car_padding_1</dimen>
120    <dimen name="car_volume_item_seekbar_margin_start">@*android:dimen/car_keyline_3</dimen>
121    <dimen name="car_volume_item_seekbar_margin_end">@*android:dimen/car_padding_4</dimen>
122    <dimen name="car_volume_item_seekbar_padding_vertical">@*android:dimen/car_seekbar_padding</dimen>
123    <dimen name="car_volume_item_divider_height">60dp</dimen>
124    <dimen name="car_volume_item_divider_width">1dp</dimen>
125    <dimen name="car_volume_item_divider_margin_end">@*android:dimen/car_padding_4</dimen>
126    <dimen name="car_volume_item_corner_radius">@*android:dimen/car_radius_3</dimen>
127
128    <!-- Car notification shade-->
129    <dimen name="notification_shade_handle_bar_height">10dp</dimen>
130    <dimen name="notification_shade_handle_bar_radius">20dp</dimen>
131    <dimen name="notification_shade_handle_bar_margin_start">200dp</dimen>
132    <dimen name="notification_shade_handle_bar_margin_end">200dp</dimen>
133    <dimen name="notification_shade_handle_bar_margin_top">20dp</dimen>
134    <dimen name="notification_shade_handle_bar_margin_bottom">10dp</dimen>
135    <dimen name="notification_shade_list_padding_bottom">50dp</dimen>
136
137    <!-- The alpha for the scrim behind the notification shade. This value is 1 so that the
138     scrim has no transparency. -->
139    <item name="scrim_behind_alpha" format="float" type="dimen">1.0</item>
140
141    <!-- The width of panel holding the notification card. -->
142    <dimen name="notification_panel_width">522dp</dimen>
143
144    <!-- Height of a small notification in the status bar-->
145    <dimen name="notification_min_height">192dp</dimen>
146
147    <!-- Height of a small notification in the status bar which was used before android N -->
148    <dimen name="notification_min_height_legacy">192dp</dimen>
149
150    <!-- Height of a large notification in the status bar -->
151    <dimen name="notification_max_height">400dp</dimen>
152
153    <!-- Height of a heads up notification in the status bar for legacy custom views -->
154    <dimen name="notification_max_heads_up_height_legacy">400dp</dimen>
155
156    <!-- Height of a heads up notification in the status bar -->
157    <dimen name="notification_max_heads_up_height">400dp</dimen>
158
159    <!-- Height of the status bar header bar -->
160    <dimen name="status_bar_header_height">54dp</dimen>
161
162    <!-- The height of the divider between the individual notifications. -->
163    <dimen name="notification_divider_height">16dp</dimen>
164
165    <!-- The height of the divider between the individual notifications when the notification
166         wants it to be increased. This value is the same as notification_divider_height so that
167         the spacing between all notifications will always be the same. -->
168    <dimen name="notification_divider_height_increased">@dimen/notification_divider_height</dimen>
169
170    <!-- The alpha of the dividing line between child notifications of a notification group. -->
171    <item name="notification_divider_alpha" format="float" type="dimen">1.0</item>
172
173    <!-- The width of each individual notification card. -->
174    <dimen name="notification_child_width">522dp</dimen>
175
176    <!-- The top margin of the notification panel. -->
177    <dimen name="notification_panel_margin_top">32dp</dimen>
178
179    <!-- The bottom margin of the panel that holds the list of notifications. -->
180    <dimen name="notification_panel_margin_bottom">@dimen/notification_divider_height</dimen>
181
182    <!-- The corner radius of the shadow behind the notification. -->
183    <dimen name="notification_shadow_radius">16dp</dimen>
184
185    <!-- The amount of space below the notification list. This value is 0 so the list scrolls
186         all the way to the bottom. -->
187    <dimen name="close_handle_underlap">0dp</dimen>
188
189    <!-- The height of the divider between the individual notifications in a notification group. -->
190    <dimen name="notification_children_container_divider_height">1dp</dimen>
191
192    <!-- The height of the header for a container containing child notifications. -->
193    <dimen name="notification_children_container_header_height">76dp</dimen>
194
195    <!-- The top margin for the notification children container in its non-expanded form. This
196         value is smaller than notification_children_container_header_height to bring the first
197         child closer so there is less wasted space. -->
198    <dimen name="notification_children_container_margin_top">68dp</dimen>
199
200    <!-- dimensions for the car user switcher -->
201    <dimen name="car_user_switcher_name_text_size">@*android:dimen/car_body1_size</dimen>
202    <dimen name="car_user_switcher_image_avatar_size">@*android:dimen/car_large_avatar_size</dimen>
203    <dimen name="car_user_switcher_vertical_spacing_between_users">@*android:dimen/car_padding_5</dimen>
204    <dimen name="car_user_switcher_vertical_spacing_between_name_and_avatar">@*android:dimen/car_padding_4</dimen>
205    <dimen name="car_user_switcher_margin_top">@*android:dimen/car_padding_4</dimen>
206    <dimen name="car_user_switcher_margin_bottom">@*android:dimen/car_padding_4</dimen>
207    <dimen name="car_user_switcher_managed_badge_size">@*android:dimen/car_large_avatar_badge_size</dimen>
208    <dimen name="car_user_switcher_managed_badge_margin">1dp</dimen>
209
210    <dimen name="car_system_bar_button_width">64dp</dimen>
211    <dimen name="car_system_bar_button_icon_height">44dp</dimen>
212    <dimen name="car_system_bar_width">760dp</dimen>
213    <dimen name="car_system_bar_user_name_max_width">176dp</dimen>
214    <dimen name="car_left_system_bar_width">96dp</dimen>
215    <dimen name="car_right_system_bar_width">96dp</dimen>
216    <!-- In order to change the height of the bottom nav bar, overlay system_bar_height in
217         frameworks/base/core/res/res instead. -->
218    <dimen name="car_bottom_system_bar_height">@*android:dimen/navigation_bar_height</dimen>
219    <!-- In order to change the height of the top nav bar, overlay status_bar_height in
220         frameworks/base/core/res/res instead. -->
221    <dimen name="car_top_system_bar_height">@*android:dimen/status_bar_height</dimen>
222
223    <dimen name="car_user_switcher_container_height">420dp</dimen>
224    <!-- This must be the negative of car_user_switcher_container_height for the animation. -->
225    <dimen name="car_user_switcher_container_anim_height">-420dp</dimen>
226
227    <!-- dimensions for car user switching dialog -->
228    <dimen name="car_fullscreen_user_pod_image_avatar_width">96dp</dimen>
229    <dimen name="car_fullscreen_user_pod_image_avatar_height">96dp</dimen>
230    <dimen name="car_user_switching_dialog_loading_text_margin_top">@*android:dimen/car_padding_4</dimen>
231    <dimen name="car_user_switching_dialog_loading_text_font_size">@*android:dimen/car_body1_size</dimen>
232</resources>
233