1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  ~ Copyright (C) 2015 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    <!-- Main menu -->
20    <dimen name="menu_margin_top">@dimen/menu_enter_offset_y_negative</dimen>
21    <dimen name="menu_margin_bottom_min">27dp</dimen>
22    <dimen name="menu_row_align_from_bottom">124dp</dimen>
23    <dimen name="menu_row_title_width">300dp</dimen>
24    <dimen name="menu_row_title_height">48dp</dimen>
25    <dimen name="menu_row_title_transform_pivot_x">0dp</dimen>
26    <dimen name="menu_padding_start">56dp</dimen>
27    <dimen name="menu_padding_end">56dp</dimen>
28    <!-- This should be changed as the font change -->
29    <dimen name="menu_row_title_text_descender_height">4.5dp</dimen>
30    <!-- This value is 16dp in the redlines. Considering the descenders, it needs to be subtracted
31         by "menu_row_text_descender_height". -->
32    <!-- NOTE: The top and bottom padding sizes should be bigger than or equals to 8 dp.
33         otherwise it will make a clipping issue. See b/18632820 for more details. -->
34    <dimen name="menu_row_contents_padding_top">11.5dp</dimen>
35    <dimen name="menu_row_contents_padding_bottom_max">48dp</dimen>
36    <dimen name="menu_list_margin_top">-1.5dp</dimen>
37    <!-- NOTE: The top padding size should be bigger than or equals to 8 dp.
38         otherwise it will make a clipping issue. See b/18632820 for more details. -->
39    <dimen name="menu_list_padding_top">8dp</dimen>
40    <dimen name="menu_row_title_text_size_selected">20sp</dimen>
41    <dimen name="menu_row_title_text_size_deselected">16sp</dimen>
42    <dimen name="menu_inter_card_spacing">8dp</dimen>
43    <dimen name="menu_enter_offset_y">32dp</dimen>
44    <dimen name="menu_enter_offset_y_negative">-32dp</dimen>
45    <dimen name="menu_exit_offset_y">32dp</dimen>
46    <dimen name="menu_row_scroll_up_anim_offset">32dp</dimen>
47
48    <!-- Play controls -->
49    <dimen name="play_controls_width">696dp</dimen>
50    <dimen name="play_controls_height">88dp</dimen>
51    <dimen name="play_controls_progress_height">4dp</dimen>
52    <dimen name="play_controls_button_background_width">90dp</dimen>
53    <dimen name="play_controls_button_background_height">90dp</dimen>
54    <dimen name="play_controls_button_width">90dp</dimen>
55    <dimen name="play_controls_button_height">64dp</dimen>
56    <dimen name="play_controls_button_start_margin">6dp</dimen>
57    <dimen name="play_controls_time_width">80dp</dimen>
58    <dimen name="play_controls_time_text_size">12sp</dimen>
59    <!-- The margin is different from the redlines due to the descenders.
60         This should be changed as the font change. -->
61    <dimen name="play_controls_time_bottom_margin">9dp</dimen>
62    <dimen name="play_controls_time_indicator_top_margin">-4dp</dimen>
63    <dimen name="play_controls_time_indicator_width">12dp</dimen>
64    <dimen name="play_controls_time_indicator_height">12dp</dimen>
65    <dimen name="play_controls_program_time_margin_top">8dp</dimen>
66    <dimen name="play_controls_program_time_margin_start">16dp</dimen>
67    <dimen name="play_controls_program_time_margin_end">16dp</dimen>
68    <dimen name="play_controls_rec_time_text_size">12sp</dimen>
69    <dimen name="play_controls_unavailable_message_text_size">14sp</dimen>
70
71    <!-- Base card -->
72    <dimen name="card_layout_width">142dp</dimen>
73    <!-- NOTE: card_layout_height MUST be card_image_layout_height + card_meta_layout_height -->
74    <dimen name="card_layout_height">108dp</dimen>
75    <!-- NOTE: card_layout_height_extended MUST be card_image_layout_height +
76         card_meta_layout_height_extended -->
77    <dimen name="card_layout_height_extended">121.5dp</dimen>
78    <dimen name="card_image_layout_width">@dimen/card_layout_width</dimen>
79    <dimen name="card_image_layout_height">80dp</dimen>
80    <dimen name="card_image_gradient_padding_top">40dp</dimen>
81    <dimen name="card_meta_layout_height">28dp</dimen>
82    <dimen name="card_meta_layout_height_extended">41.5dp</dimen>
83    <dimen name="card_meta_padding_start">12dp</dimen>
84    <dimen name="card_meta_padding_end">12dp</dimen>
85    <dimen name="card_meta_padding_top">5dp</dimen>
86    <dimen name="card_elevation_normal">4dp</dimen>
87
88    <!-- Channel card -->
89    <dimen name="channel_card_progress_bar_height">2dp</dimen>
90    <dimen name="channel_card_elevation_focused">12dp</dimen>
91    <dimen name="channel_card_round_radius">2dp</dimen>
92
93    <!--  App link card -->
94    <dimen name="app_link_card_icon_width">16dp</dimen>
95    <dimen name="app_link_card_icon_height">16dp</dimen>
96    <dimen name="app_link_card_icon_padding">4dp</dimen>
97
98    <!-- Action card -->
99    <dimen name="action_card_width">142dp</dimen>
100    <dimen name="action_card_height">96dp</dimen>
101    <dimen name="action_card_icon_width">32dp</dimen>
102    <dimen name="action_card_icon_height">32dp</dimen>
103    <dimen name="action_card_icon_padding">10dp</dimen>
104    <dimen name="action_card_padding">12dp</dimen>
105    <dimen name="action_card_label_font_size">16sp</dimen>
106    <dimen name="action_card_state_font_size">12sp</dimen>
107
108    <!-- Side panel -->
109    <dimen name="side_panel_width">360dp</dimen>
110    <dimen name="side_panel_elevation">8dp</dimen>
111    <dimen name="side_panel_padding_start">32dp</dimen>
112    <dimen name="side_panel_padding_end">56dp</dimen>
113    <dimen name="side_panel_header_height">87dp</dimen>
114    <dimen name="side_panel_header_padding_top">27dp</dimen>
115    <dimen name="side_panel_header_elevation">4dp</dimen>
116    <dimen name="side_panel_header_text_size">24sp</dimen>
117    <dimen name="side_panel_list_padding_top">0dp</dimen>
118    <dimen name="side_panel_list_padding_bottom">48dp</dimen>
119    <dimen name="side_panel_list_vertical_margin">0dp</dimen>
120    <dimen name="side_panel_enter_offset_x">100dp</dimen>
121    <dimen name="side_panel_exit_offset_x">100dp</dimen>
122    <dimen name="side_panel_fragment_enter_offset_x">32dp</dimen>
123    <dimen name="side_panel_fragment_exit_offset_x">-32dp</dimen>
124    <dimen name="side_panel_fragment_pop_enter_offset_x">
125        @dimen/side_panel_fragment_exit_offset_x</dimen>
126    <dimen name="side_panel_fragment_pop_exit_offset_x">
127        @dimen/side_panel_fragment_enter_offset_x</dimen>
128
129    <!-- More options -->
130    <dimen name="option_item_height">48dp</dimen>
131    <dimen name="option_item_text_size">16sp</dimen>
132    <dimen name="option_item_text_margin_top">2.5dp</dimen>
133    <dimen name="option_item_secondary_text_size">12sp</dimen>
134    <dimen name="option_item_secondary_text_spacing">2sp</dimen>
135    <dimen name="option_item_check_box_margin_top">7dp</dimen>
136    <dimen name="option_item_common_padding_top">11dp</dimen>
137    <dimen name="option_item_common_padding_bottom">12.5dp</dimen>
138    <dimen name="option_item_compound_button_width">56dp</dimen>
139    <dimen name="option_item_compound_button_padding_top">16dp</dimen>
140    <dimen name="option_item_divider_height">1dp</dimen>
141    <dimen name="option_item_divider_margin_top">4dp</dimen>
142    <dimen name="option_item_divider_margin_bottom">3dp</dimen>
143    <dimen name="option_item_divider_text_size">14sp</dimen>
144    <dimen name="option_item_divider_text_margin_top">18dp</dimen>
145    <dimen name="option_item_channel_check_spacing">12dp</dimen>
146
147    <!-- Program guide -->
148    <dimen name="program_guide_shift_start_to_end_x">238dp</dimen>
149    <dimen name="program_guide_shift_end_to_start_x">-238dp</dimen>
150    <dimen name="program_guide_side_panel_width">270dp</dimen>
151    <dimen name="program_guide_side_panel_margin_start">-238dp</dimen>
152    <dimen name="program_guide_side_panel_padding_start">56dp</dimen>
153    <dimen name="program_guide_side_panel_padding_end">8dp</dimen>
154    <dimen name="program_guide_side_panel_item_width">206dp</dimen>
155    <dimen name="program_guide_side_panel_fading_edge">12dp</dimen>
156    <dimen name="program_guide_side_panel_elevation">8dp</dimen>
157    <dimen name="program_guide_side_panel_alignment_y">167dp</dimen>
158    <dimen name="program_guide_side_panel_row_height">48dp</dimen>
159    <dimen name="program_guide_side_panel_row_pivot_x">0dp</dimen>
160    <dimen name="program_guide_side_panel_row_pivot_y">15dp</dimen>
161    <dimen name="program_guide_side_panel_text_size">20sp</dimen>
162    <dimen name="program_guide_side_panel_exit_x">-32dp</dimen>
163    <dimen name="program_guide_table_elevation">8dp</dimen>
164    <dimen name="program_guide_table_background_round_radius_left">2dp</dimen>
165    <dimen name="program_guide_table_background_round_radius_right">0dp</dimen>
166    <dimen name="program_guide_table_margin_top">27dp</dimen>
167    <dimen name="program_guide_table_margin_bottom">27dp</dimen>
168    <dimen name="program_guide_table_margin_start">56dp</dimen>
169    <dimen name="program_guide_table_header_column_width">232dp</dimen>
170    <dimen name="program_guide_table_header_column_padding_start">16dp</dimen>
171    <dimen name="program_guide_table_header_column_padding_end">16dp</dimen>
172    <dimen name="program_guide_table_header_column_channel_number_width">84dp</dimen>
173    <dimen name="program_guide_table_header_column_channel_number_large_font_size">32sp</dimen>
174    <dimen name="program_guide_table_header_column_channel_number_small_font_size">24sp</dimen>
175    <dimen name="program_guide_table_header_column_channel_number_margin_start">28dp</dimen>
176    <dimen name="program_guide_table_header_column_channel_name_width">88dp</dimen>
177    <dimen name="program_guide_table_header_column_channel_name_font_size">14sp</dimen>
178    <dimen name="program_guide_table_header_column_channel_name_margin_start">112dp</dimen>
179    <dimen name="program_guide_table_header_column_channel_logo_width">70dp</dimen>
180    <dimen name="program_guide_table_header_column_channel_logo_height">40dp</dimen>
181    <dimen name="program_guide_table_header_column_channel_logo_margin_top">12dp</dimen>
182    <dimen name="program_guide_table_header_column_channel_block_width">
183        @dimen/program_guide_table_header_column_channel_block_height</dimen>
184    <dimen name="program_guide_table_header_column_channel_block_height">
185        @dimen/program_guide_table_header_column_channel_logo_height</dimen>
186    <dimen name="program_guide_table_header_column_channel_block_margin_top">
187        @dimen/program_guide_table_header_column_channel_logo_margin_top</dimen>
188    <dimen name="program_guide_table_header_column_input_logo_width">18dp</dimen>
189    <dimen name="program_guide_table_header_column_input_logo_height">
190        @dimen/program_guide_table_header_column_input_logo_width</dimen>
191    <dimen name="program_guide_table_header_column_input_logo_margin_top">23dp</dimen>
192    <dimen name="program_guide_table_header_row_height">40dp</dimen>
193    <dimen name="program_guide_table_header_row_font_size">16sp</dimen>
194    <dimen name="program_guide_table_header_row_fade_length">24dp</dimen>
195    <dimen name="program_guide_table_header_row_overlap">-52dp</dimen>
196    <dimen name="program_guide_table_item_row_height">64dp</dimen>
197    <dimen name="program_guide_table_item_padding">16dp</dimen>
198    <dimen name="program_guide_table_item_program_title_font_size">14sp</dimen>
199    <dimen name="program_guide_table_item_program_episode_title_font_size">12sp</dimen>
200    <dimen name="program_guide_table_item_visible_threshold">48dp</dimen>
201    <dimen name="program_guide_table_detail_height">112dp</dimen>
202    <dimen name="program_guide_table_detail_padding">16dp</dimen>
203    <dimen name="program_guide_table_detail_padding_end">56dp</dimen>
204    <dimen name="program_guide_table_detail_padding_negative">-16dp</dimen>
205    <dimen name="program_guide_table_detail_image_width">142dp</dimen>
206    <dimen name="program_guide_table_detail_image_height">80dp</dimen>
207    <dimen name="program_guide_table_detail_image_margin_end">16dp</dimen>
208    <dimen name="program_guide_table_detail_block_width">12dp</dimen>
209    <dimen name="program_guide_table_detail_block_height">16dp</dimen>
210    <dimen name="program_guide_table_detail_block_margin_end">8dp</dimen>
211    <dimen name="program_guide_table_detail_title_margin_top">-1dp</dimen>
212    <dimen name="program_guide_table_detail_title_text_size">16sp</dimen>
213    <dimen name="program_guide_table_detail_episode_title_text_size">16sp</dimen>
214    <dimen name="program_guide_table_detail_time_margin_top">22dp</dimen>
215    <dimen name="program_guide_table_detail_time_text_size">12sp</dimen>
216    <dimen name="program_guide_table_detail_meta_margin_start">12dp</dimen>
217    <dimen name="program_guide_table_detail_meta_margin_bottom">4sp</dimen>
218    <dimen name="program_guide_table_detail_desc_margin_top">46dp</dimen>
219    <dimen name="program_guide_table_detail_desc_text_size">12sp</dimen>
220    <dimen name="program_guide_table_width_per_hour">384dp</dimen>
221    <dimen name="program_guide_table_exit_x">368dp</dimen>
222
223    <!-- TV view -->
224    <dimen name="tvview_block_icon_width">200dp</dimen>
225    <dimen name="tvview_block_icon_height">120dp</dimen>
226    <dimen name="tvview_block_vertical_spacing">15dp</dimen>
227    <dimen name="tvview_block_text_size">16sp</dimen>
228    <dimen name="shrunken_tvview_block_icon_width">60dp</dimen>
229    <dimen name="shrunken_tvview_block_icon_height">60dp</dimen>
230    <dimen name="shrunken_tvview_block_vertical_spacing">24dp</dimen>
231
232    <!-- PIP view -->
233    <dimen name="pipview_margin_horizontal">56dp</dimen>
234    <dimen name="pipview_margin_top">27dp</dimen>
235    <dimen name="pipview_margin_bottom">27dp</dimen>
236    <dimen name="pipview_small_size_width">240dp</dimen>
237    <dimen name="pipview_small_size_height">135dp</dimen>
238    <dimen name="pipview_large_size_width">384dp</dimen>
239    <dimen name="pipview_large_size_height">216dp</dimen>
240
241    <!-- PAP View -->
242    <dimen name="papview_margin_horizontal">20dp</dimen>
243    <dimen name="papview_spacing">24dp</dimen>
244
245    <!-- Edit channels -->
246    <dimen name="shrunken_tvview_margin_start">56dp</dimen>
247    <dimen name="shrunken_tvview_margin_end">32dp</dimen>
248    <dimen name="shrunken_tvview_height">288dp</dimen>
249
250    <!-- Channel banner -->
251    <dimen name="channel_banner_width">696dp</dimen>
252    <dimen name="channel_banner_channel_number_large_text_size">54sp</dimen>
253    <dimen name="channel_banner_channel_number_medium_text_size">44sp</dimen>
254    <dimen name="channel_banner_channel_number_small_text_size">34sp</dimen>
255    <dimen name="channel_banner_channel_number_large_margin_top">-19sp</dimen>
256    <dimen name="channel_banner_channel_number_medium_margin_top">-15.5sp</dimen>
257    <dimen name="channel_banner_channel_number_small_margin_top">-11.5sp</dimen>
258    <dimen name="channel_banner_channel_logo_width">72dp</dimen>
259    <dimen name="channel_banner_channel_logo_height">44dp</dimen>
260    <dimen name="channel_banner_channel_logo_margin_start">8dp</dimen>
261    <dimen name="channel_banner_input_logo_size">16dp</dimen>
262    <dimen name="channel_banner_program_description_width">536dp</dimen>
263    <dimen name="channel_banner_program_large_text_size">28sp</dimen>
264    <dimen name="channel_banner_program_medium_text_size">20sp</dimen>
265    <dimen name="channel_banner_program_large_margin_top">-10sp</dimen>
266    <dimen name="channel_banner_program_medium_margin_top">-7sp</dimen>
267    <dimen name="channel_banner_anchor_one_line_y">44dp</dimen>
268    <dimen name="channel_banner_anchor_two_line_y">64dp</dimen>
269    <dimen name="channel_name_max_width">100dp</dimen>
270    <dimen name="channel_banner_small_text_size">14sp</dimen>
271    <dimen name="channel_banner_track_meta_text_size">8sp</dimen>
272    <dimen name="channel_banner_enter_offset_y">16dp</dimen>
273    <dimen name="channel_banner_exit_offset_y">16dp</dimen>
274
275    <!-- Input banner -->
276    <dimen name="input_banner_item_height">48dp</dimen>
277
278    <!-- Keypad channel switch -->
279    <dimen name="keypad_channel_switch_channel_number_text_size">
280        @dimen/channel_banner_channel_number_large_text_size</dimen>
281    <dimen name="keypad_channel_switch_channel_number_margin_top">
282        @dimen/channel_banner_channel_number_large_margin_top</dimen>
283    <dimen name="keypad_channel_switch_item_height">48dp</dimen>
284    <!-- A height of Keypad channel switch view without channel_list -->
285    <dimen name="keypad_channel_switch_base_height">84dp</dimen>
286
287    <!-- Recommendation cards in LeanbackLauncher -->
288    <!-- These values should be synchronized with
289         //vendor/unbundled_google/packages/LeanbackLauncher/res/values/dimens.xml -->
290    <dimen name="notif_card_img_height">176dp</dimen>
291    <dimen name="notif_card_img_min_width">117dp</dimen>
292    <dimen name="notif_card_img_max_width">235dp</dimen>
293
294    <dimen name="notif_ch_logo_max_width">64dp</dimen>
295    <dimen name="notif_ch_logo_max_height">44dp</dimen>
296    <dimen name="notif_ch_logo_padding_start">12dp</dimen>
297    <dimen name="notif_ch_logo_padding_bottom">12dp</dimen>
298
299    <!-- PIN dialog -->
300    <dimen name="pin_dialog_width">380dp</dimen>
301    <dimen name="pin_dialog_text_size">16sp</dimen>
302    <dimen name="pin_dialog_text_line_spacing">5sp</dimen>
303    <dimen name="pin_dialog_title_width">300dp</dimen>
304    <dimen name="pin_number_picker_text_size">24sp</dimen>
305    <dimen name="pin_number_picker_text_view_width">48dp</dimen>
306    <dimen name="pin_number_picker_text_view_height">48dp</dimen>
307
308    <!-- Onboarding screens -->
309    <eat-comment />
310    <dimen name="onboarding_welcome_content_margin_top">67dp</dimen>
311    <dimen name="onboarding_welcome_content_margin_bottom">50dp</dimen>
312    <dimen name="onboarding_welcome_shadow_height">9dp</dimen>
313    <dimen name="onboarding_welcome_shadow_margin_top">16dp</dimen>
314    <!-- This value is lb_onboarding_content_margin_bottom(98dp)
315         + lb_onboarding_welcome_content_margin_bottom(50dp)
316         + lb_onboarding_welcome_shadow_height(9dp)
317         + lb_onboarding_welcome_shadow_margin_top(16dp)
318         + margin from tv_container(70dp) -->
319    <dimen name="onboarding_welcome_arrow_margin_bottom">243dp</dimen>
320
321    <!-- DVR screens -->
322    <eat-comment />
323    <dimen name="dvr_card_layout_width">200dp</dimen>
324    <dimen name="dvr_card_layout_height">200dp</dimen>
325    <!-- card width - margin-->
326    <dimen name="dvr_card_image_layout_width">196dp</dimen>
327    <dimen name="dvr_card_image_layout_height">140dp</dimen>
328
329</resources>
330