• 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    <dimen name="status_bar_icon_drawing_size_dark">36dp</dimen>
50    <dimen name="status_bar_icon_drawing_size">36dp</dimen>
51    <!-- The amount by which to scale up the status bar icons. -->
52    <item name="status_bar_icon_scale_factor" format="float" type="dimen">1.75</item>
53
54    <dimen name="car_primary_icon_size">@*android:dimen/car_primary_icon_size</dimen>
55
56    <!--These values represent MIN and MAX for hvac-->
57    <item name="hvac_min_value" format="float" type="dimen">0</item>
58    <item name="hvac_max_value" format="float" type="dimen">126</item>
59
60    <!-- Largest size an avatar might need to be drawn in the user picker, status bar, or
61         quick settings header -->
62    <dimen name="max_avatar_size">128dp</dimen>
63
64    <!-- Standard image button size for volume dialog buttons -->
65    <dimen name="volume_button_size">84dp</dimen>
66    <!-- The maximum width allowed for the volume dialog. For auto, we allow this to span a good
67         deal of the screen. This value accounts for the side margins. -->
68    <dimen name="volume_dialog_panel_width">1920dp</dimen>
69    <dimen name="volume_dialog_side_margin">@dimen/side_margin</dimen>
70
71    <dimen name="volume_dialog_elevation">6dp</dimen>
72
73    <dimen name="volume_dialog_row_margin_end">@*android:dimen/car_keyline_3</dimen>
74
75    <dimen name="volume_dialog_row_padding_end">0dp</dimen>
76
77    <dimen name="line_item_height">128dp</dimen>
78    <dimen name="volume_icon_size">96dp</dimen>
79    <dimen name="side_margin">148dp</dimen>
80    <dimen name="car_keyline_1">24dp</dimen>
81    <dimen name="car_keyline_2">96dp</dimen>
82    <dimen name="car_keyline_3">128dp</dimen>
83
84    <!-- Height of icons in Ongoing App Ops dialog. Both App Op icon and application icon -->
85    <dimen name="ongoing_appops_dialog_icon_height">48dp</dimen>
86    <!-- Margin between text lines in Ongoing App Ops dialog -->
87    <dimen name="ongoing_appops_dialog_text_margin">15dp</dimen>
88    <!-- Padding around Ongoing App Ops dialog content -->
89    <dimen name="ongoing_appops_dialog_content_padding">24dp</dimen>
90    <!-- Margins around the Ongoing App Ops chip. In landscape, the side margins are 0 -->
91    <dimen name="ongoing_appops_chip_margin">12dp</dimen>
92    <!-- Start and End padding for Ongoing App Ops chip -->
93    <dimen name="ongoing_appops_chip_side_padding">6dp</dimen>
94    <!-- Padding between background of Ongoing App Ops chip and content -->
95    <dimen name="ongoing_appops_chip_bg_padding">4dp</dimen>
96    <!-- Radius of Ongoing App Ops chip corners -->
97    <dimen name="ongoing_appops_chip_bg_corner_radius">12dp</dimen>
98
99    <!-- Car volume dimens. -->
100    <dimen name="car_volume_item_icon_size">@dimen/car_primary_icon_size</dimen>
101    <dimen name="car_volume_item_height">@*android:dimen/car_single_line_list_item_height</dimen>
102    <dimen name="car_volume_item_padding_start">@*android:dimen/car_keyline_1</dimen>
103    <dimen name="car_volume_item_padding_end">@*android:dimen/car_keyline_1</dimen>
104    <dimen name="car_volume_item_seekbar_margin_vertical">@*android:dimen/car_padding_1</dimen>
105    <dimen name="car_volume_item_seekbar_margin_start">@*android:dimen/car_keyline_3</dimen>
106    <dimen name="car_volume_item_seekbar_margin_end">@*android:dimen/car_padding_4</dimen>
107    <dimen name="car_volume_item_seekbar_padding_vertical">@*android:dimen/car_seekbar_padding</dimen>
108    <dimen name="car_volume_item_divider_height">60dp</dimen>
109    <dimen name="car_volume_item_divider_width">1dp</dimen>
110    <dimen name="car_volume_item_divider_margin_end">@*android:dimen/car_padding_4</dimen>
111    <dimen name="car_volume_item_corner_radius">@*android:dimen/car_radius_3</dimen>
112
113    <!-- Car notification shade-->
114    <dimen name="notification_shade_handle_bar_height">10dp</dimen>
115    <dimen name="notification_shade_handle_bar_radius">20dp</dimen>
116    <dimen name="notification_shade_handle_bar_margin_start">200dp</dimen>
117    <dimen name="notification_shade_handle_bar_margin_end">200dp</dimen>
118    <dimen name="notification_shade_handle_bar_margin_top">20dp</dimen>
119    <dimen name="notification_shade_handle_bar_margin_bottom">10dp</dimen>
120    <dimen name="notification_shade_list_padding_bottom">50dp</dimen>
121
122    <!-- The alpha for the scrim behind the notification shade. This value is 1 so that the
123     scrim has no transparency. -->
124    <item name="scrim_behind_alpha" format="float" type="dimen">1.0</item>
125
126    <!-- The width of panel holding the notification card. -->
127    <dimen name="notification_panel_width">522dp</dimen>
128
129    <!-- Height of a small notification in the status bar-->
130    <dimen name="notification_min_height">192dp</dimen>
131
132    <!-- Height of a small notification in the status bar which was used before android N -->
133    <dimen name="notification_min_height_legacy">192dp</dimen>
134
135    <!-- Height of a large notification in the status bar -->
136    <dimen name="notification_max_height">400dp</dimen>
137
138    <!-- Height of a heads up notification in the status bar for legacy custom views -->
139    <dimen name="notification_max_heads_up_height_legacy">400dp</dimen>
140
141    <!-- Height of a heads up notification in the status bar -->
142    <dimen name="notification_max_heads_up_height">400dp</dimen>
143
144    <!-- Height of the status bar header bar -->
145    <dimen name="status_bar_header_height">54dp</dimen>
146
147    <!-- The height of the divider between the individual notifications. -->
148    <dimen name="notification_divider_height">16dp</dimen>
149
150    <!-- The height of the divider between the individual notifications when the notification
151         wants it to be increased. This value is the same as notification_divider_height so that
152         the spacing between all notifications will always be the same. -->
153    <dimen name="notification_divider_height_increased">@dimen/notification_divider_height</dimen>
154
155    <!-- The alpha of the dividing line between child notifications of a notification group. -->
156    <item name="notification_divider_alpha" format="float" type="dimen">1.0</item>
157
158    <!-- The width of each individual notification card. -->
159    <dimen name="notification_child_width">522dp</dimen>
160
161    <!-- The top margin of the notification panel. -->
162    <dimen name="notification_panel_margin_top">32dp</dimen>
163
164    <!-- The bottom margin of the panel that holds the list of notifications. -->
165    <dimen name="notification_panel_margin_bottom">@dimen/notification_divider_height</dimen>
166
167    <!-- The corner radius of the shadow behind the notification. -->
168    <dimen name="notification_shadow_radius">16dp</dimen>
169
170    <!-- The amount of space below the notification list. This value is 0 so the list scrolls
171         all the way to the bottom. -->
172    <dimen name="close_handle_underlap">0dp</dimen>
173
174    <!-- The height of the divider between the individual notifications in a notification group. -->
175    <dimen name="notification_children_container_divider_height">1dp</dimen>
176
177    <!-- The height of the header for a container containing child notifications. -->
178    <dimen name="notification_children_container_header_height">76dp</dimen>
179
180    <!-- The top margin for the notification children container in its non-expanded form. This
181         value is smaller than notification_children_container_header_height to bring the first
182         child closer so there is less wasted space. -->
183    <dimen name="notification_children_container_margin_top">68dp</dimen>
184
185    <!-- dimensions for the car user switcher -->
186    <dimen name="car_user_switcher_name_text_size">@*android:dimen/car_body1_size</dimen>
187    <dimen name="car_user_switcher_image_avatar_size">@*android:dimen/car_large_avatar_size</dimen>
188    <dimen name="car_user_switcher_vertical_spacing_between_users">@*android:dimen/car_padding_5</dimen>
189    <dimen name="car_user_switcher_vertical_spacing_between_name_and_avatar">@*android:dimen/car_padding_4</dimen>
190    <dimen name="car_user_switcher_margin_top">@*android:dimen/car_padding_4</dimen>
191
192    <dimen name="car_navigation_button_width">64dp</dimen>
193    <dimen name="car_navigation_button_icon_height">44dp</dimen>
194    <dimen name="car_navigation_bar_width">760dp</dimen>
195    <dimen name="car_left_navigation_bar_width">96dp</dimen>
196    <dimen name="car_right_navigation_bar_width">96dp</dimen>
197    <!-- In order to change the height of the bottom nav bar, overlay navigation_bar_height in
198         frameworks/base/core/res/res instead. -->
199    <dimen name="car_bottom_navigation_bar_height">@*android:dimen/navigation_bar_height</dimen>
200    <!-- In order to change the height of the top nav bar, overlay status_bar_height in
201         frameworks/base/core/res/res instead. -->
202    <dimen name="car_top_navigation_bar_height">@*android:dimen/status_bar_height</dimen>
203
204    <dimen name="car_user_switcher_container_height">420dp</dimen>
205    <!-- This must be the negative of car_user_switcher_container_height for the animation. -->
206    <dimen name="car_user_switcher_container_anim_height">-420dp</dimen>
207
208    <!-- dimensions for car user switching dialog -->
209    <dimen name="car_fullscreen_user_pod_image_avatar_width">96dp</dimen>
210    <dimen name="car_fullscreen_user_pod_image_avatar_height">96dp</dimen>
211    <dimen name="car_user_switching_dialog_loading_text_margin_top">@*android:dimen/car_padding_4</dimen>
212    <dimen name="car_user_switching_dialog_loading_text_font_size">@*android:dimen/car_body1_size</dimen>
213</resources>
214