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 | |
| 38 | <!-- Tabs --> |
Roberto Perez | ace150c | 2019-08-23 18:15:22 -0700 | [diff] [blame] | 39 | |
| 40 | <!-- 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] | 41 | <dimen name="car_ui_toolbar_tab_text_width">135dp</dimen> |
Roberto Perez | ace150c | 2019-08-23 18:15:22 -0700 | [diff] [blame] | 42 | <!-- Horizontal padding between tabs --> |
Cole Faust | db6866c | 2019-10-09 15:56:07 -0700 | [diff] [blame] | 43 | <dimen name="car_ui_toolbar_tab_padding_x">12dp</dimen> |
Roberto Perez | ace150c | 2019-08-23 18:15:22 -0700 | [diff] [blame] | 44 | <!-- Tab icon width (if icons are enabled) --> |
Cole Faust | db6866c | 2019-10-09 15:56:07 -0700 | [diff] [blame] | 45 | <dimen name="car_ui_toolbar_tab_icon_width">36dp</dimen> |
Roberto Perez | ace150c | 2019-08-23 18:15:22 -0700 | [diff] [blame] | 46 | <!-- Tab icon height (if icons are enabled) --> |
Cole Faust | db6866c | 2019-10-09 15:56:07 -0700 | [diff] [blame] | 47 | <dimen name="car_ui_toolbar_tab_icon_height">36dp</dimen> |
Cole Faust | c08225a | 2019-08-02 13:12:32 -0700 | [diff] [blame] | 48 | |
Roberto Perez | d4f5271 | 2019-10-04 11:00:40 -0700 | [diff] [blame] | 49 | <!-- Toolbar --> |
Roberto Perez | 90c45bb | 2019-10-21 17:30:48 -0700 | [diff] [blame^] | 50 | |
| 51 | <!-- Default height for both toolbar rows. See car_ui_toolbar_first_row_height and |
| 52 | car_ui_toolbar_second_row_height --> |
Brad Stenning | be10fe3 | 2019-09-12 13:32:03 -0700 | [diff] [blame] | 53 | <dimen name="car_ui_toolbar_row_height">96dp</dimen> |
Roberto Perez | 90c45bb | 2019-10-21 17:30:48 -0700 | [diff] [blame^] | 54 | <!-- Height of the top toolbar row. This can be customized independently. --> |
Brad Stenning | be10fe3 | 2019-09-12 13:32:03 -0700 | [diff] [blame] | 55 | <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^] | 56 | <!-- 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] | 57 | <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^] | 58 | <!-- Padding on the toolbar start (e.g.: distance between the container start and the start of |
| 59 | nav icon or logo) --> |
Ram Parameswaran | 6505d78 | 2019-09-23 18:20:14 -0700 | [diff] [blame] | 60 | <dimen name="car_ui_toolbar_start_inset">0dp</dimen> |
Roberto Perez | 90c45bb | 2019-10-21 17:30:48 -0700 | [diff] [blame^] | 61 | <!-- 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] | 62 | <dimen name="car_ui_toolbar_end_inset">0dp</dimen> |
Roberto Perez | 90c45bb | 2019-10-21 17:30:48 -0700 | [diff] [blame^] | 63 | <!-- Top padding --> |
Ram Parameswaran | 6505d78 | 2019-09-23 18:20:14 -0700 | [diff] [blame] | 64 | <dimen name="car_ui_toolbar_top_inset">0dp</dimen> |
Roberto Perez | 90c45bb | 2019-10-21 17:30:48 -0700 | [diff] [blame^] | 65 | <!-- Bottom padding --> |
Ram Parameswaran | 6505d78 | 2019-09-23 18:20:14 -0700 | [diff] [blame] | 66 | <dimen name="car_ui_toolbar_bottom_inset">0dp</dimen> |
Roberto Perez | 90c45bb | 2019-10-21 17:30:48 -0700 | [diff] [blame^] | 67 | <!-- Toolbar title/tabs start margin. Toolbar navigation icon (or logo if no navigation icon is |
| 68 | 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] | 69 | <dimen name="car_ui_toolbar_margin">@dimen/car_ui_margin</dimen> |
Roberto Perez | 90c45bb | 2019-10-21 17:30:48 -0700 | [diff] [blame^] | 70 | <!-- Navigation icon or logo size --> |
Brad Stenning | be10fe3 | 2019-09-12 13:32:03 -0700 | [diff] [blame] | 71 | <dimen name="car_ui_toolbar_icon_size">@dimen/car_ui_primary_icon_size</dimen> |
Roberto Perez | 90c45bb | 2019-10-21 17:30:48 -0700 | [diff] [blame^] | 72 | <!-- Margin between the logo and the title, when both logo and navigation icons are used --> |
| 73 | <dimen name="car_ui_toolbar_title_logo_padding">0dp</dimen> |
| 74 | <!-- Margin at the start of the title --> |
Brad Stenning | be10fe3 | 2019-09-12 13:32:03 -0700 | [diff] [blame] | 75 | <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^] | 76 | <!-- Space at the end and in between menu items --> |
Brad Stenning | be10fe3 | 2019-09-12 13:32:03 -0700 | [diff] [blame] | 77 | <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^] | 78 | <!-- Ripple effect radius for icon menu items --> |
Cole Faust | 6f52f14 | 2019-10-09 13:23:25 -0700 | [diff] [blame] | 79 | <dimen name="car_ui_toolbar_menu_item_icon_ripple_radius">48dp</dimen> |
Roberto Perez | 90c45bb | 2019-10-21 17:30:48 -0700 | [diff] [blame^] | 80 | <!-- Icon size for icon menu items --> |
Cole Faust | 6f52f14 | 2019-10-09 13:23:25 -0700 | [diff] [blame] | 81 | <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^] | 82 | <!-- Icon background size for icon menu items --> |
Cole Faust | 6f52f14 | 2019-10-09 13:23:25 -0700 | [diff] [blame] | 83 | <dimen name="car_ui_toolbar_menu_item_icon_background_size">54dp</dimen> |
Roberto Perez | ace150c | 2019-08-23 18:15:22 -0700 | [diff] [blame] | 84 | |
| 85 | <!-- Internal artifacts. Do not overlay --> |
| 86 | <item name="wrap_content" format="integer" type="dimen">-2</item> |
Priyank Singh | 7e87d5c | 2019-08-29 10:38:52 -0700 | [diff] [blame] | 87 | |
Roberto Perez | d4f5271 | 2019-10-04 11:00:40 -0700 | [diff] [blame] | 88 | <!-- CarUiRecyclerView --> |
Roberto Perez | d4f5271 | 2019-10-04 11:00:40 -0700 | [diff] [blame] | 89 | |
Roberto Perez | 90c45bb | 2019-10-21 17:30:48 -0700 | [diff] [blame^] | 90 | <dimen name="car_ui_recyclerview_divider_height">0dp</dimen> |
| 91 | <dimen name="car_ui_recyclerview_divider_start_margin">0dp</dimen> |
| 92 | <dimen name="car_ui_recyclerview_divider_end_margin">0dp</dimen> |
| 93 | <dimen name="car_ui_recyclerview_divider_top_margin">0dp</dimen> |
| 94 | <dimen name="car_ui_recyclerview_divider_bottom_margin">0dp</dimen> |
| 95 | |
| 96 | <!-- CarUiRecyclerView default scrollbar --> |
| 97 | |
| 98 | <dimen name="car_ui_scrollbar_container_width">@dimen/car_ui_margin</dimen> |
Brad Stenning | be10fe3 | 2019-09-12 13:32:03 -0700 | [diff] [blame] | 99 | <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] | 100 | <dimen name="car_ui_scrollbar_thumb_width">7dp</dimen> |
Brad Stenning | be10fe3 | 2019-09-12 13:32:03 -0700 | [diff] [blame] | 101 | <dimen name="car_ui_scrollbar_separator_margin">16dp</dimen> |
| 102 | <dimen name="car_ui_scrollbar_margin">@dimen/car_ui_margin</dimen> |
| 103 | <dimen name="car_ui_scrollbar_thumb_radius">100dp</dimen> |
Priyank Singh | 7e87d5c | 2019-08-29 10:38:52 -0700 | [diff] [blame] | 104 | |
Brad Stenning | be10fe3 | 2019-09-12 13:32:03 -0700 | [diff] [blame] | 105 | <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] | 106 | <item name="car_ui_scrollbar_milliseconds_per_inch" format="float" type="dimen">150.0</item> |
| 107 | <item name="car_ui_scrollbar_deceleration_times_divisor" format="float" type="dimen">0.45</item> |
| 108 | <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] | 109 | |
Brad Stenning | be10fe3 | 2019-09-12 13:32:03 -0700 | [diff] [blame] | 110 | <dimen name="car_ui_scrollbar_padding_start">0dp</dimen> |
| 111 | <dimen name="car_ui_scrollbar_padding_end">0dp</dimen> |
davidln | 05ecc74 | 2019-09-09 15:03:45 -0700 | [diff] [blame] | 112 | |
| 113 | <!-- Preferences --> |
| 114 | |
Brad Stenning | be10fe3 | 2019-09-12 13:32:03 -0700 | [diff] [blame] | 115 | <dimen name="car_ui_preference_category_text_size">24sp</dimen> |
| 116 | <dimen name="car_ui_preference_summary_text_size">24sp</dimen> |
| 117 | <dimen name="car_ui_preference_title_text_size">32sp</dimen> |
| 118 | <dimen name="car_ui_preference_edit_text_dialog_message_text_size">24sp</dimen> |
davidln | 05ecc74 | 2019-09-09 15:03:45 -0700 | [diff] [blame] | 119 | |
Brad Stenning | be10fe3 | 2019-09-12 13:32:03 -0700 | [diff] [blame] | 120 | <dimen name="car_ui_preference_content_margin_top">16dp</dimen> |
| 121 | <dimen name="car_ui_preference_content_margin_bottom">16dp</dimen> |
| 122 | <dimen name="car_ui_preference_icon_size">44dp</dimen> |
| 123 | <dimen name="car_ui_preference_icon_margin_end">16dp</dimen> |
davidln | 05ecc74 | 2019-09-09 15:03:45 -0700 | [diff] [blame] | 124 | |
Brad Stenning | be10fe3 | 2019-09-12 13:32:03 -0700 | [diff] [blame] | 125 | <dimen name="car_ui_preference_category_min_height">76dp</dimen> |
| 126 | <dimen name="car_ui_preference_category_icon_size">44dp</dimen> |
| 127 | <dimen name="car_ui_preference_category_icon_margin_end">16dp</dimen> |
davidln | 05ecc74 | 2019-09-09 15:03:45 -0700 | [diff] [blame] | 128 | |
Brad Stenning | be10fe3 | 2019-09-12 13:32:03 -0700 | [diff] [blame] | 129 | <dimen name="car_ui_preference_dropdown_padding_start">112dp</dimen> |
davidln | 05ecc74 | 2019-09-09 15:03:45 -0700 | [diff] [blame] | 130 | |
Brad Stenning | be10fe3 | 2019-09-12 13:32:03 -0700 | [diff] [blame] | 131 | <dimen name="car_ui_preference_edit_text_dialog_margin_top">32dp</dimen> |
| 132 | <dimen name="car_ui_preference_edit_text_dialog_margin_bottom">32dp</dimen> |
| 133 | <dimen name="car_ui_preference_edit_text_dialog_message_margin_bottom">32dp</dimen> |
| 134 | <dimen name="car_ui_preference_edit_text_dialog_message_margin_start">24dp</dimen> |
| 135 | <dimen name="car_ui_preference_edit_text_dialog_message_margin_end">24dp</dimen> |
| 136 | <dimen name="car_ui_preference_edit_text_dialog_text_margin_start">24dp</dimen> |
| 137 | <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] | 138 | |
Roberto Perez | d4f5271 | 2019-10-04 11:00:40 -0700 | [diff] [blame] | 139 | <dimen name="car_ui_preference_switch_text_size">30sp</dimen> |
| 140 | <dimen name="car_ui_preference_switch_width">288dp</dimen> |
| 141 | <dimen name="car_ui_preference_switch_width_half">144dp</dimen> |
| 142 | <dimen name="car_ui_preference_switch_height">101dp</dimen> |
| 143 | |
Priyank Singh | 7ddf220 | 2019-09-11 19:39:37 -0700 | [diff] [blame] | 144 | <!-- Alert dialog --> |
| 145 | |
| 146 | <dimen name="car_ui_dialog_edittext_height">50dp</dimen> |
| 147 | <dimen name="car_ui_dialog_edittext_margin_top">10dp</dimen> |
| 148 | <dimen name="car_ui_dialog_edittext_margin_bottom">10dp</dimen> |
| 149 | <dimen name="car_ui_dialog_edittext_margin_start">22dp</dimen> |
| 150 | <dimen name="car_ui_dialog_edittext_margin_end">22dp</dimen> |
Cole Faust | c08225a | 2019-08-02 13:12:32 -0700 | [diff] [blame] | 151 | </resources> |