unplugged-system/packages/apps/Car/Launcher/res/values/dimens.xml

140 lines
7.3 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (c) 2018 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<resources>
<!-- CarLauncher Activity values -->
<dimen name="launcher_card_corner_radius">8dp</dimen>
<!-- Vertical percentage of screen (not occupied by maps to devote to the contextual space
(Ex: date time temp) -->
<item name="contextual_screen_percentage" type="dimen" format="float">.6</item>
<!--Used for the space between the top, and bottom of the screen and the content -->
<dimen name="vertical_border_size">@*android:dimen/car_padding_1</dimen>
<!-- Used for the space between the start, and end of the screen and the content -->
<dimen name="horizontal_border_size">@*android:dimen/car_padding_1</dimen>
<!-- Margin surrounding fragments on the main activity -->
<dimen name="main_screen_widget_margin">16dp</dimen>
<!-- AppGridActivity -->
<dimen name="app_grid_width">1440dp</dimen>
<dimen name="app_grid_height">628dp</dimen>
<dimen name="app_grid_margin_horizontal">70dp</dimen>
<dimen name="app_grid_margin_vertical">0dp</dimen>
<dimen name="app_icon_size">84dp</dimen>
<dimen name="app_icon_scaled_size">100dp</dimen>
<item name="app_icon_opacity_unavailable" type="dimen" format="float">0.5</item>
<item name="app_icon_opacity" type="dimen" format="float">1.0</item>
<dimen name="app_name_margin_horizontal">6dp</dimen>
<dimen name="app_item_highlight_corner_radius">18dp</dimen>
<dimen name="app_item_highlight_edge_width">5dp</dimen>
<dimen name="page_indicator_edge_corner_radius">4dp</dimen>
<dimen name="page_indicator_height">4dp</dimen>
<!-- Gap between top of screen (statusbar) and header content -->
<dimen name="recent_apps_divider_margin">40dp</dimen>
<dimen name="app_grid_header_margin">@*android:dimen/car_padding_4</dimen>
<dimen name="panel_margin">@*android:dimen/car_margin</dimen>
<!-- Height of the text and exit button on the app selection screen -->
<dimen name="app_bar_height">@*android:dimen/car_app_bar_height</dimen>
<dimen name="icon_size">@*android:dimen/car_primary_icon_size</dimen>
<dimen name="recent_apps_row_height">@*android:dimen/car_list_divider_height</dimen>
<dimen name="app_grid_touch_target_size">@*android:dimen/car_touch_target_size</dimen>
<!-- Padding around the touch target (makes ripple look better) -->
<dimen name="app_touch_target_padding">@*android:dimen/car_padding_2</dimen>
<dimen name="app_touch_target_margin">@*android:dimen/car_padding_1</dimen>
<dimen name="app_grid_row_margin">@*android:dimen/car_padding_4</dimen>
<dimen name="app_icon_description_margin">@*android:dimen/car_padding_2</dimen>
<dimen name="app_icon_ripple_radius">@*android:dimen/car_radius_2</dimen>
<!-- AppSearchActivity -->
<dimen name="search_item_width">760dp</dimen>
<dimen name="search_result_margin">@*android:dimen/car_padding_1</dimen>
<dimen name="search_result_text_margin">@*android:dimen/car_keyline_3</dimen>
<dimen name="search_box_height">65dp</dimen>
<dimen name="search_bar_margin">@*android:dimen/car_keyline_1</dimen>
<dimen name="search_bar_drawable_text_padding">46dp</dimen>
<!-- Card dimensions -->
<dimen name="card_width">388dp</dimen>
<!-- Card Header dimensions -->
<dimen name="card_content_margin">24dp</dimen>
<dimen name="card_icon_size">36dp</dimen>
<dimen name="card_name_margin_start">16dp</dimen>
<!-- Card Content dimensions -->
<dimen name="media_top_margin">24dp</dimen>
<dimen name="descriptive_text_only_top_margin">32dp</dimen>
<dimen name="descriptive_text_with_controls_top_margin">24dp</dimen>
<!-- 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-->
<dimen name="card_background_scrim_alpha" format="float">0.72</dimen>
<!--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-->
<dimen name="card_background_image_blur_radius" format="float">0.36</dimen>
<!-- card_content_descriptive_text dimensions -->
<dimen name="card_content_image_size">76dp</dimen>
<dimen name="card_content_image_margin">16dp</dimen>
<dimen name="descriptive_text_margin_top">8dp</dimen>
<dimen name="secondary_text_margin_top">0dp</dimen>
<!-- card_content_text_block dimensions -->
<dimen name="text_block_top_margin">24dp</dimen>
<!-- card_content_button_trio dimensions -->
<dimen name="home_card_button_size">44dp</dimen>
<dimen name="button_outline_thickness">4dp</dimen>
<dimen name="button_tap_target_size">76dp</dimen>
<dimen name="button_tap_target_icon_padding">8dp</dimen>
<dimen name="button_trio_margin">24dp</dimen>
<!-- card_content_playback_controls dimensions -->
<dimen name="playback_controls_margin">24dp</dimen>
<!-- card_content_tap_for_more dimensions -->
<dimen name="tap_text_margin">24dp</dimen>
<dimen name="control_bar_padding">0dp</dimen>
<!-- percentage of view holders on the next page that must be fully visible to the user to
trigger page snap to the next page -->
<item name="page_snap_threshold" format="float" type="dimen">0.3</item>
<!-- Velocity value of a swipe to trigger a fling to the next page -->
<item name="fling_threshold" format="float" type="dimen">1000</item>
<!-- distance that users must drag (hold and attempt to move the app icon) to initiate
drag and drop for reordering app icons. -->
<dimen name="threshold_to_start_drag_drop">8dp</dimen>
<!-- Recent task -->
<dimen name="recent_task_icon_size">48dp</dimen>
<dimen name="recent_task_dismiss_button_size">@dimen/recent_task_icon_size</dimen>
<dimen name="recent_task_col_space">64dp</dimen>
<!-- The fraction that a recent task should move(from its original position) to
be considered as swiped -->
<item name="recent_task_swiped_threshold" type="dimen" format="float">0.3</item>
<!-- Pixel value by with a recent task should move(from its original position) to
start a swipe gesture. If the gesture has a smaller change, the gesture is forwarded to
other handlers. -->
<item name="recent_task_start_swipe_threshold" type="dimen" format="float">5</item>
<item name="disabled_recent_task_alpha" type="dimen" format="float">0.35</item>
<!-- task width can be calculated using the following formula:
available height of thumbnail * width of screen / height of screen between the insets
This will allow most task thumbnails to be displayed without cropping. -->
<dimen name="recent_task_width_first">894dp</dimen>
<dimen name="recent_task_width">359dp</dimen>
</resources>