1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 Copyright (c) 2018 The Android Open Source Project 4 5 Licensed under the Apache License, Version 2.0 (the "License"); 6 you may not use this file except in compliance with the License. 7 You may obtain a copy of the License at 8 9 http://www.apache.org/licenses/LICENSE-2.0 10 11 Unless required by applicable law or agreed to in writing, software 12 distributed under the License is distributed on an "AS IS" BASIS, 13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 See the License for the specific language governing permissions and 15 limitations under the License. 16--> 17<resources> 18 <!-- CarLauncher Activity values --> 19 <dimen name="launcher_card_corner_radius">8dp</dimen> 20 <!-- Vertical percentage of screen (not occupied by maps to devote to the contextual space 21 (Ex: date time temp) --> 22 <item name="contextual_screen_percentage" type="dimen" format="float">.6</item> 23 24 <!--Used for the space between the top, and bottom of the screen and the content --> 25 <dimen name="vertical_border_size">@*android:dimen/car_padding_1</dimen> 26 <!-- Used for the space between the start, and end of the screen and the content --> 27 <dimen name="horizontal_border_size">@*android:dimen/car_padding_1</dimen> 28 <!-- Margin surrounding fragments on the main activity --> 29 <dimen name="main_screen_widget_margin">16dp</dimen> 30 31 <!-- AppGridActivity --> 32 <dimen name="app_grid_width">1440dp</dimen> 33 <dimen name="app_grid_height">628dp</dimen> 34 <dimen name="app_grid_margin_horizontal">70dp</dimen> 35 <dimen name="app_grid_margin_vertical">0dp</dimen> 36 <dimen name="app_icon_size">84dp</dimen> 37 <dimen name="app_icon_scaled_size">100dp</dimen> 38 <item name="app_icon_opacity_unavailable" type="dimen" format="float">0.5</item> 39 <item name="app_icon_opacity" type="dimen" format="float">1.0</item> 40 <dimen name="app_name_margin_horizontal">6dp</dimen> 41 <dimen name="app_item_highlight_corner_radius">18dp</dimen> 42 <dimen name="app_item_highlight_edge_width">5dp</dimen> 43 <dimen name="page_indicator_edge_corner_radius">4dp</dimen> 44 <dimen name="page_indicator_height">4dp</dimen> 45 <!-- Gap between top of screen (statusbar) and header content --> 46 <dimen name="recent_apps_divider_margin">40dp</dimen> 47 <dimen name="app_grid_header_margin">@*android:dimen/car_padding_4</dimen> 48 <dimen name="panel_margin">@*android:dimen/car_margin</dimen> 49 <!-- Height of the text and exit button on the app selection screen --> 50 <dimen name="app_bar_height">@*android:dimen/car_app_bar_height</dimen> 51 <dimen name="icon_size">@*android:dimen/car_primary_icon_size</dimen> 52 <dimen name="recent_apps_row_height">@*android:dimen/car_list_divider_height</dimen> 53 <dimen name="app_grid_touch_target_size">@*android:dimen/car_touch_target_size</dimen> 54 <!-- Padding around the touch target (makes ripple look better) --> 55 <dimen name="app_touch_target_padding">@*android:dimen/car_padding_2</dimen> 56 <dimen name="app_touch_target_margin">@*android:dimen/car_padding_1</dimen> 57 <dimen name="app_grid_row_margin">@*android:dimen/car_padding_4</dimen> 58 <dimen name="app_icon_description_margin">@*android:dimen/car_padding_2</dimen> 59 <dimen name="app_icon_ripple_radius">@*android:dimen/car_radius_2</dimen> 60 61 <!-- AppSearchActivity --> 62 <dimen name="search_item_width">760dp</dimen> 63 <dimen name="search_result_margin">@*android:dimen/car_padding_1</dimen> 64 <dimen name="search_result_text_margin">@*android:dimen/car_keyline_3</dimen> 65 <dimen name="search_box_height">65dp</dimen> 66 <dimen name="search_bar_margin">@*android:dimen/car_keyline_1</dimen> 67 <dimen name="search_bar_drawable_text_padding">46dp</dimen> 68 69 <!-- Card dimensions --> 70 <dimen name="card_width">388dp</dimen> 71 72 <!-- Card Header dimensions --> 73 <dimen name="card_content_margin">24dp</dimen> 74 <dimen name="card_icon_size">36dp</dimen> 75 <dimen name="card_name_margin_start">16dp</dimen> 76 77 <!-- Card Content dimensions --> 78 <dimen name="media_top_margin">24dp</dimen> 79 <dimen name="descriptive_text_only_top_margin">32dp</dimen> 80 <dimen name="descriptive_text_with_controls_top_margin">24dp</dimen> 81 <!-- Percent transparency of the scrim applied to the image used for the card's background as a float between 0 and 1, where 0 applies no darkening scrim--> 82 <dimen name="card_background_scrim_alpha" format="float">0.72</dimen> 83 <!--Percent by which to blur the image used for the card's background as a float between 0 and 1, where 0 is not blurred--> 84 <dimen name="card_background_image_blur_radius" format="float">0.36</dimen> 85 86 <!-- card_content_descriptive_text dimensions --> 87 <dimen name="card_content_image_size">76dp</dimen> 88 <dimen name="card_content_image_margin">16dp</dimen> 89 <dimen name="descriptive_text_margin_top">8dp</dimen> 90 <dimen name="secondary_text_margin_top">0dp</dimen> 91 92 <!-- card_content_text_block dimensions --> 93 <dimen name="text_block_top_margin">24dp</dimen> 94 95 <!-- card_content_button_trio dimensions --> 96 <dimen name="home_card_button_size">44dp</dimen> 97 <dimen name="button_outline_thickness">4dp</dimen> 98 <dimen name="button_tap_target_size">76dp</dimen> 99 <dimen name="button_tap_target_icon_padding">8dp</dimen> 100 <dimen name="button_trio_margin">24dp</dimen> 101 102 <!-- card_content_playback_controls dimensions --> 103 <dimen name="playback_controls_margin">24dp</dimen> 104 105 <!-- card_content_tap_for_more dimensions --> 106 <dimen name="tap_text_margin">24dp</dimen> 107 108 <dimen name="control_bar_padding">0dp</dimen> 109 110 <!-- percentage of view holders on the next page that must be fully visible to the user to 111 trigger page snap to the next page --> 112 <item name="page_snap_threshold" format="float" type="dimen">0.3</item> 113 114 <!-- Velocity value of a swipe to trigger a fling to the next page --> 115 <item name="fling_threshold" format="float" type="dimen">1000</item> 116 117 <!-- distance that users must drag (hold and attempt to move the app icon) to initiate 118 drag and drop for reordering app icons. --> 119 <dimen name="threshold_to_start_drag_drop">8dp</dimen> 120 121 <!-- Recent task --> 122 <dimen name="recent_task_icon_size">48dp</dimen> 123 <dimen name="recent_task_dismiss_button_size">@dimen/recent_task_icon_size</dimen> 124 <dimen name="recent_task_col_space">64dp</dimen> 125 <!-- The fraction that a recent task should move(from its original position) to 126 be considered as swiped --> 127 <item name="recent_task_swiped_threshold" type="dimen" format="float">0.3</item> 128 <!-- Pixel value by with a recent task should move(from its original position) to 129 start a swipe gesture. If the gesture has a smaller change, the gesture is forwarded to 130 other handlers. --> 131 <item name="recent_task_start_swipe_threshold" type="dimen" format="float">5</item> 132 <item name="disabled_recent_task_alpha" type="dimen" format="float">0.35</item> 133 134 <!-- task width can be calculated using the following formula: 135 available height of thumbnail * width of screen / height of screen between the insets 136 This will allow most task thumbnails to be displayed without cropping. --> 137 <dimen name="recent_task_width_first">1036dp</dimen> 138 <dimen name="recent_task_width">432dp</dimen> 139</resources> 140