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-->
18<resources>
19    <dimen name="car_large_avatar_size">96dp</dimen>
20    <dimen name="car_large_avatar_badge_size">24dp</dimen>
21    <!-- Application Bar -->
22    <dimen name="car_app_bar_height">80dp</dimen>
23    <!-- Margin -->
24    <dimen name="car_margin">20dp</dimen>
25    <!-- Lists -->
26    <dimen name="car_single_line_list_item_height">96dp</dimen>
27    <dimen name="car_double_line_list_item_height">@dimen/car_single_line_list_item_height</dimen>
28    <dimen name="car_list_divider_height">1dp</dimen>
29    <!-- The diff between keyline 1 and keyline 3. -->
30    <dimen name="car_keyline_1_keyline_3_diff">88dp</dimen>
31    <dimen name="car_dialog_action_bar_height">@dimen/car_card_action_bar_height</dimen>
32
33    <!-- Text size for car -->
34    <dimen name="car_title_size">32sp</dimen>
35    <dimen name="car_title2_size">32sp</dimen>
36    <dimen name="car_headline1_size">45sp</dimen>
37    <dimen name="car_headline2_size">32sp</dimen>
38    <dimen name="car_headline3_size">24sp</dimen>
39    <dimen name="car_headline4_size">20sp</dimen>
40    <dimen name="car_body1_size">32sp</dimen>
41    <dimen name="car_body2_size">28sp</dimen>
42    <dimen name="car_body3_size">26sp</dimen>
43    <dimen name="car_body4_size">24sp</dimen>
44    <!-- car_body5_size is deprecated -->
45    <dimen name="car_body5_size">18sp</dimen>
46    <dimen name="car_label1_size">26sp</dimen>
47    <dimen name="car_label2_size">64sp</dimen>
48    <dimen name="car_action1_size">26sp</dimen>
49    <dimen name="car_action2_size">26sp</dimen>
50
51    <!-- Common icon size for car app -->
52    <dimen name="car_icon_size">56dp</dimen>
53    <dimen name="car_primary_icon_size">44dp</dimen>
54    <dimen name="car_secondary_icon_size">36dp</dimen>
55
56    <dimen name="car_card_header_height">76dp</dimen>
57    <dimen name="car_card_action_bar_height">76dp</dimen>
58
59    <!-- Paddings -->
60    <dimen name="car_padding_0">4dp</dimen>
61    <dimen name="car_padding_1">8dp</dimen>
62    <dimen name="car_padding_2">16dp</dimen>
63    <dimen name="car_padding_3">24dp</dimen>
64    <dimen name="car_padding_4">32dp</dimen>
65    <dimen name="car_padding_5">64dp</dimen>
66    <dimen name="car_padding_6">96dp</dimen>
67
68    <!-- Radius -->
69    <dimen name="car_radius_1">4dp</dimen>
70    <dimen name="car_radius_2">8dp</dimen>
71    <dimen name="car_radius_3">16dp</dimen>
72    <dimen name="car_radius_5">100dp</dimen>
73
74    <!-- Keylines for content. -->
75    <dimen name="car_keyline_1">48dp</dimen>
76    <dimen name="car_keyline_2">108dp</dimen>
77    <dimen name="car_keyline_3">152dp</dimen>
78    <dimen name="car_keyline_4">182dp</dimen>
79
80    <!-- Buttons -->
81    <dimen name="car_button_height">56dp</dimen>
82    <dimen name="car_button_min_width">158dp</dimen>
83    <dimen name="car_button_horizontal_padding">@dimen/car_padding_4</dimen>
84    <dimen name="car_borderless_button_horizontal_padding">0dp</dimen>
85    <dimen name="car_button_radius">@dimen/car_radius_1</dimen>
86    <dimen name="car_pill_button_size">56dp</dimen>
87    <dimen name="car_touch_target_size">76dp</dimen>
88    <dimen name="car_touch_target_size_minus_one">75dp</dimen>
89
90    <!-- Switch. -->
91    <!-- Thumb size + 2*thumb margin size must equal car_touch_target_size -->
92    <!-- 2 * Thumb size + 2*track margin size must equal car_touch_target_size -->
93    <dimen name="car_switch_thumb_size">24dp</dimen>
94    <dimen name="car_switch_thumb_margin_size">26dp</dimen>
95    <dimen name="car_switch_track_margin_size">14dp</dimen>
96
97    <!-- Seekbar -->
98    <dimen name="car_seekbar_height">6dp</dimen>
99    <dimen name="car_seekbar_padding">26dp</dimen>
100    <dimen name="car_seekbar_thumb_size">24dp</dimen>
101    <dimen name="car_seekbar_thumb_stroke">1dp</dimen>
102    <!-- The space between seekbar and text in ListItem. This value is based on car_seekbar_padding.
103         It brings seekbar and text closer for visual balance while maintaining touch area. -->
104    <dimen name="car_seekbar_text_overlap">-20dp</dimen>
105
106    <!-- Progress Bar -->
107    <dimen name="car_progress_bar_height">@dimen/car_seekbar_height</dimen>
108
109    <!-- TextView -->
110    <dimen name="car_textview_fading_edge_length">40dp</dimen>
111
112    <!-- Dialog start padding for button bar layout -->
113    <dimen name="button_bar_layout_start_padding">@dimen/car_padding_2</dimen>
114
115    <!-- Dialog end padding for button bar layout -->
116    <dimen name="button_bar_layout_end_padding">@dimen/car_padding_2</dimen>
117
118    <!-- Dialog top padding for button bar layout -->
119    <dimen name="button_bar_layout_top_padding">@*android:dimen/car_padding_2</dimen>
120
121    <!-- Dialog button layout height -->
122    <dimen name="button_layout_height">@*android:dimen/car_card_action_bar_height</dimen>
123
124    <!-- Dialog button end margin -->
125    <dimen name="button_end_margin">@*android:dimen/car_padding_2</dimen>
126
127    <!-- Dialog top padding when there is no title -->
128    <dimen name="dialog_no_title_padding_top">@*android:dimen/car_padding_4</dimen>
129
130    <!-- Dialog start margin for text view -->
131    <dimen name="text_view_start_margin">@*android:dimen/car_keyline_1</dimen>
132
133    <!-- Dialog end margin for text view -->
134    <dimen name="text_view_end_margin">@*android:dimen/car_keyline_1</dimen>
135
136    <!-- Dialog image size -->
137    <dimen name="image_size">@*android:dimen/car_icon_size</dimen>
138
139    <!-- Dialog image margin start -->
140    <dimen name="image_margin_start">@*android:dimen/car_keyline_1</dimen>
141
142    <dimen name="car_preference_icon_size">@dimen/car_primary_icon_size</dimen>
143    <dimen name="car_preference_category_icon_size">@dimen/car_primary_icon_size</dimen>
144    <dimen name="car_preference_row_vertical_margin">@dimen/car_padding_2</dimen>
145
146    <!-- Action bar -->
147    <dimen name="action_bar_margin">@*android:dimen/car_margin</dimen>
148    <dimen name="action_bar_margin_start">@*android:dimen/car_margin</dimen>
149    <dimen name="action_bar_margin_end">@*android:dimen/car_margin</dimen>
150    <!-- Space between a button and another button or screen edge -->
151    <dimen name="action_bar_button_margin">@*android:dimen/car_padding_4</dimen>
152    <dimen name="action_bar_button_max_width">268dp</dimen>
153    <dimen name="action_bar_toggle_internal_padding">@*android:dimen/car_padding_3</dimen>
154
155    <!-- Intent Resolver -->
156    <dimen name="car_activity_resolver_width">706dp</dimen>
157    <dimen name="car_activity_resolver_list_item_height">96dp</dimen>
158    <dimen name="car_activity_resolver_list_max_height">256dp</dimen>
159    <dimen name="car_activity_resolver_corner_radius">24dp</dimen>
160</resources>
161