1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2017 The Android Open Source Project
3
4Licensed under the Apache License, Version 2.0 (the "License");
5you may not use this file except in compliance with the License.
6You may obtain a copy of the License at
7
8  http://www.apache.org/licenses/LICENSE-2.0
9
10Unless required by applicable law or agreed to in writing, software
11distributed under the License is distributed on an "AS IS" BASIS,
12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13See the License for the specific language governing permissions and
14limitations under the License.
15-->
16<resources>
17    <!-- Framework -->
18    <!-- Margin -->
19    <dimen name="car_margin">20dp</dimen>
20
21    <!-- Gutters -->
22    <dimen name="car_gutter_size">16dp</dimen>
23
24    <!-- Keylines -->
25    <dimen name="car_keyline_1">24dp</dimen>
26    <dimen name="car_keyline_2">96dp</dimen>
27    <dimen name="car_keyline_3">112dp</dimen>
28    <dimen name="car_keyline_4">148dp</dimen>
29    <dimen name="car_keyline_1_neg">-24dp</dimen>
30    <dimen name="car_keyline_2_neg">-96dp</dimen>
31    <dimen name="car_keyline_3_neg">-112dp</dimen>
32    <dimen name="car_keyline_4_neg">-148dp</dimen>
33    <!-- The diff between keyline 1 and keyline 3. -->
34    <dimen name="car_keyline_1_keyline_3_diff">88dp</dimen>
35
36    <!-- Paddings -->
37    <dimen name="car_padding_0">4dp</dimen>
38    <dimen name="car_padding_1">10dp</dimen>
39    <dimen name="car_padding_2">12dp</dimen>
40    <dimen name="car_padding_3">16dp</dimen>
41    <dimen name="car_padding_4">20dp</dimen>
42    <dimen name="car_padding_5">40dp</dimen>
43    <dimen name="car_padding_6">64dp</dimen>
44
45    <!-- Radii -->
46    <dimen name="car_radius_1">4dp</dimen>
47    <dimen name="car_radius_2">8dp</dimen>
48    <dimen name="car_radius_3">16dp</dimen>
49    <dimen name="car_radius_5">100dp</dimen>
50
51    <!-- Car Component Dimensions -->
52    <!-- Type Sizings -->
53    <dimen name="car_title_size">32sp</dimen>
54    <dimen name="car_title2_size">32sp</dimen>
55    <dimen name="car_headline1_size">45sp</dimen>
56    <dimen name="car_headline2_size">32sp</dimen>
57    <dimen name="car_headline3_size">24sp</dimen>
58    <dimen name="car_headline4_size">20sp</dimen>
59    <dimen name="car_body1_size">32sp</dimen>
60    <dimen name="car_body2_size">26sp</dimen>
61    <dimen name="car_body3_size">16sp</dimen>
62    <dimen name="car_body4_size">14sp</dimen>
63    <dimen name="car_body5_size">18sp</dimen>
64    <dimen name="car_label1_size">26sp</dimen>
65    <dimen name="car_label2_size">64sp</dimen>
66    <dimen name="car_action1_size">26sp</dimen>
67    <dimen name="car_action2_size">26sp</dimen>
68
69    <!-- Icons and Buttons -->
70    <!-- Icons -->
71    <dimen name="car_primary_icon_size">44dp</dimen>
72    <dimen name="car_secondary_icon_size">24dp</dimen>
73    <dimen name="car_fab_icon_size">76dp</dimen>
74    <dimen name="car_app_icon_size">76dp</dimen>
75
76    <!-- Avatars -->
77    <dimen name="car_avatar_size">56dp</dimen>
78    <dimen name="car_large_avatar_size">96dp</dimen>
79
80    <!-- Minimum touch target size. -->
81    <dimen name="car_touch_target_size">76dp</dimen>
82
83    <!-- Buttons -->
84    <dimen name="car_button_height">56dp</dimen>
85    <dimen name="car_button_min_width">158dp</dimen>
86    <dimen name="car_button_horizontal_padding">@dimen/car_padding_4</dimen>
87    <dimen name="car_borderless_button_horizontal_padding">0dp</dimen>
88    <dimen name="car_button_radius">@dimen/car_radius_1</dimen>
89    <dimen name="car_pill_button_size">56dp</dimen>
90
91    <!-- Status Bar -->
92    <dimen name="car_status_bar_height">36dp</dimen>
93    <dimen name="car_status_bar_icon_size">24dp</dimen>
94
95    <!-- Navigation Bar -->
96    <dimen name="car_navigation_bar_height">80dp</dimen>
97
98    <!-- Application Bar -->
99    <dimen name="car_app_bar_height">80dp</dimen>
100    <dimen name="car_app_bar_default_elevation">8dp</dimen>
101    <dimen name="car_application_icon_size">44dp</dimen>
102
103    <!-- Action Bar -->
104    <dimen name="car_action_bar_height">96dp</dimen>
105    <dimen name="car_action_bar_buttons_space">@dimen/car_padding_4</dimen>
106    <dimen name="car_action_bar_button_width">128dp</dimen>
107    <dimen name="car_action_bar_button_height">128dp</dimen>
108    <dimen name="car_action_bar_activation_ring_stroke_width">3dp</dimen>
109    <dimen name="car_action_bar_activation_ring_radius">64dp</dimen>
110    <dimen name="car_action_bar_touch_ripple_size">38dp</dimen>
111    <dimen name="car_action_bar_button_ripple_radius">48dp</dimen>
112    <dimen name="car_action_bar_elevation">2dp</dimen>
113
114    <!-- Action Buttons -->
115    <dimen name="car_action_button_icon_inset">24dp</dimen>
116    <dimen name="car_action_button_ripple_inset">16dp</dimen>
117
118    <!-- Lists -->
119    <dimen name="car_single_line_list_item_height">96dp</dimen>
120    <dimen name="car_double_line_list_item_height">@dimen/car_single_line_list_item_height</dimen>
121    <dimen name="car_list_divider_height">1dp</dimen>
122
123    <!-- The height of a vertical line divider. -->
124    <dimen name="car_vertical_line_divider_height">60dp</dimen>
125    <dimen name="car_vertical_line_divider_width">1dp</dimen>
126
127    <!-- Cards -->
128    <dimen name="car_card_header_height">76dp</dimen>
129    <dimen name="car_card_action_bar_height">76dp</dimen>
130
131    <!-- Dialogs -->
132    <dimen name="car_dialog_header_height">@dimen/car_card_header_height</dimen>
133    <dimen name="car_dialog_action_bar_height">@dimen/car_card_action_bar_height</dimen>
134    <dimen name="car_dialog_elevation">16dp</dimen>
135    <dimen name="car_list_dialog_title_elevation">16dp</dimen>
136
137    <!-- Slide Up Menu -->
138    <dimen name="car_slide_up_menu_initial_height">76dp</dimen>
139
140    <!-- Slide Down Menu -->
141    <dimen name="car_slide_down_menu_initial_height">@dimen/car_slide_up_menu_initial_height</dimen>
142
143    <!-- Sub Header -->
144    <dimen name="car_sub_header_height">76dp</dimen>
145
146    <!-- Seekbar -->
147    <dimen name="car_seekbar_height">6dp</dimen>
148    <dimen name="car_seekbar_padding">26dp</dimen>
149    <dimen name="car_seekbar_thumb_size">24dp</dimen>
150    <dimen name="car_seekbar_thumb_stroke">1dp</dimen>
151    <!-- The space between seekbar and text in ListItem. This value is based on car_seekbar_padding.
152         It brings seekbar and text closer for visual balance while maintaining touch area. -->
153    <dimen name="car_seekbar_text_overlap">-20dp</dimen>
154
155    <!-- Scroll Bar Thumb -->
156    <dimen name="car_scroll_bar_thumb_width">6dp</dimen>
157
158    <!-- Scroll Bar and Alpha Jump Buttons -->
159    <dimen name="car_scroll_bar_button_size">56dp</dimen>
160    <dimen name="car_alpha_jump_button_size">@dimen/car_scroll_bar_button_size</dimen>
161
162    <!-- Progress Bar -->
163    <dimen name="car_progress_bar_height">@dimen/car_seekbar_height</dimen>
164
165    <!-- Text Input -->
166    <dimen name="car_text_input_line_height">2dp</dimen>
167
168    <!-- Grid Spacing -->
169    <dimen name="car_grid_spacing_minimum">32dp</dimen>
170
171    <!-- PagedListView Dimensions -->
172    <!-- Sample row height used for scroll bar calculations in the off chance that a view hasn't
173        been measured. It's highly unlikely that this value will actually be used for more than
174        a frame max. The sample row is a 96dp card + 16dp margin on either side. -->
175    <dimen name="car_sample_row_height">128dp</dimen>
176
177    <!-- The amount of space the LayoutManager will make sure the last item on the screen is
178         peeking before scrolling down -->
179    <dimen name="car_last_card_peek_amount">16dp</dimen>
180
181    <!-- Drawer Dimensions -->
182    <!-- Size of progress-bar in Drawer -->
183    <dimen name="car_drawer_progress_bar_size">48dp</dimen>
184
185    <!-- Drawer Max Width -->
186    <dimen name="car_drawer_max_width">720dp</dimen>
187
188    <!-- Dimensions of the back arrow in the drawer. -->
189    <dimen name="car_arrow_size">96dp</dimen>
190    <dimen name="car_arrow_thickness">3dp</dimen>
191    <dimen name="car_arrow_shaft_length">34dp</dimen>
192    <dimen name="car_arrow_head_length">18dp</dimen>
193    <dimen name="car_menu_bar_spacing">6dp</dimen>
194    <dimen name="car_menu_bar_length">40dp</dimen>
195
196    <!-- The size of the starting icon. -->
197    <dimen name="car_drawer_list_item_icon_size">64dp</dimen>
198
199    <!-- The margin after the starting icon. -->
200    <dimen name="car_drawer_list_item_icon_end_margin">32dp</dimen>
201
202    <!-- The ending margin on a list view. -->
203    <dimen name="car_drawer_list_item_end_margin">32dp</dimen>
204
205    <!-- The size of the starting icon in a small list item.-->
206    <dimen name="car_drawer_list_item_small_icon_size">56dp</dimen>
207
208    <!-- The size of the ending icon in a list item. -->
209    <dimen name="car_drawer_list_item_end_icon_size">56dp</dimen>
210
211    <!-- The margin between text is lies on top of each other. -->
212    <dimen name="car_text_vertical_margin">2dp</dimen>
213
214    <!-- Speed Bump -->
215    <dimen name="speed_bump_lock_out_message_height">96dp</dimen>
216    <dimen name="speed_bump_lock_out_drawable_margin_bottom">8dp</dimen>
217
218</resources>
219