1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- Copyright (C) 2016 The Android Open Source Project 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15 --> 16 <resources> 17 <dimen name="car_headline0_size">50sp</dimen> 18 <dimen name="car_headline1_size">45sp</dimen> 19 <dimen name="car_headline2_size">36sp</dimen> 20 <dimen name="car_title_size">26sp</dimen> 21 <dimen name="car_body1_size">32sp</dimen> 22 <dimen name="car_body2_size">26sp</dimen> 23 <dimen name="car_caption_size">18sp</dimen> 24 <dimen name="car_key1_size">40sp</dimen> 25 <dimen name="car_key2_size">18sp</dimen> 26 <dimen name="car_micro_size">20sp</dimen> 27 28 <dimen name="car_drawer_header_height">96dp</dimen> 29 <dimen name="car_drawer_header_menu_button_size">96dp</dimen> 30 <dimen name="car_drawer_standard_width">704dp</dimen> 31 <dimen name="car_drawer_max_width">884dp</dimen> 32 <dimen name="car_drawer_item_max_width">788dp</dimen> 33 34 <dimen name="car_list_item_height">88dp</dimen> 35 <dimen name="car_list_item_height_small">64dp</dimen> 36 <!-- Sample row height used for scroll bar calculations in the off chance that a view hasn't 37 been measured. It's highly unlikely that this value will actually be used for more than 38 a frame max. The sample row is a 96dp card + 16dp margin on either side. --> 39 <dimen name="car_sample_row_height">128dp</dimen> 40 <!-- The amount of space the LayoutManager will make sure the last item on the screen is 41 peeking before scrolling down --> 42 <dimen name="car_last_card_peek_amount">16dp</dimen> 43 <dimen name="car_paged_list_view_pagination_width">48dp</dimen> 44 <dimen name="car_paged_list_view_button_background_inset">24dp</dimen> 45 <dimen name="car_paged_list_view_scrollbar_thumb_margin">8dp</dimen> 46 47 <dimen name="scroll_button_size">48dp</dimen> 48 <dimen name="scroll_bar_thumb_width">12dp</dimen> 49 50 <!-- height of list dividers --> 51 <dimen name="car_divider_height">1dp</dimen> 52 53 <dimen name="car_list_item_icon_size">64dp</dimen> 54 <dimen name="car_list_item_icon_right_margin">32dp</dimen> 55 <dimen name="car_list_item_icon_size_small">32dp</dimen> 56 <dimen name="car_list_item_small_icon_size">56dp</dimen> 57 <dimen name="car_list_item_right_icon_margin">20dp</dimen> 58 <dimen name="car_list_item_right_icon_size">56dp</dimen> 59 <dimen name="car_list_unavailable_category_item_height">108dp</dimen> 60 <dimen name="car_list_truncated_list_card_height">108dp</dimen> 61 <dimen name="car_list_truncated_list_card_elevation">8dp</dimen> 62 <dimen name="car_list_truncated_list_icon_size">56dp</dimen> 63 <dimen name="car_list_truncated_list_icon_padding">22dp</dimen> 64 <dimen name="car_list_truncated_list_drawable_padding">48dp</dimen> 65 <dimen name="car_list_truncated_list_padding">10dp</dimen> 66 <dimen name="car_text_vertical_margin">2dp</dimen> 67 <dimen name="car_card_bottom_margin">8dp</dimen> 68 69 <dimen name="car_touch_feedback_radius">32dp</dimen> 70 <dimen name="car_card_view_corner_radius">2dp</dimen> 71 <dimen name="car_card_view_elevation">8dp</dimen> 72 <dimen name="car_fab_focused_stroke_width">8dp</dimen> 73 <dimen name="car_fab_focused_growth">1.2dp</dimen> 74 <!-- The minimum the scrollbar thumb can shrink to --> 75 <dimen name="min_thumb_height">48dp</dimen> 76 <!-- The maximum the scrollbar thumb can grow to --> 77 <dimen name="max_thumb_height">128dp</dimen> 78 79 <dimen name="car_standard_width">800dp</dimen> 80 <dimen name="car_card_max_width">768dp</dimen> 81 <dimen name="car_card_margin">96dp</dimen> 82 <dimen name="car_drawer_margin_right">96dp</dimen> 83 84 <dimen name="car_drawer_button_container_width">@dimen/stream_content_keyline_2</dimen> 85 86 <!-- The margin on both sizes of the screen. This margin limits the amount of space that 87 content can take up on screen. --> 88 <dimen name="stream_margin_size">16dp</dimen> 89 90 <!-- The size of the gutters between each column. --> 91 <dimen name="stream_gutter_size">16dp</dimen> 92 93 <!-- Keylines for content in the stream. --> 94 <dimen name="stream_content_keyline_1">24dp</dimen> 95 <dimen name="stream_content_keyline_2">96dp</dimen> 96 <dimen name="stream_content_keyline_1_neg">-24dp</dimen> 97 <dimen name="stream_content_keyline_2_neg">-96dp</dimen> 98 99 <!-- Keylines for content within a card. --> 100 <dimen name="stream_card_keyline_1">24dp</dimen> 101 <dimen name="stream_card_keyline_2">96dp</dimen> 102 <dimen name="stream_card_keyline_3">128dp</dimen> 103 104 <!-- The top margin before the start of content in an application. --> 105 <dimen name="lens_header_height">96dp</dimen> 106 107 <!-- The height of the container that holds the controls for a media applicatin. --> 108 <dimen name="action_panel_height">104dp</dimen> 109 110 <!-- The size of a FAB in a car application. --> 111 <dimen name="stream_fab_size">80dp</dimen> 112 113 <!-- The default size for all touch targets in car applications.. --> 114 <dimen name="stream_button_size">72dp</dimen> 115 116 <!-- The default size for the icons within the touch targets in car applications.. --> 117 <dimen name="stream_button_icon_size">36dp</dimen> 118 119 <!-- Size of progress-bar in Drawer --> 120 <dimen name="car_drawer_progress_bar_size">48dp</dimen> 121 122 <!-- NOTE: car-support defines a similarly named value, but the value varies by screen-size. We 123 do not want that --> 124 <dimen name="car_drawer_right_margin">96dp</dimen> 125 126 <dimen name="car_drawer_item_right_icon_margin_end">32dp</dimen> 127 128 <!-- Used by car_list_item_empty.xml --> 129 <dimen name="car_drawer_disabled_list_margin_side">16dp</dimen> 130 <dimen name="car_drawer_disabled_list_icon_margin_top">48dp</dimen> 131 <dimen name="car_drawer_disabled_list_icon_margin_bottom">22dp</dimen> 132 133 <!-- These values are all made up since we don't have visual design yet. Will be fixed once 134 we have final visual design. 135 --> 136 <dimen name="searchview_textbox_corner_radius">8dp</dimen> 137 <dimen name="searchview_width">@dimen/car_card_max_width</dimen> 138 <dimen name="search_suggestion_height">64dp</dimen> 139 <dimen name="searchview_margin_left">152dp</dimen> 140 <dimen name="searchview_margin_right">264dp</dimen> 141 142 <!-- The space on each side of the screen. Some common function widgets, like scroll bar, 143 can go into this space --> 144 <dimen name="side_margin">148dp</dimen> 145 146 <!-- Common icon size for car app --> 147 <dimen name="car_icon_size">44dp</dimen> 148 149 <!-- Touch target size for round or square affordance --> 150 <dimen name="car_touch_target">106dp</dimen> 151 152 <!-- Height of items in a list. --> 153 <dimen name="double_line_item_height">256dp</dimen> 154 <dimen name="single_line_item_height">256dp</dimen> 155 </resources> 156