You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

398 lines
23 KiB

<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright (C) 2015 The Android Open Source Project
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<resources>
<!-- from https://developer.android.com/training/tv/start/layouts.html#structure -->
<dimen name="vertical_overscan_safe_margin">27dp</dimen>
<dimen name="horizontal_overscan_safe_margin">48dp</dimen>
<!-- Main menu -->
<dimen name="menu_margin_top">-32dp</dimen>
<dimen name="menu_margin_bottom_min">27dp</dimen>
<dimen name="menu_row_align_from_bottom">124dp</dimen>
<dimen name="menu_row_title_width">300dp</dimen>
<dimen name="menu_row_title_height">48dp</dimen>
<dimen name="menu_row_title_transform_pivot_x">0dp</dimen>
<dimen name="menu_padding_start">56dp</dimen>
<dimen name="menu_padding_end">56dp</dimen>
<!-- This should be changed as the font change -->
<dimen name="menu_row_title_text_descender_height">4.5dp</dimen>
<!-- This value is 16dp in the redlines. Considering the descenders, it needs to be subtracted
by "menu_row_text_descender_height". -->
<!-- NOTE: The top and bottom padding sizes should be bigger than or equals to 8 dp.
otherwise it will make a clipping issue. See b/18632820 for more details. -->
<dimen name="menu_row_contents_padding_top">11.5dp</dimen>
<dimen name="menu_row_contents_padding_bottom_max">48dp</dimen>
<dimen name="menu_list_margin_top">-1.5dp</dimen>
<!-- NOTE: The top padding size should be bigger than or equals to 8 dp.
otherwise it will make a clipping issue. See b/18632820 for more details. -->
<dimen name="menu_list_padding_top">8dp</dimen>
<dimen name="menu_row_title_text_size_selected">20sp</dimen>
<dimen name="menu_row_title_text_size_deselected">16sp</dimen>
<dimen name="menu_inter_card_spacing">8dp</dimen>
<dimen name="menu_enter_offset_y">32dp</dimen>
<dimen name="menu_exit_offset_y">32dp</dimen>
<dimen name="menu_row_scroll_up_anim_offset">32dp</dimen>
<!-- Play controls -->
<dimen name="play_controls_width">696dp</dimen>
<dimen name="play_controls_height">88dp</dimen>
<dimen name="play_controls_progress_height">4dp</dimen>
<dimen name="play_controls_button_background_width">90dp</dimen>
<dimen name="play_controls_button_background_height">90dp</dimen>
<dimen name="play_controls_button_width">90dp</dimen>
<dimen name="play_controls_button_height">64dp</dimen>
<dimen name="play_controls_button_normal_margin">3dp</dimen>
<dimen name="play_controls_button_compact_margin">-3dp</dimen>
<dimen name="play_controls_time_width">80dp</dimen>
<dimen name="play_controls_time_text_size">12sp</dimen>
<!-- The margin is different from the redlines due to the descenders.
This should be changed as the font change. -->
<dimen name="play_controls_time_bottom_margin">9dp</dimen>
<dimen name="play_controls_time_indicator_top_margin">-4dp</dimen>
<dimen name="play_controls_time_indicator_width">12dp</dimen>
<dimen name="play_controls_time_indicator_height">12dp</dimen>
<dimen name="play_controls_program_time_margin_top">8dp</dimen>
<dimen name="play_controls_program_time_margin_start">16dp</dimen>
<dimen name="play_controls_program_time_margin_end">16dp</dimen>
<dimen name="play_controls_rec_time_text_size">12sp</dimen>
<dimen name="play_controls_unavailable_message_text_size">14sp</dimen>
<!-- Base card -->
<dimen name="card_layout_width">142dp</dimen>
<!-- NOTE: card_layout_height MUST be card_image_layout_height + card_meta_layout_height -->
<dimen name="card_layout_height">108dp</dimen>
<!-- NOTE: card_layout_height_extended MUST be card_image_layout_height +
card_meta_layout_height_extended -->
<dimen name="card_layout_height_extended">121.5dp</dimen>
<dimen name="card_image_layout_width">@dimen/card_layout_width</dimen>
<dimen name="card_image_layout_height">80dp</dimen>
<dimen name="card_image_gradient_padding_top">40dp</dimen>
<dimen name="card_meta_layout_height">28dp</dimen>
<dimen name="card_meta_layout_height_extended">41.5dp</dimen>
<dimen name="card_meta_padding_start">12dp</dimen>
<dimen name="card_meta_padding_end">12dp</dimen>
<dimen name="card_meta_padding_top">5dp</dimen>
<dimen name="card_elevation_normal">4dp</dimen>
<!-- Channel card -->
<dimen name="channel_card_progress_bar_height">2dp</dimen>
<dimen name="channel_card_elevation_focused">12dp</dimen>
<dimen name="channel_card_round_radius">2dp</dimen>
<!-- App link card -->
<dimen name="app_link_card_icon_width">16dp</dimen>
<dimen name="app_link_card_icon_height">16dp</dimen>
<dimen name="app_link_card_icon_padding">4dp</dimen>
<!-- Action card -->
<dimen name="action_card_width">142dp</dimen>
<dimen name="action_card_height">96dp</dimen>
<dimen name="action_card_icon_width">32dp</dimen>
<dimen name="action_card_icon_height">32dp</dimen>
<dimen name="action_card_icon_padding">10dp</dimen>
<dimen name="action_card_label_font_size">16sp</dimen>
<dimen name="action_card_state_font_size">12sp</dimen>
<!-- Side panel -->
<dimen name="side_panel_width">360dp</dimen>
<dimen name="side_panel_elevation">8dp</dimen>
<dimen name="side_panel_padding_start">32dp</dimen>
<dimen name="side_panel_padding_end">56dp</dimen>
<dimen name="side_panel_header_height">87dp</dimen>
<dimen name="side_panel_header_padding_top">27dp</dimen>
<dimen name="side_panel_header_elevation">4dp</dimen>
<dimen name="side_panel_header_text_size">24sp</dimen>
<dimen name="side_panel_list_padding_bottom">48dp</dimen>
<dimen name="side_panel_list_vertical_margin">0dp</dimen>
<dimen name="side_panel_enter_offset_x">100dp</dimen>
<dimen name="side_panel_exit_offset_x">100dp</dimen>
<dimen name="side_panel_fragment_enter_offset_x">32dp</dimen>
<dimen name="side_panel_fragment_exit_offset_x">-32dp</dimen>
<dimen name="side_panel_fragment_pop_enter_offset_x">
@dimen/side_panel_fragment_exit_offset_x</dimen>
<dimen name="side_panel_fragment_pop_exit_offset_x">
@dimen/side_panel_fragment_enter_offset_x</dimen>
<!-- More options -->
<dimen name="option_item_height">48dp</dimen>
<dimen name="option_item_text_size">16sp</dimen>
<dimen name="option_item_text_margin_top">2.5dp</dimen>
<dimen name="option_item_secondary_text_size">12sp</dimen>
<dimen name="option_item_secondary_text_spacing">2sp</dimen>
<dimen name="option_item_check_box_margin_top">7dp</dimen>
<dimen name="option_item_common_padding_top">11dp</dimen>
<dimen name="option_item_common_padding_bottom">12.5dp</dimen>
<dimen name="option_item_compound_button_width">56dp</dimen>
<dimen name="option_item_compound_button_padding_top">16dp</dimen>
<dimen name="option_item_divider_height">1dp</dimen>
<dimen name="option_item_divider_margin_top">4dp</dimen>
<dimen name="option_item_divider_margin_bottom">3dp</dimen>
<dimen name="option_item_divider_text_size">14sp</dimen>
<dimen name="option_item_divider_text_margin_top">18dp</dimen>
<dimen name="option_item_channel_check_spacing">12dp</dimen>
<!-- Program guide -->
<dimen name="program_guide_shift_start_to_end_x">238dp</dimen>
<dimen name="program_guide_side_panel_width">270dp</dimen>
<dimen name="program_guide_side_panel_margin_start">-238dp</dimen>
<dimen name="program_guide_side_panel_padding_start">56dp</dimen>
<dimen name="program_guide_side_panel_padding_end">8dp</dimen>
<dimen name="program_guide_side_panel_item_width">206dp</dimen>
<dimen name="program_guide_side_panel_fading_edge">12dp</dimen>
<dimen name="program_guide_side_panel_elevation">8dp</dimen>
<dimen name="program_guide_side_panel_alignment_y">167dp</dimen>
<dimen name="program_guide_side_panel_row_height">48dp</dimen>
<dimen name="program_guide_side_panel_row_pivot_x">0dp</dimen>
<dimen name="program_guide_side_panel_row_pivot_y">15dp</dimen>
<dimen name="program_guide_side_panel_text_size">20sp</dimen>
<dimen name="program_guide_side_panel_exit_x">-32dp</dimen>
<dimen name="program_guide_table_elevation">8dp</dimen>
<dimen name="program_guide_table_background_round_radius_left">2dp</dimen>
<dimen name="program_guide_table_background_round_radius_right">0dp</dimen>
<dimen name="program_guide_table_margin_top">27dp</dimen>
<dimen name="program_guide_table_margin_bottom">27dp</dimen>
<dimen name="program_guide_table_margin_start">56dp</dimen>
<dimen name="program_guide_table_header_column_width">232dp</dimen>
<dimen name="program_guide_table_header_column_padding_start">16dp</dimen>
<dimen name="program_guide_table_header_column_padding_end">16dp</dimen>
<dimen name="program_guide_table_header_column_channel_number_width">84dp</dimen>
<dimen name="program_guide_table_header_column_channel_number_large_font_size">32sp</dimen>
<dimen name="program_guide_table_header_column_channel_number_small_font_size">24sp</dimen>
<dimen name="program_guide_table_header_column_channel_number_margin_start">28dp</dimen>
<dimen name="program_guide_table_header_column_channel_name_width">88dp</dimen>
<dimen name="program_guide_table_header_column_channel_name_font_size">14sp</dimen>
<dimen name="program_guide_table_header_column_channel_name_margin_start">112dp</dimen>
<dimen name="program_guide_table_header_column_channel_logo_width">70dp</dimen>
<dimen name="program_guide_table_header_column_channel_logo_height">40dp</dimen>
<dimen name="program_guide_table_header_column_channel_logo_margin_top">12dp</dimen>
<dimen name="program_guide_table_header_column_channel_block_width">
@dimen/program_guide_table_header_column_channel_block_height</dimen>
<dimen name="program_guide_table_header_column_channel_block_height">
@dimen/program_guide_table_header_column_channel_logo_height</dimen>
<dimen name="program_guide_table_header_column_channel_block_margin_top">
@dimen/program_guide_table_header_column_channel_logo_margin_top</dimen>
<dimen name="program_guide_table_header_column_input_logo_width">18dp</dimen>
<dimen name="program_guide_table_header_column_input_logo_height">
@dimen/program_guide_table_header_column_input_logo_width</dimen>
<dimen name="program_guide_table_header_column_input_logo_margin_top">23dp</dimen>
<dimen name="program_guide_table_header_row_height">40dp</dimen>
<dimen name="program_guide_table_header_row_font_size">16sp</dimen>
<dimen name="program_guide_table_header_row_fade_length">24dp</dimen>
<dimen name="program_guide_table_header_row_overlap">-72dp</dimen>
<dimen name="program_guide_table_item_row_height">64dp</dimen>
<dimen name="program_guide_table_item_padding">16dp</dimen>
<dimen name="program_guide_table_item_compound_drawable_padding">8dp</dimen>
<dimen name="program_guide_table_item_program_title_font_size">14sp</dimen>
<dimen name="program_guide_table_item_program_episode_title_font_size">12sp</dimen>
<dimen name="program_guide_table_item_visible_threshold">48dp</dimen>
<dimen name="program_guide_table_detail_height">112dp</dimen>
<dimen name="program_guide_table_detail_padding">16dp</dimen>
<dimen name="program_guide_table_detail_padding_end">56dp</dimen>
<dimen name="program_guide_table_detail_padding_negative">-16dp</dimen>
<dimen name="program_guide_table_detail_image_width">142dp</dimen>
<dimen name="program_guide_table_detail_image_height">80dp</dimen>
<dimen name="program_guide_table_detail_image_margin_end">16dp</dimen>
<dimen name="program_guide_table_detail_block_width">12dp</dimen>
<dimen name="program_guide_table_detail_block_height">16dp</dimen>
<dimen name="program_guide_table_detail_block_margin_end">8dp</dimen>
<dimen name="program_guide_table_detail_title_margin_top">-1dp</dimen>
<dimen name="program_guide_table_detail_title_text_size">16sp</dimen>
<dimen name="program_guide_table_detail_episode_title_text_size">16sp</dimen>
<dimen name="program_guide_table_detail_time_margin_top">22dp</dimen>
<dimen name="program_guide_table_detail_time_text_size">12sp</dimen>
<dimen name="program_guide_table_detail_meta_margin_start">20dp</dimen>
<dimen name="program_guide_table_detail_meta_margin_bottom">2dp</dimen>
<dimen name="program_guide_table_detail_dvr_text_size">12sp</dimen>
<dimen name="program_guide_table_detail_dvr_margin_start">16dp</dimen>
<dimen name="program_guide_table_detail_dvr_margin_start_without_track">0dp</dimen>
<dimen name="program_guide_table_detail_dvr_icon_margin_top">0.5dp</dimen>
<dimen name="program_guide_table_detail_dvr_drawable_padding">4dp</dimen>
<dimen name="program_guide_table_detail_critic_scores_margin_start">6dp</dimen>
<dimen name="program_guide_table_detail_critic_score_margin_start">6dp</dimen>
<dimen name="program_guide_table_detail_critic_score_logo_dimen">10dp</dimen>
<dimen name="program_guide_table_detail_critic_score_logo_margin_start">6dp</dimen>
<dimen name="program_guide_table_detail_critic_score_score_margin_start">6dp</dimen>
<dimen name="program_guide_table_critic_score_source_text_size">12dp</dimen>
<dimen name="program_guide_table_critic_score_score_text_size">12dp</dimen>
<dimen name="program_guide_table_detail_desc_margin_top">46dp</dimen>
<dimen name="program_guide_table_detail_desc_text_size">12sp</dimen>
<dimen name="program_guide_table_width_per_hour">384dp</dimen>
<dimen name="program_guide_table_exit_x">368dp</dimen>
<!-- TV view -->
<dimen name="tvview_block_icon_width">200dp</dimen>
<dimen name="tvview_block_icon_height">120dp</dimen>
<dimen name="tvview_block_vertical_spacing">15dp</dimen>
<dimen name="tvview_block_text_size">16sp</dimen>
<dimen name="tvview_block_line_spacing_extra">4sp</dimen>
<dimen name="shrunken_tvview_block_icon_width">60dp</dimen>
<dimen name="shrunken_tvview_block_icon_height">60dp</dimen>
<dimen name="shrunken_tvview_block_vertical_spacing">24dp</dimen>
<!-- Edit channels -->
<dimen name="shrunken_tvview_margin_start">56dp</dimen>
<dimen name="shrunken_tvview_margin_end">32dp</dimen>
<!-- Channel banner -->
<dimen name="channel_banner_width">696dp</dimen>
<dimen name="channel_banner_channel_number_large_text_size">54sp</dimen>
<dimen name="channel_banner_channel_number_medium_text_size">44sp</dimen>
<dimen name="channel_banner_channel_number_small_text_size">34sp</dimen>
<dimen name="channel_banner_channel_number_large_margin_top">-19sp</dimen>
<dimen name="channel_banner_channel_number_medium_margin_top">-15.5sp</dimen>
<dimen name="channel_banner_channel_number_small_margin_top">-11.5sp</dimen>
<dimen name="channel_banner_channel_logo_width">72dp</dimen>
<dimen name="channel_banner_channel_logo_height">44dp</dimen>
<dimen name="channel_banner_channel_logo_margin_start">8dp</dimen>
<dimen name="channel_banner_input_logo_size">16dp</dimen>
<dimen name="channel_banner_program_description_width">456dp</dimen>
<dimen name="channel_banner_program_large_text_size">28sp</dimen>
<dimen name="channel_banner_program_medium_text_size">20sp</dimen>
<dimen name="channel_banner_program_large_margin_top">-10sp</dimen>
<dimen name="channel_banner_program_medium_margin_top">-7sp</dimen>
<dimen name="channel_banner_anchor_one_line_y">44dp</dimen>
<dimen name="channel_banner_anchor_two_line_y">64dp</dimen>
<dimen name="channel_name_max_width">100dp</dimen>
<dimen name="channel_banner_small_text_size">14sp</dimen>
<dimen name="channel_banner_track_meta_text_size">8sp</dimen>
<dimen name="channel_banner_enter_offset_y">16dp</dimen>
<dimen name="channel_banner_exit_offset_y">16dp</dimen>
<dimen name="channel_banner_recording_icon_padding">4sp</dimen>
<!-- Input banner -->
<dimen name="input_banner_item_height">48dp</dimen>
<dimen name="input_banner_item_label_max_width">324dp</dimen>
<!-- Keypad channel switch -->
<dimen name="keypad_channel_switch_channel_number_text_size">
@dimen/channel_banner_channel_number_large_text_size</dimen>
<dimen name="keypad_channel_switch_channel_number_margin_top">
@dimen/channel_banner_channel_number_large_margin_top</dimen>
<dimen name="keypad_channel_switch_item_height">48dp</dimen>
<!-- A height of Keypad channel switch view without channel_list -->
<dimen name="keypad_channel_switch_base_height">84dp</dimen>
<!-- Recommendation cards in LeanbackLauncher -->
<!-- These values should be synchronized with
//vendor/unbundled_google/packages/LeanbackLauncher/res/values/dimens.xml -->
<dimen name="notif_card_img_height">176dp</dimen>
<dimen name="notif_card_img_min_width">117dp</dimen>
<dimen name="notif_card_img_max_width">235dp</dimen>
<dimen name="notif_ch_logo_max_width">64dp</dimen>
<dimen name="notif_ch_logo_max_height">44dp</dimen>
<dimen name="notif_ch_logo_padding_start">12dp</dimen>
<dimen name="notif_ch_logo_padding_bottom">12dp</dimen>
<!-- PIN dialog -->
<dimen name="pin_dialog_width">380dp</dimen>
<dimen name="pin_dialog_text_size">16sp</dimen>
<dimen name="pin_dialog_text_line_spacing">5sp</dimen>
<dimen name="pin_dialog_title_width">300dp</dimen>
<dimen name="pin_number_picker_text_size">24sp</dimen>
<dimen name="pin_number_picker_text_view_width">48dp</dimen>
<dimen name="pin_number_picker_text_view_height">48dp</dimen>
<!-- Onboarding screens -->
<eat-comment />
<dimen name="onboarding_welcome_content_margin_top">67dp</dimen>
<dimen name="onboarding_welcome_content_margin_bottom">50dp</dimen>
<dimen name="onboarding_welcome_shadow_height">9dp</dimen>
<dimen name="onboarding_welcome_shadow_margin_top">16dp</dimen>
<!-- This value is lb_onboarding_content_margin_bottom(98dp)
+ lb_onboarding_welcome_content_margin_bottom(50dp)
+ lb_onboarding_welcome_shadow_height(9dp)
+ lb_onboarding_welcome_shadow_margin_top(16dp)
+ margin from tv_container(70dp) -->
<dimen name="onboarding_welcome_arrow_margin_bottom">243dp</dimen>
<!-- DVR screens -->
<eat-comment />
<!-- DVR schedules list -->
<dimen name="dvr_schedules_layout_padding">132dp</dimen>
<dimen name="dvr_schedules_row_divider_height">1dp</dimen>
<dimen name="dvr_schedules_item_width">960dp</dimen>
<dimen name="dvr_schedules_header_selector_radius">2dp</dimen>
<dimen name="dvr_schedules_selector_radius">39dp</dimen>
<dimen name="dvr_schedules_item_time_width">219dp</dimen>
<dimen name="dvr_series_schedules_item_time_width">286dp</dimen>
<dimen name="dvr_schedules_item_time_start_padding">32dp</dimen>
<dimen name="dvr_schedules_item_time_margin">14dp</dimen>
<dimen name="dvr_schedules_item_info_top_margin">15dp</dimen>
<dimen name="dvr_schedules_item_conflict_info_bottom_margin">15dp</dimen>
<dimen name="dvr_schedules_item_delete_width">46dp</dimen>
<dimen name="dvr_schedules_item_section_margin">32dp</dimen>
<dimen name="dvr_schedules_item_icon_size">18dp</dimen>
<dimen name="dvr_schedules_item_focus_translation_delta">2dp</dimen>
<dimen name="dvr_schedules_item_focus_width_delta">10dp</dimen>
<dimen name="dvr_schedules_header_margin_top">32dp</dimen>
<dimen name="dvr_schedules_header_margin_bottom">24dp</dimen>
<dimen name="dvr_schedules_header_subtitle_margin_top">5dp</dimen>
<dimen name="dvr_schedules_header_icon_container_width">143dp</dimen>
<dimen name="dvr_schedules_header_icon_horizontal_margin">12dp</dimen>
<dimen name="dvr_schedules_warning_icon_padding">4dp</dimen>
<!-- DVR Library -->
<dimen name="dvr_library_expanded_row_height">175dp</dimen>
<dimen name="dvr_library_card_image_layout_width">144dp</dimen>
<dimen name="dvr_library_card_image_layout_height">108dp</dimen>
<dimen name="dvr_library_card_progress_height">2dp</dimen>
<dimen name="dvr_library_card_folded_title_height">20dp</dimen>
<dimen name="dvr_library_card_expanded_title_height">36.5dp</dimen>
<!-- DVR playback fragment -->
<dimen name="dvr_related_recordings_width">108dp</dimen>
<dimen name="dvr_related_recordings_height">81dp</dimen>
<!-- This value is used to adjust position of DVR playback controls row when there is no
program description -->
<dimen name="dvr_playback_controls_extra_padding_top">27.5dp</dimen>
<!-- This value is used to adjust the vertical position of DVR playback overlay fragment -->
<dimen name="dvr_playback_overlay_padding_top_base">36dp</dimen>
<!-- This value is used to adjust the vertical position of DVR playback overlay fragment when
there is no related recordings -->
<dimen name="dvr_playback_overlay_padding_top_no_related_row">44dp</dimen>
<!-- This value is used to adjust the vertical position of DVR playback overlay fragment when
there is no secondary controls row -->
<dimen name="dvr_playback_overlay_padding_top_no_secondary_row">4dp</dimen>
<!-- details fragment -->
<dimen name="dvr_details_poster_width">219dp</dimen>
<dimen name="dvr_details_poster_height">123dp</dimen>
<item name="dvr_conflict_guidedstep_keyline" format="float" type="string">30.0</item>
<dimen name="dvr_deletion_check_mark_size">32dp</dimen>
<dimen name="dvr_deletion_check_mark_margin">20dp</dimen>
<dimen name="dvr_details_overview_description_margin_start">12dp</dimen>
<dimen name="dvr_details_overview_description_margin_end">12dp</dimen>
<dimen name="dvr_details_description_under_subtitle_baseline_margin">30dp</dimen>
<!-- Below values are used to avoid detail titles' layout changing with two-line titles -->
<dimen name="dvr_details_description_title_resized_text_size">34sp</dimen>
<dimen name="dvr_details_description_title_padding_adjust_top">0dp</dimen>
<dimen name="dvr_details_description_title_padding_adjust_bottom">0dp</dimen>
<!-- DVR settings -->
<dimen name="dvr_settings_one_line_action_container_height">49dp</dimen>
<!-- actions list width = 352dp (fixed weight = 1)
button actions list width = 138dp (weight = 0.39) -->
<item name="dvr_settings_button_actions_list_width_weight" format="float" type="dimen">0.39</item>
<item name="dvr_settings_guidedactions_width_weight" format="float" type="string">1.15</item>
<!-- Preview channel logo size -->
<dimen name="preview_channel_logo_width">80dp</dimen>
<dimen name="preview_channel_logo_height">80dp</dimen>
</resources>