Cole Faust | c08225a | 2019-08-02 13:12:32 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- Copyright (C) 2019 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> |
Roberto Perez | ace150c | 2019-08-23 18:15:22 -0700 | [diff] [blame] | 17 | <!-- General resources --> |
| 18 | |
Brad Stenning | be10fe3 | 2019-09-12 13:32:03 -0700 | [diff] [blame] | 19 | <dimen name="car_ui_touch_target_width">76dp</dimen> |
| 20 | <dimen name="car_ui_touch_target_height">76dp</dimen> |
| 21 | <dimen name="car_ui_primary_icon_size">44dp</dimen> |
| 22 | <item name="car_ui_letter_spacing_body1" format="float" type="dimen">0.0</item> |
| 23 | <item name="car_ui_letter_spacing_body3" format="float" type="dimen">0.0</item> |
Roberto Perez | ace150c | 2019-08-23 18:15:22 -0700 | [diff] [blame] | 24 | |
Roberto Perez | 90c45bb | 2019-10-21 17:30:48 -0700 | [diff] [blame] | 25 | <!-- Horizontal margin between screen content and display border. In reference |
| 26 | implementation, this value matches the CarUiRecyclerView scrollbar width --> |
Brad Stenning | be10fe3 | 2019-09-12 13:32:03 -0700 | [diff] [blame] | 27 | <dimen name="car_ui_margin">112dp</dimen> |
Roberto Perez | ace150c | 2019-08-23 18:15:22 -0700 | [diff] [blame] | 28 | |
| 29 | <!-- Paddings --> |
Brad Stenning | be10fe3 | 2019-09-12 13:32:03 -0700 | [diff] [blame] | 30 | <dimen name="car_ui_padding_0">4dp</dimen> |
| 31 | <dimen name="car_ui_padding_1">8dp</dimen> |
| 32 | <dimen name="car_ui_padding_2">16dp</dimen> |
| 33 | <dimen name="car_ui_padding_3">24dp</dimen> |
| 34 | <dimen name="car_ui_padding_4">32dp</dimen> |
| 35 | <dimen name="car_ui_padding_5">64dp</dimen> |
| 36 | <dimen name="car_ui_padding_6">96dp</dimen> |
Cole Faust | c08225a | 2019-08-02 13:12:32 -0700 | [diff] [blame] | 37 | |
Ram Parameswaran | fa84da1 | 2019-10-31 09:57:35 -0700 | [diff] [blame] | 38 | <!-- Type Sizings --> |
| 39 | <dimen name="car_ui_body1_size">32sp</dimen> |
| 40 | <dimen name="car_ui_body2_size">28sp</dimen> |
| 41 | <dimen name="car_ui_body3_size">24sp</dimen> |
| 42 | |
Cole Faust | 88de597 | 2019-12-02 15:11:41 -0800 | [diff] [blame] | 43 | <!-- Keylines --> |
| 44 | <dimen name="car_ui_keyline_1">24dp</dimen> |
| 45 | <dimen name="car_ui_keyline_2">96dp</dimen> |
| 46 | <dimen name="car_ui_keyline_3">112dp</dimen> |
| 47 | <dimen name="car_ui_keyline_4">148dp</dimen> |
| 48 | |
Cole Faust | c08225a | 2019-08-02 13:12:32 -0700 | [diff] [blame] | 49 | <!-- Tabs --> |
Roberto Perez | ace150c | 2019-08-23 18:15:22 -0700 | [diff] [blame] | 50 | |
| 51 | <!-- Exact size of the tab textbox. Use @dimen/wrap_content if this must be flexible --> |
Cole Faust | db6866c | 2019-10-09 15:56:07 -0700 | [diff] [blame] | 52 | <dimen name="car_ui_toolbar_tab_text_width">135dp</dimen> |
Roberto Perez | ace150c | 2019-08-23 18:15:22 -0700 | [diff] [blame] | 53 | <!-- Horizontal padding between tabs --> |
Cole Faust | db6866c | 2019-10-09 15:56:07 -0700 | [diff] [blame] | 54 | <dimen name="car_ui_toolbar_tab_padding_x">12dp</dimen> |
Roberto Perez | ace150c | 2019-08-23 18:15:22 -0700 | [diff] [blame] | 55 | <!-- Tab icon width (if icons are enabled) --> |
Cole Faust | db6866c | 2019-10-09 15:56:07 -0700 | [diff] [blame] | 56 | <dimen name="car_ui_toolbar_tab_icon_width">36dp</dimen> |
Roberto Perez | ace150c | 2019-08-23 18:15:22 -0700 | [diff] [blame] | 57 | <!-- Tab icon height (if icons are enabled) --> |
Cole Faust | db6866c | 2019-10-09 15:56:07 -0700 | [diff] [blame] | 58 | <dimen name="car_ui_toolbar_tab_icon_height">36dp</dimen> |
Cole Faust | c08225a | 2019-08-02 13:12:32 -0700 | [diff] [blame] | 59 | |
Roberto Perez | d4f5271 | 2019-10-04 11:00:40 -0700 | [diff] [blame] | 60 | <!-- Toolbar --> |
Roberto Perez | 90c45bb | 2019-10-21 17:30:48 -0700 | [diff] [blame] | 61 | |
| 62 | <!-- Default height for both toolbar rows. See car_ui_toolbar_first_row_height and |
| 63 | car_ui_toolbar_second_row_height --> |
Brad Stenning | be10fe3 | 2019-09-12 13:32:03 -0700 | [diff] [blame] | 64 | <dimen name="car_ui_toolbar_row_height">96dp</dimen> |
Roberto Perez | 90c45bb | 2019-10-21 17:30:48 -0700 | [diff] [blame] | 65 | <!-- Height of the top toolbar row. This can be customized independently. --> |
Brad Stenning | be10fe3 | 2019-09-12 13:32:03 -0700 | [diff] [blame] | 66 | <dimen name="car_ui_toolbar_first_row_height">@dimen/car_ui_toolbar_row_height</dimen> |
Roberto Perez | 90c45bb | 2019-10-21 17:30:48 -0700 | [diff] [blame] | 67 | <!-- Height of the bottom toolbar row (if the toolbar is used in two-rows mode. --> |
Brad Stenning | be10fe3 | 2019-09-12 13:32:03 -0700 | [diff] [blame] | 68 | <dimen name="car_ui_toolbar_second_row_height">@dimen/car_ui_toolbar_row_height</dimen> |
Roberto Perez | 90c45bb | 2019-10-21 17:30:48 -0700 | [diff] [blame] | 69 | <!-- Padding on the toolbar start (e.g.: distance between the container start and the start of |
| 70 | nav icon or logo) --> |
Ram Parameswaran | 6505d78 | 2019-09-23 18:20:14 -0700 | [diff] [blame] | 71 | <dimen name="car_ui_toolbar_start_inset">0dp</dimen> |
Roberto Perez | 90c45bb | 2019-10-21 17:30:48 -0700 | [diff] [blame] | 72 | <!-- End padding (e.g.: distance between the container end and the end of the menu items) --> |
Ram Parameswaran | 6505d78 | 2019-09-23 18:20:14 -0700 | [diff] [blame] | 73 | <dimen name="car_ui_toolbar_end_inset">0dp</dimen> |
Roberto Perez | 90c45bb | 2019-10-21 17:30:48 -0700 | [diff] [blame] | 74 | <!-- Top padding --> |
Ram Parameswaran | 6505d78 | 2019-09-23 18:20:14 -0700 | [diff] [blame] | 75 | <dimen name="car_ui_toolbar_top_inset">0dp</dimen> |
Roberto Perez | 90c45bb | 2019-10-21 17:30:48 -0700 | [diff] [blame] | 76 | <!-- Bottom padding --> |
Ram Parameswaran | 6505d78 | 2019-09-23 18:20:14 -0700 | [diff] [blame] | 77 | <dimen name="car_ui_toolbar_bottom_inset">0dp</dimen> |
Roberto Perez | 90c45bb | 2019-10-21 17:30:48 -0700 | [diff] [blame] | 78 | <!-- Toolbar title/tabs start margin. Toolbar navigation icon (or logo if no navigation icon is |
| 79 | used) will be centered in this space, and the title will start from here --> |
Cole Faust | be31b19 | 2019-10-03 10:46:21 -0700 | [diff] [blame] | 80 | <dimen name="car_ui_toolbar_margin">@dimen/car_ui_margin</dimen> |
Roberto Perez | 198baa5 | 2019-11-07 11:36:41 -0800 | [diff] [blame] | 81 | <!-- Navigation icon --> |
Roberto Perez | 69f098e | 2019-11-08 10:12:47 -0800 | [diff] [blame] | 82 | <dimen name="car_ui_toolbar_nav_icon_size">@dimen/car_ui_primary_icon_size</dimen> |
Roberto Perez | 198baa5 | 2019-11-07 11:36:41 -0800 | [diff] [blame] | 83 | <!-- Logo --> |
| 84 | <dimen name="car_ui_toolbar_logo_size">@dimen/car_ui_primary_icon_size</dimen> |
Roberto Perez | 90c45bb | 2019-10-21 17:30:48 -0700 | [diff] [blame] | 85 | <!-- Margin between the logo and the title, when both logo and navigation icons are used --> |
| 86 | <dimen name="car_ui_toolbar_title_logo_padding">0dp</dimen> |
| 87 | <!-- Margin at the start of the title --> |
Brad Stenning | be10fe3 | 2019-09-12 13:32:03 -0700 | [diff] [blame] | 88 | <dimen name="car_ui_toolbar_title_margin_start">@dimen/car_ui_padding_2</dimen> |
Roberto Perez | 90c45bb | 2019-10-21 17:30:48 -0700 | [diff] [blame] | 89 | <!-- Space at the end and in between menu items --> |
Brad Stenning | be10fe3 | 2019-09-12 13:32:03 -0700 | [diff] [blame] | 90 | <dimen name="car_ui_toolbar_menu_item_margin">@dimen/car_ui_padding_2</dimen> |
Roberto Perez | 90c45bb | 2019-10-21 17:30:48 -0700 | [diff] [blame] | 91 | <!-- Ripple effect radius for icon menu items --> |
Cole Faust | 6f52f14 | 2019-10-09 13:23:25 -0700 | [diff] [blame] | 92 | <dimen name="car_ui_toolbar_menu_item_icon_ripple_radius">48dp</dimen> |
Roberto Perez | 90c45bb | 2019-10-21 17:30:48 -0700 | [diff] [blame] | 93 | <!-- Icon size for icon menu items --> |
Cole Faust | 6f52f14 | 2019-10-09 13:23:25 -0700 | [diff] [blame] | 94 | <dimen name="car_ui_toolbar_menu_item_icon_size">@dimen/car_ui_primary_icon_size</dimen> |
Roberto Perez | 90c45bb | 2019-10-21 17:30:48 -0700 | [diff] [blame] | 95 | <!-- Icon background size for icon menu items --> |
Cole Faust | 6f52f14 | 2019-10-09 13:23:25 -0700 | [diff] [blame] | 96 | <dimen name="car_ui_toolbar_menu_item_icon_background_size">54dp</dimen> |
Roberto Perez | 69f098e | 2019-11-08 10:12:47 -0800 | [diff] [blame] | 97 | <!-- Height of the decoration view between the two rows of the toolbar (or below the toolbar |
| 98 | if this is a single row one --> |
| 99 | <!-- can't use 0dp for layout_height or the constraintlayout effect kicks in --> |
| 100 | <dimen name="car_ui_toolbar_separator_height">0.1dp</dimen> |
| 101 | <!-- Height of the decoration view below the toolbar --> |
| 102 | <!-- can't use 0dp for layout_height or the constraintlayout effect kicks in --> |
| 103 | <dimen name="car_ui_toolbar_bottom_view_height">0.1dp</dimen> |
| 104 | <!-- Height of the search box --> |
| 105 | <dimen name="car_ui_toolbar_search_height">0dp</dimen> |
| 106 | <!-- Space before the text search area, where the search icon is located --> |
| 107 | <dimen name="car_ui_toolbar_search_search_icon_container_width">@dimen/car_ui_touch_target_width</dimen> |
| 108 | <!-- Space after the text search area, where the cancel icon is located --> |
| 109 | <dimen name="car_ui_toolbar_search_close_icon_container_width">@dimen/car_ui_touch_target_width</dimen> |
| 110 | <!-- Size of the search icon inside the search box --> |
| 111 | <dimen name="car_ui_toolbar_search_search_icon_size">@dimen/car_ui_primary_icon_size</dimen> |
| 112 | <!-- Size of the close icon inside the search box --> |
| 113 | <dimen name="car_ui_toolbar_search_close_icon_size">@dimen/car_ui_primary_icon_size</dimen> |
Roberto Perez | ace150c | 2019-08-23 18:15:22 -0700 | [diff] [blame] | 114 | |
| 115 | <!-- Internal artifacts. Do not overlay --> |
| 116 | <item name="wrap_content" format="integer" type="dimen">-2</item> |
Priyank Singh | 7e87d5c | 2019-08-29 10:38:52 -0700 | [diff] [blame] | 117 | |
Roberto Perez | d4f5271 | 2019-10-04 11:00:40 -0700 | [diff] [blame] | 118 | <!-- CarUiRecyclerView --> |
Roberto Perez | d4f5271 | 2019-10-04 11:00:40 -0700 | [diff] [blame] | 119 | |
Roberto Perez | 90c45bb | 2019-10-21 17:30:48 -0700 | [diff] [blame] | 120 | <dimen name="car_ui_recyclerview_divider_height">0dp</dimen> |
| 121 | <dimen name="car_ui_recyclerview_divider_start_margin">0dp</dimen> |
| 122 | <dimen name="car_ui_recyclerview_divider_end_margin">0dp</dimen> |
| 123 | <dimen name="car_ui_recyclerview_divider_top_margin">0dp</dimen> |
| 124 | <dimen name="car_ui_recyclerview_divider_bottom_margin">0dp</dimen> |
| 125 | |
| 126 | <!-- CarUiRecyclerView default scrollbar --> |
| 127 | |
| 128 | <dimen name="car_ui_scrollbar_container_width">@dimen/car_ui_margin</dimen> |
Brad Stenning | be10fe3 | 2019-09-12 13:32:03 -0700 | [diff] [blame] | 129 | <dimen name="car_ui_scrollbar_button_size">@dimen/car_ui_touch_target_width</dimen> |
Priyank Singh | 1fc49c5 | 2019-09-20 10:41:28 -0700 | [diff] [blame] | 130 | <dimen name="car_ui_scrollbar_thumb_width">7dp</dimen> |
Brad Stenning | be10fe3 | 2019-09-12 13:32:03 -0700 | [diff] [blame] | 131 | <dimen name="car_ui_scrollbar_separator_margin">16dp</dimen> |
| 132 | <dimen name="car_ui_scrollbar_margin">@dimen/car_ui_margin</dimen> |
| 133 | <dimen name="car_ui_scrollbar_thumb_radius">100dp</dimen> |
Priyank Singh | 7e87d5c | 2019-08-29 10:38:52 -0700 | [diff] [blame] | 134 | |
Brad Stenning | be10fe3 | 2019-09-12 13:32:03 -0700 | [diff] [blame] | 135 | <item name="car_ui_button_disabled_alpha" format="float" type="dimen">0.2</item> |
Brad Stenning | be10fe3 | 2019-09-12 13:32:03 -0700 | [diff] [blame] | 136 | <item name="car_ui_scrollbar_milliseconds_per_inch" format="float" type="dimen">150.0</item> |
| 137 | <item name="car_ui_scrollbar_deceleration_times_divisor" format="float" type="dimen">0.45</item> |
| 138 | <item name="car_ui_scrollbar_decelerate_interpolator_factor" format="float" type="dimen">1.8</item> |
Priyank Singh | 7e87d5c | 2019-08-29 10:38:52 -0700 | [diff] [blame] | 139 | |
Brad Stenning | be10fe3 | 2019-09-12 13:32:03 -0700 | [diff] [blame] | 140 | <dimen name="car_ui_scrollbar_padding_start">0dp</dimen> |
| 141 | <dimen name="car_ui_scrollbar_padding_end">0dp</dimen> |
davidln | 05ecc74 | 2019-09-09 15:03:45 -0700 | [diff] [blame] | 142 | |
| 143 | <!-- Preferences --> |
| 144 | |
Brad Stenning | be10fe3 | 2019-09-12 13:32:03 -0700 | [diff] [blame] | 145 | <dimen name="car_ui_preference_category_text_size">24sp</dimen> |
| 146 | <dimen name="car_ui_preference_summary_text_size">24sp</dimen> |
| 147 | <dimen name="car_ui_preference_title_text_size">32sp</dimen> |
| 148 | <dimen name="car_ui_preference_edit_text_dialog_message_text_size">24sp</dimen> |
davidln | 05ecc74 | 2019-09-09 15:03:45 -0700 | [diff] [blame] | 149 | |
Brad Stenning | be10fe3 | 2019-09-12 13:32:03 -0700 | [diff] [blame] | 150 | <dimen name="car_ui_preference_content_margin_top">16dp</dimen> |
| 151 | <dimen name="car_ui_preference_content_margin_bottom">16dp</dimen> |
| 152 | <dimen name="car_ui_preference_icon_size">44dp</dimen> |
| 153 | <dimen name="car_ui_preference_icon_margin_end">16dp</dimen> |
davidln | 05ecc74 | 2019-09-09 15:03:45 -0700 | [diff] [blame] | 154 | |
Brad Stenning | be10fe3 | 2019-09-12 13:32:03 -0700 | [diff] [blame] | 155 | <dimen name="car_ui_preference_category_min_height">76dp</dimen> |
| 156 | <dimen name="car_ui_preference_category_icon_size">44dp</dimen> |
| 157 | <dimen name="car_ui_preference_category_icon_margin_end">16dp</dimen> |
davidln | 05ecc74 | 2019-09-09 15:03:45 -0700 | [diff] [blame] | 158 | |
Brad Stenning | be10fe3 | 2019-09-12 13:32:03 -0700 | [diff] [blame] | 159 | <dimen name="car_ui_preference_dropdown_padding_start">112dp</dimen> |
davidln | 05ecc74 | 2019-09-09 15:03:45 -0700 | [diff] [blame] | 160 | |
Brad Stenning | be10fe3 | 2019-09-12 13:32:03 -0700 | [diff] [blame] | 161 | <dimen name="car_ui_preference_edit_text_dialog_margin_top">32dp</dimen> |
| 162 | <dimen name="car_ui_preference_edit_text_dialog_margin_bottom">32dp</dimen> |
| 163 | <dimen name="car_ui_preference_edit_text_dialog_message_margin_bottom">32dp</dimen> |
| 164 | <dimen name="car_ui_preference_edit_text_dialog_message_margin_start">24dp</dimen> |
| 165 | <dimen name="car_ui_preference_edit_text_dialog_message_margin_end">24dp</dimen> |
| 166 | <dimen name="car_ui_preference_edit_text_dialog_text_margin_start">24dp</dimen> |
| 167 | <dimen name="car_ui_preference_edit_text_dialog_text_margin_end">24dp</dimen> |
Priyank Singh | 7ddf220 | 2019-09-11 19:39:37 -0700 | [diff] [blame] | 168 | |
Roberto Perez | d4f5271 | 2019-10-04 11:00:40 -0700 | [diff] [blame] | 169 | <dimen name="car_ui_preference_switch_text_size">30sp</dimen> |
| 170 | <dimen name="car_ui_preference_switch_width">288dp</dimen> |
| 171 | <dimen name="car_ui_preference_switch_width_half">144dp</dimen> |
| 172 | <dimen name="car_ui_preference_switch_height">101dp</dimen> |
| 173 | |
Priyank Singh | 7ddf220 | 2019-09-11 19:39:37 -0700 | [diff] [blame] | 174 | <!-- Alert dialog --> |
| 175 | |
| 176 | <dimen name="car_ui_dialog_edittext_height">50dp</dimen> |
| 177 | <dimen name="car_ui_dialog_edittext_margin_top">10dp</dimen> |
| 178 | <dimen name="car_ui_dialog_edittext_margin_bottom">10dp</dimen> |
| 179 | <dimen name="car_ui_dialog_edittext_margin_start">22dp</dimen> |
| 180 | <dimen name="car_ui_dialog_edittext_margin_end">22dp</dimen> |
Cole Faust | 88de597 | 2019-12-02 15:11:41 -0800 | [diff] [blame] | 181 | <dimen name="car_ui_dialog_icon_size">56dp</dimen> |
| 182 | <dimen name="car_ui_dialog_title_margin">@dimen/car_ui_keyline_1</dimen> |
Ram Parameswaran | fa84da1 | 2019-10-31 09:57:35 -0700 | [diff] [blame] | 183 | |
| 184 | <!-- List item --> |
| 185 | |
| 186 | <dimen name="car_ui_list_item_height">116dp</dimen> |
Ram Parameswaran | 659ee52 | 2019-11-14 16:41:37 -0800 | [diff] [blame] | 187 | <dimen name="car_ui_header_list_item_height">116dp</dimen> |
| 188 | <dimen name="car_ui_list_item_header_start_inset">0dp</dimen> |
Ram Parameswaran | fa84da1 | 2019-10-31 09:57:35 -0700 | [diff] [blame] | 189 | <dimen name="car_ui_list_item_start_inset">0dp</dimen> |
| 190 | <dimen name="car_ui_list_item_end_inset">0dp</dimen> |
| 191 | <dimen name="car_ui_list_item_text_start_margin">0dp</dimen> |
| 192 | <dimen name="car_ui_list_item_text_no_icon_start_margin">24dp</dimen> |
| 193 | <dimen name="car_ui_list_item_icon_size">@dimen/car_ui_primary_icon_size</dimen> |
Ram Parameswaran | 3ce6702 | 2019-11-12 15:39:33 -0800 | [diff] [blame] | 194 | <dimen name="car_ui_list_item_supplemental_icon_size">@dimen/car_ui_primary_icon_size</dimen> |
Ram Parameswaran | fa84da1 | 2019-10-31 09:57:35 -0700 | [diff] [blame] | 195 | <dimen name="car_ui_list_item_icon_container_width">112dp</dimen> |
Ram Parameswaran | 3ce6702 | 2019-11-12 15:39:33 -0800 | [diff] [blame] | 196 | <dimen name="car_ui_list_item_action_divider_width">1dp</dimen> |
| 197 | <dimen name="car_ui_list_item_action_divider_height">60dp</dimen> |
Ram Parameswaran | 8256a5b | 2019-11-26 13:42:15 -0800 | [diff] [blame] | 198 | |
| 199 | <dimen name="car_ui_list_item_radio_button_height">@dimen/car_ui_list_item_height</dimen> |
| 200 | <dimen name="car_ui_list_item_radio_button_start_inset">@dimen/car_ui_list_item_start_inset</dimen> |
| 201 | <dimen name="car_ui_list_item_radio_button_end_inset">@dimen/car_ui_list_item_end_inset</dimen> |
| 202 | <dimen name="car_ui_list_item_radio_button_icon_container_width">@dimen/car_ui_list_item_icon_container_width</dimen> |
Ram Parameswaran | 62a2775 | 2019-12-09 19:26:40 -0800 | [diff] [blame^] | 203 | |
| 204 | <dimen name="car_ui_list_item_check_box_height">@dimen/car_ui_list_item_height</dimen> |
| 205 | <dimen name="car_ui_list_item_check_box_start_inset">@dimen/car_ui_list_item_start_inset</dimen> |
| 206 | <dimen name="car_ui_list_item_check_box_end_inset">@dimen/car_ui_list_item_end_inset</dimen> |
| 207 | <dimen name="car_ui_list_item_check_box_icon_container_width">@dimen/car_ui_list_item_icon_container_width</dimen> |
| 208 | |
Cole Faust | c08225a | 2019-08-02 13:12:32 -0700 | [diff] [blame] | 209 | </resources> |