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    <!-- CarLauncher Activity values -->
19    <dimen name="launcher_card_corner_radius">32dp</dimen>
20    <!-- Vertical percentage of screen (not occupied by maps to devote to the contextual space
21      (Ex: date time temp) -->
22    <item name="contextual_screen_percentage" type="dimen" format="float">.6</item>
23
24    <!--Used for the space between the top, and bottom of the screen and the content -->
25    <dimen name="vertical_border_size">@*android:dimen/car_padding_1</dimen>
26    <!-- Used for the space between the start, and end of the screen and the content -->
27    <dimen name="horizontal_border_size">@*android:dimen/car_padding_1</dimen>
28    <!-- Margin surrounding fragments on the main activity -->
29    <dimen name="main_screen_widget_margin">16dp</dimen>
30
31    <!-- Card dimensions -->
32    <dimen name="card_width">400dp</dimen>
33
34    <!-- Card Header dimensions -->
35    <dimen name="card_content_margin">24dp</dimen>
36    <dimen name="card_icon_size">36dp</dimen>
37    <dimen name="card_name_margin_start">16dp</dimen>
38
39    <!-- Card Content dimensions -->
40    <dimen name="media_top_margin">24dp</dimen>
41    <dimen name="descriptive_text_only_top_margin">32dp</dimen>
42    <dimen name="descriptive_text_with_controls_top_margin">24dp</dimen>
43    <!-- Percent transparency of the scrim applied to the image used for the card's background as a float between 0 and 1, where 0 applies no darkening scrim-->
44    <dimen name="card_background_scrim_alpha" format="float">0.72</dimen>
45    <!--Blur radius for the RenderEffect for the card's background image as a float, where 0 is not blurred -->
46    <dimen name="card_background_image_blur_radius" format="float">25</dimen>
47
48    <!-- card_content_descriptive_text dimensions -->
49    <dimen name="card_content_image_size">76dp</dimen>
50    <dimen name="card_content_image_margin">16dp</dimen>
51    <dimen name="descriptive_text_margin_top">8dp</dimen>
52    <dimen name="secondary_text_margin_top">0dp</dimen>
53
54    <!-- card_content_text_block dimensions -->
55    <dimen name="text_block_top_margin">24dp</dimen>
56
57    <!-- card_content_button_trio dimensions -->
58    <dimen name="home_card_button_size">44dp</dimen>
59    <dimen name="button_outline_thickness">4dp</dimen>
60    <dimen name="button_tap_target_size">76dp</dimen>
61    <dimen name="button_tap_target_icon_padding">8dp</dimen>
62    <dimen name="button_trio_margin">24dp</dimen>
63
64    <!-- card_content_playback_controls dimensions -->
65    <dimen name="playback_controls_margin">24dp</dimen>
66
67    <!-- card_content_tap_for_more dimensions -->
68    <dimen name="tap_text_margin">24dp</dimen>
69
70    <dimen name="control_bar_padding">0dp</dimen>
71
72    <!-- Recent task -->
73    <dimen name="recent_task_icon_size">48dp</dimen>
74    <dimen name="recent_task_dismiss_button_size">@dimen/recent_task_icon_size</dimen>
75    <dimen name="recent_task_col_space">64dp</dimen>
76    <!-- The fraction that a recent task should move(from its original position) to
77         be considered as swiped -->
78    <item name="recent_task_swiped_threshold" type="dimen" format="float">0.3</item>
79    <!-- Pixel value by with a recent task should move(from its original position) to
80         start a swipe gesture. If the gesture has a smaller change, the gesture is forwarded to
81         other handlers. -->
82    <item name="recent_task_start_swipe_threshold" type="dimen" format="float">5</item>
83    <item name="disabled_recent_task_alpha" type="dimen" format="float">0.35</item>
84    <!--  task width can be calculated using the following formula:
85      available height of thumbnail * width of screen / height of screen between the insets
86      This will allow most task thumbnails to be displayed without cropping. -->
87    <dimen name="recent_task_width_first">1036dp</dimen>
88    <dimen name="recent_task_width">432dp</dimen>
89
90    <!-- Calm mode sizes -->
91    <dimen name="calm_mode_padding_vertical">40dp</dimen>
92    <dimen name="calm_mode_padding_horizontal">12dp</dimen>
93    <dimen name="calm_mode_icon_size_regular">32dp</dimen>
94    <dimen name="calm_mode_icon_size_small">16dp</dimen>
95    <dimen name="calm_mode_icon_margin">24dp</dimen>
96    <dimen name="calm_mode_text_size">24sp</dimen>
97    <dimen name="calm_mode_clock_translationY">40dp</dimen>
98    <dimen name="calm_mode_clock_media_title_margin">-16dp</dimen>
99
100    <!-- Home fullscreen media card dimens -->
101    <dimen name="media_card_large_button_icon_padding">25dp</dimen>
102    <dimen name="media_card_panel_button_icon_padding">12dp</dimen>
103    <dimen name="media_card_app_icon_size">32dp</dimen>
104    <dimen name="media_card_horizontal_margin">32dp</dimen>
105    <dimen name="media_card_view_separation_margin">16dp</dimen>
106    <dimen name="media_card_artist_top_margin">4dp</dimen>
107    <dimen name="media_card_album_art_size">200dp</dimen>
108    <dimen name="media_card_small_button_size">40dp</dimen>
109    <dimen name="media_card_large_button_size">80dp</dimen>
110    <dimen name="media_card_bottom_panel_button_size">56dp</dimen>
111    <dimen name="media_card_bottom_panel_height">96dp</dimen>
112    <dimen name="media_card_card_radius">32dp</dimen>
113    <dimen name="media_card_play_button_bottom_margin">120dp</dimen>
114    <dimen name="media_card_play_button_horizontal_margin">8dp</dimen>
115    <dimen name="media_card_margin_panel_open">24dp</dimen>
116    <dimen name="media_card_bottom_panel_margin_top">208dp</dimen>
117    <dimen name="media_card_bottom_panel_animated_final_position">128dp</dimen>
118    <dimen name="media_card_panel_handlebar_offscreen_start_position">1000dp</dimen>
119    <dimen name="media_card_bottom_panel_animated_size">@dimen/media_card_bottom_panel_button_size</dimen>
120    <dimen name="media_card_bottom_panel_animated_horizontal_margin">0dp</dimen>
121    <dimen name="media_card_pill_radius">160dp</dimen>
122    <dimen name="media_card_panel_handlebar_height">8dp</dimen>
123    <dimen name="media_card_panel_handlebar_touch_target_height">60dp</dimen>
124    <dimen name="media_card_panel_handlebar_horizontal_padding">164dp</dimen>
125    <dimen name="media_card_queue_header_app_icon_size">26dp</dimen>
126    <dimen name="media_card_queue_item_thumbnail_size">80dp</dimen>
127    <dimen name="media_card_panel_content_height">416dp</dimen>
128    <dimen name="media_card_title_animated_line_height">36dp</dimen>
129    <dimen name="media_card_title_default_line_height">40dp</dimen>
130    <dimen name="media_card_title_animated_text_size">28sp</dimen>
131    <dimen name="media_card_title_default_text_size">32sp</dimen>
132    <dimen name="media_card_recycler_view_fading_edge_length">80dp</dimen>
133    <dimen name="media_card_history_item_height">112dp</dimen>
134    <dimen name="media_card_history_item_vertical_margin">16dp</dimen>
135    <dimen name="media_card_history_item_icon_size">80dp</dimen>
136    <dimen name="media_card_history_item_thumbnail_size">32dp</dimen>
137    <dimen name="media_card_view_header_icon_size">32dp</dimen>
138</resources>
139