blob: 281de08ae7a4332e573dcc626f3756a5cb1491df [file] [log] [blame]
Jeffrey Sharkey7bd74a42009-03-31 18:25:03 -07001<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2009 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
17<resources>
Winson Chung5f8afe62013-08-12 16:19:28 -070018<!-- Dynamic Grid -->
19 <dimen name="dynamic_grid_edge_margin">6dp</dimen>
Tony Wickhama3c74d12015-10-23 11:43:47 -070020 <dimen name="dynamic_grid_search_bar_height">48dp</dimen>
Tony Wickham8a758062016-02-01 14:15:20 -080021 <!-- We want 46dp extra for the tall search bar. -->
22 <dimen name="dynamic_grid_search_bar_height_tall">94dp</dimen>
Tony Wickhama3c74d12015-10-23 11:43:47 -070023 <dimen name="qsb_internal_padding_top">8dp</dimen>
24 <dimen name="qsb_internal_padding_bottom">8dp</dimen>
Tony Wickham8a758062016-02-01 14:15:20 -080025 <dimen name="dynamic_grid_search_bar_extra_top_padding">0dp</dimen>
26 <!-- Reduce the space between the status bar and the search bar when the search bar is tall -->
27 <dimen name="dynamic_grid_search_bar_negative_top_padding_short">-4dp</dimen>
Tony Wickhama3c74d12015-10-23 11:43:47 -070028 <dimen name="dynamic_grid_search_bar_bottom_padding">4dp</dimen>
29 <!-- Reduce the padding between the search bar and workspace when the search bar is tall -->
Tony Wickham8a758062016-02-01 14:15:20 -080030 <dimen name="dynamic_grid_search_bar_bottom_negative_padding_short">-6dp</dimen>
Tony Wickhama3c74d12015-10-23 11:43:47 -070031 <dimen name="dynamic_grid_search_bar_bottom_padding_tablet">16dp</dimen>
Adam Cohene13327d2014-06-19 11:32:38 -070032 <dimen name="dynamic_grid_page_indicator_height">20dp</dimen>
Winson Chung6e1c0d32013-10-25 15:24:24 -070033 <dimen name="dynamic_grid_icon_drawable_padding">4dp</dimen>
Adam Cohen3b185e22013-10-29 14:45:58 -070034 <dimen name="dynamic_grid_workspace_page_spacing">8dp</dimen>
Winson Chungc82d2622013-11-06 13:23:29 -080035 <dimen name="dynamic_grid_overview_min_icon_zone_height">80dp</dimen>
36 <dimen name="dynamic_grid_overview_max_icon_zone_height">120dp</dimen>
Sunny Goyal8dfe2da2014-10-24 16:26:52 -070037 <dimen name="dynamic_grid_overview_bar_item_width">80dp</dimen>
38 <dimen name="dynamic_grid_overview_bar_spacer_width">20dp</dimen>
Winson Chung5f8afe62013-08-12 16:19:28 -070039
Sunny Goyalba776d52015-05-18 20:52:57 -070040<!-- App Widget resize frame -->
Adam Cohen59400422014-03-05 18:07:04 -080041 <dimen name="default_widget_padding">8dp</dimen>
Sunny Goyalba776d52015-05-18 20:52:57 -070042 <dimen name="widget_handle_margin">13dp</dimen>
43 <dimen name="resize_frame_background_padding">24dp</dimen>
Adam Cohen59400422014-03-05 18:07:04 -080044
Winson Chung82f55532011-08-09 14:14:23 -070045<!-- Cling -->
Sunny Goyal424418b2014-08-22 16:09:37 -070046 <dimen name="cling_migration_logo_height">240dp</dimen>
47 <dimen name="cling_migration_logo_width">165dp</dimen>
48 <dimen name="cling_migration_bg_size">400dp</dimen>
49 <dimen name="cling_migration_bg_shift">-200dp</dimen>
Sunny Goyal10c77642014-09-12 11:51:32 -070050 <dimen name="cling_migration_content_margin">16dp</dimen>
51 <dimen name="cling_migration_content_width">280dp</dimen>
Sunny Goyal424418b2014-08-22 16:09:37 -070052
Winson Chung1cad91e2011-05-25 17:41:01 -070053<!-- QSB -->
Winson Chungb301f3f2013-04-12 12:36:56 -070054 <dimen name="toolbar_button_vertical_padding">4dip</dimen>
Winson Chung649723c2011-07-06 20:41:23 -070055 <dimen name="toolbar_button_horizontal_padding">12dip</dimen>
Winson Chung1cad91e2011-05-25 17:41:01 -070056
Winson Chungb1777442015-06-16 13:35:04 -070057<!-- Container -->
Winson Chung94804152015-05-08 13:06:44 -070058 <!-- Note: This needs to match the fixed insets for the search box. -->
Winson Chungef7f8742015-06-04 17:18:17 -070059 <dimen name="container_bounds_inset">8dp</dimen>
60 <!-- Notes: container_bounds_inset - quantum_panel_outer_padding -->
61 <dimen name="container_bounds_minus_quantum_panel_padding_inset">4dp</dimen>
Winson Chung94804152015-05-08 13:06:44 -070062
Winson67795952015-08-20 12:23:52 -070063 <dimen name="container_fastscroll_thumb_min_width">5dp</dimen>
64 <dimen name="container_fastscroll_thumb_max_width">9dp</dimen>
65 <dimen name="container_fastscroll_thumb_height">72dp</dimen>
Winson Chungb1777442015-06-16 13:35:04 -070066 <dimen name="container_fastscroll_thumb_touch_inset">-24dp</dimen>
67 <dimen name="container_fastscroll_popup_size">72dp</dimen>
68 <dimen name="container_fastscroll_popup_text_size">48dp</dimen>
69
Sunny Goyal05c8c572016-03-17 11:57:24 -070070 <item name="container_margin" format="fraction" type="fraction">0%</item>
71 <dimen name="container_min_margin">8dp</dimen>
Sunny Goyal13178ac2016-04-04 16:35:22 -070072 <dimen name="container_max_width">0dp</dimen>
Sunny Goyal05c8c572016-03-17 11:57:24 -070073
Winson Chungb1777442015-06-16 13:35:04 -070074<!-- All Apps -->
Tony Wickhamd6b40372015-09-23 18:37:57 -070075 <dimen name="all_apps_button_scale_down">0dp</dimen>
Winson Chungfbc5b182015-06-12 14:18:55 -070076 <dimen name="all_apps_grid_view_start_margin">0dp</dimen>
Winson Chung5f4e0fd2015-05-22 11:12:27 -070077 <dimen name="all_apps_grid_section_y_offset">8dp</dimen>
78 <dimen name="all_apps_grid_section_text_size">24sp</dimen>
Sunny Goyal0ac7ede2016-01-29 13:14:14 -080079 <dimen name="all_apps_search_bar_height">60dp</dimen>
Winson Chung5f4e0fd2015-05-22 11:12:27 -070080 <dimen name="all_apps_icon_top_bottom_padding">8dp</dimen>
Winson Chung2c6e5cc2015-06-01 14:38:24 -070081 <dimen name="all_apps_icon_width_gap">24dp</dimen>
Winson Chung1ae7a502015-07-06 17:14:51 -070082 <!-- The top padding should account for the existing all_apps_list_top_bottom_padding -->
83 <dimen name="all_apps_prediction_icon_top_padding">8dp</dimen>
84 <dimen name="all_apps_prediction_icon_bottom_padding">18dp</dimen>
Winson Chungb1777442015-06-16 13:35:04 -070085 <dimen name="all_apps_list_top_bottom_padding">8dp</dimen>
Winsonfee206f2015-08-19 17:26:21 -070086 <dimen name="all_apps_empty_search_message_top_offset">40dp</dimen>
87 <dimen name="all_apps_empty_search_bg_top_offset">144dp</dimen>
88 <dimen name="all_apps_background_canvas_width">700dp</dimen>
89 <dimen name="all_apps_background_canvas_height">475dp</dimen>
Sunny Goyal12fb2cc2015-05-13 17:40:42 -070090
Sunny Goyal0ac7ede2016-01-29 13:14:14 -080091 <!-- Search bar in All Apps -->
92 <dimen name="all_apps_header_max_elevation">4dp</dimen>
93 <dimen name="all_apps_header_scroll_to_elevation">16dp</dimen>
94 <dimen name="all_apps_header_shadow_height">6dp</dimen>
95
96 <!-- The overflow is used to create a bottom border, by drawing other three sides
97 outside the bounds. Ensure that:
98 all_apps_search_bar_bg_overflow < (-3 * all_apps_search_bar_divider_width)
99 -6dp is picked at random, any smaller value would do.
100 -->
101 <dimen name="all_apps_search_bar_bg_overflow">-6dp</dimen>
102 <dimen name="all_apps_search_bar_divider_width">1dp</dimen>
103
Hyunyoung Song3f471442015-04-08 19:01:34 -0700104<!-- Widget tray -->
Hyunyoung Song3f471442015-04-08 19:01:34 -0700105 <dimen name="widget_preview_label_vertical_padding">8dp</dimen>
106 <dimen name="widget_preview_label_horizontal_padding">8dp</dimen>
107
Hyunyoung Songf17a1c92015-04-27 17:01:32 -0700108 <dimen name="widget_section_height">56dp</dimen>
Sunny Goyal0e08f162015-05-12 11:32:39 -0700109 <dimen name="widget_section_icon_size">40dp</dimen>
110 <dimen name="widget_section_vertical_padding">8dp</dimen>
111 <dimen name="widget_section_horizontal_padding">16dp</dimen>
Sunny Goyal756cd262015-08-20 12:33:21 -0700112 <dimen name="widget_section_indent">0dp</dimen>
Hyunyoung Song3f471442015-04-08 19:01:34 -0700113
Hyunyoung Songf17a1c92015-04-27 17:01:32 -0700114 <dimen name="widget_row_padding">8dp</dimen>
Hyunyoung Song4b69f2c2015-05-11 14:55:07 -0700115 <dimen name="widget_row_divider">2dp</dimen>
Michael Jurkadac85912012-05-18 15:04:49 -0700116
117 <!-- Padding applied to shortcut previews -->
118 <dimen name="shortcut_preview_padding_left">0dp</dimen>
119 <dimen name="shortcut_preview_padding_right">0dp</dimen>
120 <dimen name="shortcut_preview_padding_top">0dp</dimen>
Adam Cohen76fc0852011-06-17 13:26:23 -0700121
Winson Chung5f4e0fd2015-05-22 11:12:27 -0700122<!-- Dragging -->
123 <!-- Drag padding to add to the bottom of drop targets -->
124 <dimen name="drop_target_drag_padding">14dp</dimen>
125 <dimen name="drop_target_text_size">14sp</dimen>
126
Tony Wickham855b1b52016-03-28 16:56:30 -0700127 <!-- the distance an icon must be dragged before button drop targets accept it -->
128 <dimen name="drag_distanceThreshold">30dp</dimen>
129
Tony Wickham0f97b782015-12-02 17:55:07 -0800130 <!-- the area at the edge of the screen that makes the workspace go left
131 or right while you're dragging. -->
132 <dimen name="scroll_zone">20dp</dimen>
133
Winson Chung5f4e0fd2015-05-22 11:12:27 -0700134 <!-- When dragging an item, how much bigger (fixed dps) the dragged view
135 should be. If 0, it will not be scaled at all. -->
136 <dimen name="dragViewScale">12dp</dimen>
137
138 <!-- Elevation for the drag view. It should be larger than elevation of all other drag sources
139 and drop targets like all-apps and folders -->
140 <dimen name="drag_elevation">30dp</dimen>
141
Sunny Goyal756cd262015-08-20 12:33:21 -0700142 <dimen name="drag_flingToDeleteMinVelocity">-1500dp</dimen>
143
Tony Wickham95cdb3a2016-02-18 14:37:07 -0800144 <dimen name="spring_loaded_panel_border">1dp</dimen>
145
Sunny Goyal5a92b232015-05-13 13:06:11 -0700146<!-- Theme -->
147 <dimen name="quantum_panel_outer_padding">4dp</dimen>
148
Adam Cohen76fc0852011-06-17 13:26:23 -0700149<!-- Folders -->
Adam Cohen119e8982016-02-05 14:47:50 -0800150 <!-- The size of the padding on the preview background drawable -->
151 <dimen name="folder_preview_padding">6dp</dimen>
Sunny Goyalffe83f12014-08-14 17:39:34 -0700152
153<!-- Sizes for managed profile badges -->
154 <dimen name="profile_badge_size">24dp</dimen>
Hyunyoung Song41e33692015-06-15 12:26:54 -0700155 <dimen name="profile_badge_margin">5dp</dimen>
Hyunyoung Song6babf2e2015-05-14 17:08:45 -0700156 <dimen name="profile_badge_minimum_top">2dp</dimen>
Sunny Goyal4fe5a372015-05-14 19:55:10 -0700157
158<!-- Shadows and outlines -->
159 <dimen name="blur_size_thin_outline">1dp</dimen>
160 <dimen name="blur_size_medium_outline">2dp</dimen>
161 <dimen name="blur_size_click_shadow">4dp</dimen>
162 <dimen name="click_shadow_high_shift">2dp</dimen>
163
Sunny Goyalac366432015-08-14 17:10:14 -0700164<!-- Pending widget -->
165 <dimen name="pending_widget_min_padding">8dp</dimen>
166 <dimen name="pending_widget_elevation">2dp</dimen>
167
Jeffrey Sharkey7bd74a42009-03-31 18:25:03 -0700168</resources>