1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  Copyright 2016, 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    <!-- Music -->
19    <item name="media_scrim_alpha" format="float" type="dimen">0.6</item>
20    <item name="media_scrim_darkened_alpha" format="float" type="dimen">0.9</item>
21    <item name="media_background_alpha" format="float" type="dimen">0.78</item>
22    <dimen name="apps_max_content_width">748dp</dimen>
23
24    <!-- Music now playing screen -->
25    <dimen name="music_action_icon_inset">0dp</dimen>
26    <dimen name="music_action_ripple_inset">32dp</dimen>
27
28    <dimen name="missing_permission_icon_size">128dp</dimen>
29
30    <dimen name="controls_tap_target_width">64dp</dimen>
31    <dimen name="controls_tap_target_height">64dp</dimen>
32    <dimen name="controls_margin">46dp</dimen>
33    <dimen name="controls_spacing_inner">16dp</dimen>
34    <dimen name="controls_spacing_outer">81dp</dimen>
35
36    <!-- Playback seekbar height -->
37    <dimen name="playback_seekbar_height">76dp</dimen>
38    <!-- Playback seekbar track height -->
39    <dimen name="playback_seekbar_track_height">4dp</dimen>
40    <!-- Size of the thumb in the playback seekbar -->
41    <dimen name="playback_seekbar_thumb_height">16dp</dimen>
42    <dimen name="playback_seekbar_thumb_width">16dp</dimen>
43    <dimen name="playback_seekbar_thumb_offset">0px</dimen>
44    <!-- Paddings of playback seekbar -->
45    <dimen name="playback_seekbar_padding_x">0dp</dimen>
46    <!-- x-axis margin of playback seekbar -->
47    <dimen name="playback_seekbar_margin_x">@*android:dimen/car_margin</dimen>
48    <!-- Image size used to generate the background -->
49    <dimen name="playback_background_raw_image_size">300px</dimen>
50
51
52    <!-- Blurring radius used to blur background images -->
53    <item name="playback_background_blur_radius" format="float" type="dimen">25</item>
54    <!-- Scale to apply to images before blurring them to create the playback background -->
55    <item name="playback_background_blur_scale" format="float" type="dimen">.5</item>
56    <!-- Size of the album art thumbnail -->
57    <dimen name="playback_album_art_size">226dp</dimen>
58    <!-- End margin of playback queue button -->
59    <dimen name="playback_queue_button_margin_end">@*android:dimen/car_padding_2</dimen>
60
61    <!-- Tab max width -->
62    <dimen name="browse_tab_width">134dp</dimen>
63    <!-- Tab Padding -->
64    <dimen name="browse_tab_padding">@*android:dimen/car_padding_4</dimen>
65    <!-- Browse playback controls size -->
66    <dimen name="browse_playback_controls_height">192dp</dimen>
67    <!-- Selected tab alpha -->
68    <item name="browse_tab_alpha_selected" format="float" type="dimen">1</item>
69    <!-- Unselected tab alpha -->
70    <item name="browse_tab_alpha_unselected" format="float" type="dimen">0.5</item>
71
72    <!-- appbar_view.xml -->
73    <dimen name="appbar_view_nav_button_width">@*android:dimen/car_margin</dimen>
74    <dimen name="appbar_view_tabs_margin_start">@*android:dimen/car_padding_4</dimen>
75    <dimen name="appbar_view_tabs_margin_end">@*android:dimen/car_padding_3</dimen>
76    <dimen name="appbar_view_control_buttons_spacing">@*android:dimen/car_padding_3</dimen>
77    <dimen name="appbar_view_control_buttons_margin_end">@*android:dimen/car_padding_2</dimen>
78    <dimen name="appbar_view_title_margin_start">@dimen/appbar_view_nav_button_width</dimen>
79
80    <!-- browse_state.xml -->
81    <dimen name="browse_state_progress_height">@*android:dimen/car_double_line_list_item_height
82    </dimen>
83    <dimen name="browse_state_error_margin_top">@*android:dimen/car_padding_4</dimen>
84
85    <!-- media_activity.xml -->
86    <dimen name="media_activity_controls_container_padding">@*android:dimen/car_padding_4</dimen>
87    <dimen name="media_activity_controls_margin_start">@*android:dimen/car_padding_4</dimen>
88
89    <!-- BrowseFragment.java -->
90    <!-- Spacer used between the app bar and the top of the browse list/grid -->
91    <dimen name="browse_spacer_height">@*android:dimen/car_padding_2</dimen>
92    <dimen name="grid_item_spacing">@*android:dimen/car_padding_3</dimen>
93
94    <!--  Space between title and subtitle on media browse list/grid  -->
95    <dimen name="media_browse_subtitle_margin_top">@*android:dimen/car_padding_0</dimen>
96
97    <!-- media_browse_grid_[icons_]item.xml -->
98    <dimen name="media_browse_grid_item_padding">0dp</dimen>
99    <dimen name="media_browse_grid_item_margin_bottom">@*android:dimen/car_padding_4</dimen>
100    <dimen name="media_browse_grid_item_text_margin_top">@*android:dimen/car_padding_3</dimen>
101    <dimen name="media_browse_grid_item_background_radius">4dp</dimen>
102
103    <dimen name="media_browse_grid_icons_item_art_size">76dp</dimen>
104
105    <!-- media_browse_header_item.xml -->
106    <dimen name="media_browse_header_item_height">76dp</dimen>
107    <dimen name="media_browse_header_item_margin_x">0dp</dimen>
108
109    <!-- media_browse_list_[icons_]item.xml -->
110    <dimen name="media_browse_list_item_height">116dp</dimen>
111    <dimen name="media_browse_list_item_thumbnail_size">76dp</dimen>
112    <dimen name="media_browse_list_item_text_margin_x">@*android:dimen/car_keyline_4</dimen>
113    <dimen name="media_browse_list_item_icon_margin_start">0dp</dimen>
114    <dimen name="media_browse_list_item_arrow_size">@*android:dimen/car_primary_icon_size</dimen>
115    <dimen name="media_browse_list_item_thumbnail_margin_bottom">4dp</dimen>
116
117    <dimen name="media_browse_list_icons_item_art_size">@*android:dimen/car_primary_icon_size</dimen>
118    <dimen name="media_browse_list_icons_item_art_margin_start">@*android:dimen/car_keyline_1</dimen>
119    <dimen name="media_browse_list_icons_item_text_margin_x">@*android:dimen/car_keyline_3</dimen>
120
121    <!-- media_browse_panel_item.xml -->
122    <dimen name="media_browse_panel_item_height">@*android:dimen/car_single_line_list_item_height
123    </dimen>
124    <dimen name="media_browse_panel_item_margin_x">@*android:dimen/car_keyline_1</dimen>
125    <dimen name="media_browse_panel_item_icon_size">@*android:dimen/car_primary_icon_size</dimen>
126    <dimen name="media_browse_panel_item_icon_margin_end">32dp</dimen>
127    <dimen name="media_browse_panel_item_title_margin_bottom">2dp</dimen>
128
129    <!-- media_browse_icon.xml-->
130    <dimen name="media_browse_indicator_size">25dp</dimen>
131
132    <!-- metadata_normal.xml -->
133    <dimen name="metadata_title_subtitle_margin">@*android:dimen/car_padding_2</dimen>
134    <dimen name="metadata_subtitles_margin">@*android:dimen/car_padding_2</dimen>
135    <dimen name="art_metadata_margin">48dp</dimen>
136
137    <!-- browse_playback_background.xml -->
138    <dimen name="browse_playback_background_radius">@*android:dimen/car_radius_2</dimen>
139    <dimen name="browse_playback_album_art_margin_start">@*android:dimen/car_padding_2</dimen>
140    <dimen name="browse_playback_album_art_margin_end">@*android:dimen/car_padding_4</dimen>
141    <dimen name="browse_playback_text_margin_bottom">@*android:dimen/car_padding_1</dimen>
142
143    <!-- tab_view.xml -->
144    <dimen name="tab_view_icon_size">@*android:dimen/car_primary_icon_size</dimen>
145    <dimen name="tab_view_icon_margin_bottom">@*android:dimen/car_padding_1</dimen>
146
147    <!-- fragment_error.xml -->
148    <dimen name="fragment_error_button_margin_top">@*android:dimen/car_padding_5</dimen>
149    <dimen name="fragment_error_message_margin_x">@*android:dimen/car_margin</dimen>
150
151    <!-- fragment_playback.xml -->
152    <!-- The length of playback queue fading edge, equals 0.1 * window_height. -->
153    <dimen name="queue_fading_edge_length">81dp</dimen>
154    <dimen name="fragment_metadata_queue_divider_margin">@*android:dimen/car_keyline_1</dimen>
155    <dimen name="fragment_playback_queue_overlap_top">@*android:dimen/car_padding_4</dimen>
156    <dimen name="fragment_playback_queue_overlap_bottom">@*android:dimen/car_padding_4</dimen>
157    <dimen name="fragment_metadata_margin_x">@*android:dimen/car_margin</dimen>
158    <dimen name="playback_title_margin_end">@*android:dimen/car_padding_3</dimen>
159
160    <!-- PlaybackFragment.java -->
161    <dimen name="playback_queue_list_padding_top">@*android:dimen/car_padding_4</dimen>
162
163    <!-- queue_list_item.xml -->
164    <dimen name="queue_list_item_height">116dp</dimen>
165    <dimen name="queue_list_item_padding_x">@*android:dimen/car_keyline_1</dimen>
166    <dimen name="queue_list_item_title_time_margin">@*android:dimen/car_padding_4</dimen>
167    <dimen name="queue_list_item_thumbnail_container_width">@*android:dimen/car_keyline_4</dimen>
168    <dimen name="queue_list_item_thumbnail_size">76dp</dimen>
169    <dimen name="queue_list_item_spacer_width">@dimen/queue_list_item_padding_x</dimen>
170
171    <!-- fragment_browse.xml -->
172    <dimen name="browse_fragment_bottom_padding">@dimen/minimized_control_bar_height</dimen>
173    <item name="playback_queue_background_alpha" format="float" type="dimen">0.6</item>
174
175    <!-- fragment_search.xml -->
176    <!-- TODO: Replace this once CarUiRecyclerView is installed -->
177    <dimen name="search_fragment_top_padding">@dimen/car_ui_toolbar_row_height</dimen>
178    <dimen name="search_fragment_bottom_padding">@dimen/minimized_control_bar_height</dimen>
179
180    <!-- ic_queue_button.xml -->
181    <dimen name="queue_button_background_size">54dp</dimen>
182
183</resources>
184