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 | c08225a | 2019-08-02 13:12:32 -0700 | [diff] [blame] | 43 | <!-- Tabs --> |
Roberto Perez | ace150c | 2019-08-23 18:15:22 -0700 | [diff] [blame] | 44 | |
| 45 | <!-- 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] | 46 | <dimen name="car_ui_toolbar_tab_text_width">135dp</dimen> |
Roberto Perez | ace150c | 2019-08-23 18:15:22 -0700 | [diff] [blame] | 47 | <!-- Horizontal padding between tabs --> |
Cole Faust | db6866c | 2019-10-09 15:56:07 -0700 | [diff] [blame] | 48 | <dimen name="car_ui_toolbar_tab_padding_x">12dp</dimen> |
Roberto Perez | ace150c | 2019-08-23 18:15:22 -0700 | [diff] [blame] | 49 | <!-- Tab icon width (if icons are enabled) --> |
Cole Faust | db6866c | 2019-10-09 15:56:07 -0700 | [diff] [blame] | 50 | <dimen name="car_ui_toolbar_tab_icon_width">36dp</dimen> |
Roberto Perez | ace150c | 2019-08-23 18:15:22 -0700 | [diff] [blame] | 51 | <!-- Tab icon height (if icons are enabled) --> |
Cole Faust | db6866c | 2019-10-09 15:56:07 -0700 | [diff] [blame] | 52 | <dimen name="car_ui_toolbar_tab_icon_height">36dp</dimen> |
Cole Faust | c08225a | 2019-08-02 13:12:32 -0700 | [diff] [blame] | 53 | |
Roberto Perez | d4f5271 | 2019-10-04 11:00:40 -0700 | [diff] [blame] | 54 | <!-- Toolbar --> |
Roberto Perez | 90c45bb | 2019-10-21 17:30:48 -0700 | [diff] [blame] | 55 | |
| 56 | <!-- Default height for both toolbar rows. See car_ui_toolbar_first_row_height and |
| 57 | car_ui_toolbar_second_row_height --> |
Brad Stenning | be10fe3 | 2019-09-12 13:32:03 -0700 | [diff] [blame] | 58 | <dimen name="car_ui_toolbar_row_height">96dp</dimen> |
Roberto Perez | 90c45bb | 2019-10-21 17:30:48 -0700 | [diff] [blame] | 59 | <!-- Height of the top toolbar row. This can be customized independently. --> |
Brad Stenning | be10fe3 | 2019-09-12 13:32:03 -0700 | [diff] [blame] | 60 | <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] | 61 | <!-- 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] | 62 | <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] | 63 | <!-- Padding on the toolbar start (e.g.: distance between the container start and the start of |
| 64 | nav icon or logo) --> |
Ram Parameswaran | 6505d78 | 2019-09-23 18:20:14 -0700 | [diff] [blame] | 65 | <dimen name="car_ui_toolbar_start_inset">0dp</dimen> |
Roberto Perez | 90c45bb | 2019-10-21 17:30:48 -0700 | [diff] [blame] | 66 | <!-- 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] | 67 | <dimen name="car_ui_toolbar_end_inset">0dp</dimen> |
Roberto Perez | 90c45bb | 2019-10-21 17:30:48 -0700 | [diff] [blame] | 68 | <!-- Top padding --> |
Ram Parameswaran | 6505d78 | 2019-09-23 18:20:14 -0700 | [diff] [blame] | 69 | <dimen name="car_ui_toolbar_top_inset">0dp</dimen> |
Roberto Perez | 90c45bb | 2019-10-21 17:30:48 -0700 | [diff] [blame] | 70 | <!-- Bottom padding --> |
Ram Parameswaran | 6505d78 | 2019-09-23 18:20:14 -0700 | [diff] [blame] | 71 | <dimen name="car_ui_toolbar_bottom_inset">0dp</dimen> |
Roberto Perez | 90c45bb | 2019-10-21 17:30:48 -0700 | [diff] [blame] | 72 | <!-- Toolbar title/tabs start margin. Toolbar navigation icon (or logo if no navigation icon is |
| 73 | 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] | 74 | <dimen name="car_ui_toolbar_margin">@dimen/car_ui_margin</dimen> |
Roberto Perez | 198baa5 | 2019-11-07 11:36:41 -0800 | [diff] [blame] | 75 | <!-- Navigation icon --> |
Roberto Perez | 69f098e | 2019-11-08 10:12:47 -0800 | [diff] [blame^] | 76 | <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] | 77 | <!-- Logo --> |
| 78 | <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] | 79 | <!-- Margin between the logo and the title, when both logo and navigation icons are used --> |
| 80 | <dimen name="car_ui_toolbar_title_logo_padding">0dp</dimen> |
| 81 | <!-- Margin at the start of the title --> |
Brad Stenning | be10fe3 | 2019-09-12 13:32:03 -0700 | [diff] [blame] | 82 | <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] | 83 | <!-- Space at the end and in between menu items --> |
Brad Stenning | be10fe3 | 2019-09-12 13:32:03 -0700 | [diff] [blame] | 84 | <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] | 85 | <!-- Ripple effect radius for icon menu items --> |
Cole Faust | 6f52f14 | 2019-10-09 13:23:25 -0700 | [diff] [blame] | 86 | <dimen name="car_ui_toolbar_menu_item_icon_ripple_radius">48dp</dimen> |
Roberto Perez | 90c45bb | 2019-10-21 17:30:48 -0700 | [diff] [blame] | 87 | <!-- Icon size for icon menu items --> |
Cole Faust | 6f52f14 | 2019-10-09 13:23:25 -0700 | [diff] [blame] | 88 | <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] | 89 | <!-- Icon background size for icon menu items --> |
Cole Faust | 6f52f14 | 2019-10-09 13:23:25 -0700 | [diff] [blame] | 90 | <dimen name="car_ui_toolbar_menu_item_icon_background_size">54dp</dimen> |
Roberto Perez | 69f098e | 2019-11-08 10:12:47 -0800 | [diff] [blame^] | 91 | <!-- Height of the decoration view between the two rows of the toolbar (or below the toolbar |
| 92 | if this is a single row one --> |
| 93 | <!-- can't use 0dp for layout_height or the constraintlayout effect kicks in --> |
| 94 | <dimen name="car_ui_toolbar_separator_height">0.1dp</dimen> |
| 95 | <!-- Height of the decoration view below the toolbar --> |
| 96 | <!-- can't use 0dp for layout_height or the constraintlayout effect kicks in --> |
| 97 | <dimen name="car_ui_toolbar_bottom_view_height">0.1dp</dimen> |
| 98 | <!-- Height of the search box --> |
| 99 | <dimen name="car_ui_toolbar_search_height">0dp</dimen> |
| 100 | <!-- Space before the text search area, where the search icon is located --> |
| 101 | <dimen name="car_ui_toolbar_search_search_icon_container_width">@dimen/car_ui_touch_target_width</dimen> |
| 102 | <!-- Space after the text search area, where the cancel icon is located --> |
| 103 | <dimen name="car_ui_toolbar_search_close_icon_container_width">@dimen/car_ui_touch_target_width</dimen> |
| 104 | <!-- Size of the search icon inside the search box --> |
| 105 | <dimen name="car_ui_toolbar_search_search_icon_size">@dimen/car_ui_primary_icon_size</dimen> |
| 106 | <!-- Size of the close icon inside the search box --> |
| 107 | <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] | 108 | |
| 109 | <!-- Internal artifacts. Do not overlay --> |
| 110 | <item name="wrap_content" format="integer" type="dimen">-2</item> |
Priyank Singh | 7e87d5c | 2019-08-29 10:38:52 -0700 | [diff] [blame] | 111 | |
Roberto Perez | d4f5271 | 2019-10-04 11:00:40 -0700 | [diff] [blame] | 112 | <!-- CarUiRecyclerView --> |
Roberto Perez | d4f5271 | 2019-10-04 11:00:40 -0700 | [diff] [blame] | 113 | |
Roberto Perez | 90c45bb | 2019-10-21 17:30:48 -0700 | [diff] [blame] | 114 | <dimen name="car_ui_recyclerview_divider_height">0dp</dimen> |
| 115 | <dimen name="car_ui_recyclerview_divider_start_margin">0dp</dimen> |
| 116 | <dimen name="car_ui_recyclerview_divider_end_margin">0dp</dimen> |
| 117 | <dimen name="car_ui_recyclerview_divider_top_margin">0dp</dimen> |
| 118 | <dimen name="car_ui_recyclerview_divider_bottom_margin">0dp</dimen> |
| 119 | |
| 120 | <!-- CarUiRecyclerView default scrollbar --> |
| 121 | |
| 122 | <dimen name="car_ui_scrollbar_container_width">@dimen/car_ui_margin</dimen> |
Brad Stenning | be10fe3 | 2019-09-12 13:32:03 -0700 | [diff] [blame] | 123 | <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] | 124 | <dimen name="car_ui_scrollbar_thumb_width">7dp</dimen> |
Brad Stenning | be10fe3 | 2019-09-12 13:32:03 -0700 | [diff] [blame] | 125 | <dimen name="car_ui_scrollbar_separator_margin">16dp</dimen> |
| 126 | <dimen name="car_ui_scrollbar_margin">@dimen/car_ui_margin</dimen> |
| 127 | <dimen name="car_ui_scrollbar_thumb_radius">100dp</dimen> |
Priyank Singh | 7e87d5c | 2019-08-29 10:38:52 -0700 | [diff] [blame] | 128 | |
Brad Stenning | be10fe3 | 2019-09-12 13:32:03 -0700 | [diff] [blame] | 129 | <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] | 130 | <item name="car_ui_scrollbar_milliseconds_per_inch" format="float" type="dimen">150.0</item> |
| 131 | <item name="car_ui_scrollbar_deceleration_times_divisor" format="float" type="dimen">0.45</item> |
| 132 | <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] | 133 | |
Brad Stenning | be10fe3 | 2019-09-12 13:32:03 -0700 | [diff] [blame] | 134 | <dimen name="car_ui_scrollbar_padding_start">0dp</dimen> |
| 135 | <dimen name="car_ui_scrollbar_padding_end">0dp</dimen> |
davidln | 05ecc74 | 2019-09-09 15:03:45 -0700 | [diff] [blame] | 136 | |
| 137 | <!-- Preferences --> |
| 138 | |
Brad Stenning | be10fe3 | 2019-09-12 13:32:03 -0700 | [diff] [blame] | 139 | <dimen name="car_ui_preference_category_text_size">24sp</dimen> |
| 140 | <dimen name="car_ui_preference_summary_text_size">24sp</dimen> |
| 141 | <dimen name="car_ui_preference_title_text_size">32sp</dimen> |
| 142 | <dimen name="car_ui_preference_edit_text_dialog_message_text_size">24sp</dimen> |
davidln | 05ecc74 | 2019-09-09 15:03:45 -0700 | [diff] [blame] | 143 | |
Brad Stenning | be10fe3 | 2019-09-12 13:32:03 -0700 | [diff] [blame] | 144 | <dimen name="car_ui_preference_content_margin_top">16dp</dimen> |
| 145 | <dimen name="car_ui_preference_content_margin_bottom">16dp</dimen> |
| 146 | <dimen name="car_ui_preference_icon_size">44dp</dimen> |
| 147 | <dimen name="car_ui_preference_icon_margin_end">16dp</dimen> |
davidln | 05ecc74 | 2019-09-09 15:03:45 -0700 | [diff] [blame] | 148 | |
Brad Stenning | be10fe3 | 2019-09-12 13:32:03 -0700 | [diff] [blame] | 149 | <dimen name="car_ui_preference_category_min_height">76dp</dimen> |
| 150 | <dimen name="car_ui_preference_category_icon_size">44dp</dimen> |
| 151 | <dimen name="car_ui_preference_category_icon_margin_end">16dp</dimen> |
davidln | 05ecc74 | 2019-09-09 15:03:45 -0700 | [diff] [blame] | 152 | |
Brad Stenning | be10fe3 | 2019-09-12 13:32:03 -0700 | [diff] [blame] | 153 | <dimen name="car_ui_preference_dropdown_padding_start">112dp</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_edit_text_dialog_margin_top">32dp</dimen> |
| 156 | <dimen name="car_ui_preference_edit_text_dialog_margin_bottom">32dp</dimen> |
| 157 | <dimen name="car_ui_preference_edit_text_dialog_message_margin_bottom">32dp</dimen> |
| 158 | <dimen name="car_ui_preference_edit_text_dialog_message_margin_start">24dp</dimen> |
| 159 | <dimen name="car_ui_preference_edit_text_dialog_message_margin_end">24dp</dimen> |
| 160 | <dimen name="car_ui_preference_edit_text_dialog_text_margin_start">24dp</dimen> |
| 161 | <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] | 162 | |
Roberto Perez | d4f5271 | 2019-10-04 11:00:40 -0700 | [diff] [blame] | 163 | <dimen name="car_ui_preference_switch_text_size">30sp</dimen> |
| 164 | <dimen name="car_ui_preference_switch_width">288dp</dimen> |
| 165 | <dimen name="car_ui_preference_switch_width_half">144dp</dimen> |
| 166 | <dimen name="car_ui_preference_switch_height">101dp</dimen> |
| 167 | |
Priyank Singh | 7ddf220 | 2019-09-11 19:39:37 -0700 | [diff] [blame] | 168 | <!-- Alert dialog --> |
| 169 | |
| 170 | <dimen name="car_ui_dialog_edittext_height">50dp</dimen> |
| 171 | <dimen name="car_ui_dialog_edittext_margin_top">10dp</dimen> |
| 172 | <dimen name="car_ui_dialog_edittext_margin_bottom">10dp</dimen> |
| 173 | <dimen name="car_ui_dialog_edittext_margin_start">22dp</dimen> |
| 174 | <dimen name="car_ui_dialog_edittext_margin_end">22dp</dimen> |
Ram Parameswaran | fa84da1 | 2019-10-31 09:57:35 -0700 | [diff] [blame] | 175 | |
| 176 | <!-- List item --> |
| 177 | |
| 178 | <dimen name="car_ui_list_item_height">116dp</dimen> |
| 179 | <dimen name="car_ui_list_item_start_inset">0dp</dimen> |
| 180 | <dimen name="car_ui_list_item_end_inset">0dp</dimen> |
| 181 | <dimen name="car_ui_list_item_text_start_margin">0dp</dimen> |
| 182 | <dimen name="car_ui_list_item_text_no_icon_start_margin">24dp</dimen> |
| 183 | <dimen name="car_ui_list_item_icon_size">@dimen/car_ui_primary_icon_size</dimen> |
| 184 | <dimen name="car_ui_list_item_icon_container_width">112dp</dimen> |
Cole Faust | c08225a | 2019-08-02 13:12:32 -0700 | [diff] [blame] | 185 | </resources> |