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 | ace150c | 2019-08-23 18:15:22 -0700 | [diff] [blame] | 25 | <!-- Margin --> |
Brad Stenning | be10fe3 | 2019-09-12 13:32:03 -0700 | [diff] [blame] | 26 | <dimen name="car_ui_margin">112dp</dimen> |
Roberto Perez | ace150c | 2019-08-23 18:15:22 -0700 | [diff] [blame] | 27 | |
| 28 | <!-- Paddings --> |
Brad Stenning | be10fe3 | 2019-09-12 13:32:03 -0700 | [diff] [blame] | 29 | <dimen name="car_ui_padding_0">4dp</dimen> |
| 30 | <dimen name="car_ui_padding_1">8dp</dimen> |
| 31 | <dimen name="car_ui_padding_2">16dp</dimen> |
| 32 | <dimen name="car_ui_padding_3">24dp</dimen> |
| 33 | <dimen name="car_ui_padding_4">32dp</dimen> |
| 34 | <dimen name="car_ui_padding_5">64dp</dimen> |
| 35 | <dimen name="car_ui_padding_6">96dp</dimen> |
Cole Faust | c08225a | 2019-08-02 13:12:32 -0700 | [diff] [blame] | 36 | |
| 37 | <!-- Tabs --> |
Roberto Perez | ace150c | 2019-08-23 18:15:22 -0700 | [diff] [blame] | 38 | |
| 39 | <!-- Exact size of the tab textbox. Use @dimen/wrap_content if this must be flexible --> |
Brad Stenning | be10fe3 | 2019-09-12 13:32:03 -0700 | [diff] [blame] | 40 | <dimen name="car_ui_tab_text_width">135dp</dimen> |
Roberto Perez | ace150c | 2019-08-23 18:15:22 -0700 | [diff] [blame] | 41 | <!-- Horizontal padding between tabs --> |
Brad Stenning | be10fe3 | 2019-09-12 13:32:03 -0700 | [diff] [blame] | 42 | <dimen name="car_ui_tab_padding_x">12dp</dimen> |
Roberto Perez | ace150c | 2019-08-23 18:15:22 -0700 | [diff] [blame] | 43 | <!-- Tab icon width (if icons are enabled) --> |
Brad Stenning | be10fe3 | 2019-09-12 13:32:03 -0700 | [diff] [blame] | 44 | <dimen name="car_ui_tab_icon_width">36dp</dimen> |
Roberto Perez | ace150c | 2019-08-23 18:15:22 -0700 | [diff] [blame] | 45 | <!-- Tab icon height (if icons are enabled) --> |
Brad Stenning | be10fe3 | 2019-09-12 13:32:03 -0700 | [diff] [blame] | 46 | <dimen name="car_ui_tab_icon_height">36dp</dimen> |
Cole Faust | c08225a | 2019-08-02 13:12:32 -0700 | [diff] [blame] | 47 | |
| 48 | <!-- Car toolbar --> |
Brad Stenning | be10fe3 | 2019-09-12 13:32:03 -0700 | [diff] [blame] | 49 | <dimen name="car_ui_toolbar_row_height">96dp</dimen> |
| 50 | <dimen name="car_ui_toolbar_first_row_height">@dimen/car_ui_toolbar_row_height</dimen> |
| 51 | <dimen name="car_ui_toolbar_second_row_height">@dimen/car_ui_toolbar_row_height</dimen> |
Ram Parameswaran | 6505d78 | 2019-09-23 18:20:14 -0700 | [diff] [blame] | 52 | <dimen name="car_ui_toolbar_start_inset">0dp</dimen> |
| 53 | <dimen name="car_ui_toolbar_end_inset">0dp</dimen> |
| 54 | <dimen name="car_ui_toolbar_top_inset">0dp</dimen> |
| 55 | <dimen name="car_ui_toolbar_bottom_inset">0dp</dimen> |
Cole Faust | be31b19 | 2019-10-03 10:46:21 -0700 | [diff] [blame] | 56 | <dimen name="car_ui_toolbar_margin">@dimen/car_ui_margin</dimen> |
Brad Stenning | be10fe3 | 2019-09-12 13:32:03 -0700 | [diff] [blame] | 57 | <dimen name="car_ui_toolbar_icon_size">@dimen/car_ui_primary_icon_size</dimen> |
| 58 | <dimen name="car_ui_toolbar_title_margin_start">@dimen/car_ui_padding_2</dimen> |
| 59 | <dimen name="car_ui_toolbar_menu_item_margin">@dimen/car_ui_padding_2</dimen> |
Cole Faust | 6f52f14 | 2019-10-09 13:23:25 -0700 | [diff] [blame^] | 60 | <dimen name="car_ui_toolbar_menu_item_icon_ripple_radius">48dp</dimen> |
| 61 | <dimen name="car_ui_toolbar_menu_item_icon_size">@dimen/car_ui_primary_icon_size</dimen> |
| 62 | <dimen name="car_ui_toolbar_menu_item_icon_background_size">54dp</dimen> |
Roberto Perez | ace150c | 2019-08-23 18:15:22 -0700 | [diff] [blame] | 63 | |
| 64 | <!-- Internal artifacts. Do not overlay --> |
| 65 | <item name="wrap_content" format="integer" type="dimen">-2</item> |
Priyank Singh | 7e87d5c | 2019-08-29 10:38:52 -0700 | [diff] [blame] | 66 | |
Priyank Singh | 7361b4b | 2019-10-04 11:24:10 -0700 | [diff] [blame] | 67 | <!-- Default Scroll Bar for CarUiRecyclerView --> |
Brad Stenning | be10fe3 | 2019-09-12 13:32:03 -0700 | [diff] [blame] | 68 | <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] | 69 | <dimen name="car_ui_scrollbar_thumb_width">7dp</dimen> |
Brad Stenning | be10fe3 | 2019-09-12 13:32:03 -0700 | [diff] [blame] | 70 | <dimen name="car_ui_scrollbar_separator_margin">16dp</dimen> |
| 71 | <dimen name="car_ui_scrollbar_margin">@dimen/car_ui_margin</dimen> |
| 72 | <dimen name="car_ui_scrollbar_thumb_radius">100dp</dimen> |
Priyank Singh | 7e87d5c | 2019-08-29 10:38:52 -0700 | [diff] [blame] | 73 | |
Brad Stenning | be10fe3 | 2019-09-12 13:32:03 -0700 | [diff] [blame] | 74 | <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] | 75 | <item name="car_ui_scrollbar_milliseconds_per_inch" format="float" type="dimen">150.0</item> |
| 76 | <item name="car_ui_scrollbar_deceleration_times_divisor" format="float" type="dimen">0.45</item> |
| 77 | <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] | 78 | |
Brad Stenning | be10fe3 | 2019-09-12 13:32:03 -0700 | [diff] [blame] | 79 | <dimen name="car_ui_scrollbar_padding_start">0dp</dimen> |
| 80 | <dimen name="car_ui_scrollbar_padding_end">0dp</dimen> |
davidln | 05ecc74 | 2019-09-09 15:03:45 -0700 | [diff] [blame] | 81 | |
| 82 | <!-- Preferences --> |
| 83 | |
Brad Stenning | be10fe3 | 2019-09-12 13:32:03 -0700 | [diff] [blame] | 84 | <dimen name="car_ui_preference_category_text_size">24sp</dimen> |
| 85 | <dimen name="car_ui_preference_summary_text_size">24sp</dimen> |
| 86 | <dimen name="car_ui_preference_title_text_size">32sp</dimen> |
| 87 | <dimen name="car_ui_preference_edit_text_dialog_message_text_size">24sp</dimen> |
davidln | 05ecc74 | 2019-09-09 15:03:45 -0700 | [diff] [blame] | 88 | |
Brad Stenning | be10fe3 | 2019-09-12 13:32:03 -0700 | [diff] [blame] | 89 | <dimen name="car_ui_preference_content_margin_top">16dp</dimen> |
| 90 | <dimen name="car_ui_preference_content_margin_bottom">16dp</dimen> |
| 91 | <dimen name="car_ui_preference_icon_size">44dp</dimen> |
| 92 | <dimen name="car_ui_preference_icon_margin_end">16dp</dimen> |
davidln | 05ecc74 | 2019-09-09 15:03:45 -0700 | [diff] [blame] | 93 | |
Brad Stenning | be10fe3 | 2019-09-12 13:32:03 -0700 | [diff] [blame] | 94 | <dimen name="car_ui_preference_category_min_height">76dp</dimen> |
| 95 | <dimen name="car_ui_preference_category_icon_size">44dp</dimen> |
| 96 | <dimen name="car_ui_preference_category_icon_margin_end">16dp</dimen> |
davidln | 05ecc74 | 2019-09-09 15:03:45 -0700 | [diff] [blame] | 97 | |
Brad Stenning | be10fe3 | 2019-09-12 13:32:03 -0700 | [diff] [blame] | 98 | <dimen name="car_ui_preference_dropdown_padding_start">112dp</dimen> |
davidln | 05ecc74 | 2019-09-09 15:03:45 -0700 | [diff] [blame] | 99 | |
Brad Stenning | be10fe3 | 2019-09-12 13:32:03 -0700 | [diff] [blame] | 100 | <dimen name="car_ui_preference_edit_text_dialog_margin_top">32dp</dimen> |
| 101 | <dimen name="car_ui_preference_edit_text_dialog_margin_bottom">32dp</dimen> |
| 102 | <dimen name="car_ui_preference_edit_text_dialog_message_margin_bottom">32dp</dimen> |
| 103 | <dimen name="car_ui_preference_edit_text_dialog_message_margin_start">24dp</dimen> |
| 104 | <dimen name="car_ui_preference_edit_text_dialog_message_margin_end">24dp</dimen> |
| 105 | <dimen name="car_ui_preference_edit_text_dialog_text_margin_start">24dp</dimen> |
| 106 | <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] | 107 | |
| 108 | <!-- Alert dialog --> |
| 109 | |
| 110 | <dimen name="car_ui_dialog_edittext_height">50dp</dimen> |
| 111 | <dimen name="car_ui_dialog_edittext_margin_top">10dp</dimen> |
| 112 | <dimen name="car_ui_dialog_edittext_margin_bottom">10dp</dimen> |
| 113 | <dimen name="car_ui_dialog_edittext_margin_start">22dp</dimen> |
| 114 | <dimen name="car_ui_dialog_edittext_margin_end">22dp</dimen> |
Cole Faust | c08225a | 2019-08-02 13:12:32 -0700 | [diff] [blame] | 115 | </resources> |