blob: c8a05b7812aaa191b2cc24956297595d1fad3188 [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>
Hyunyoung Song7d2fc812016-06-15 12:51:30 -070020 <dimen name="dynamic_grid_page_indicator_height">24dp</dimen>
21 <dimen name="dynamic_grid_page_indicator_line_height">1dp</dimen>
22 <dimen name="dynamic_grid_page_indicator_extra_touch_height">12dp</dimen>
Winson Chung6e1c0d32013-10-25 15:24:24 -070023 <dimen name="dynamic_grid_icon_drawable_padding">4dp</dimen>
Adam Cohen3b185e22013-10-29 14:45:58 -070024 <dimen name="dynamic_grid_workspace_page_spacing">8dp</dimen>
Winson Chungc82d2622013-11-06 13:23:29 -080025 <dimen name="dynamic_grid_overview_min_icon_zone_height">80dp</dimen>
26 <dimen name="dynamic_grid_overview_max_icon_zone_height">120dp</dimen>
Sunny Goyal8dfe2da2014-10-24 16:26:52 -070027 <dimen name="dynamic_grid_overview_bar_item_width">80dp</dimen>
28 <dimen name="dynamic_grid_overview_bar_spacer_width">20dp</dimen>
Winson Chung5f8afe62013-08-12 16:19:28 -070029
Sunny Goyal47328fd2016-05-25 18:56:41 -070030 <dimen name="dynamic_grid_workspace_top_padding">12dp</dimen>
31 <!-- Minimum space between workspace and hotseat in spring loaded mode -->
32 <dimen name="dynamic_grid_min_spring_loaded_space">8dp</dimen>
33
34<!-- Drop target bar -->
35 <dimen name="dynamic_grid_drop_target_size">48dp</dimen>
36 <dimen name="vert_drop_target_vertical_gap">20dp</dimen>
37 <dimen name="vert_drop_target_horizontal_gap">14dp</dimen>
38
Sunny Goyalba776d52015-05-18 20:52:57 -070039<!-- App Widget resize frame -->
Adam Cohen59400422014-03-05 18:07:04 -080040 <dimen name="default_widget_padding">8dp</dimen>
Sunny Goyalba776d52015-05-18 20:52:57 -070041 <dimen name="widget_handle_margin">13dp</dimen>
42 <dimen name="resize_frame_background_padding">24dp</dimen>
Adam Cohen59400422014-03-05 18:07:04 -080043
Winson Chungb1777442015-06-16 13:35:04 -070044<!-- Container -->
Winson Chung94804152015-05-08 13:06:44 -070045 <!-- Note: This needs to match the fixed insets for the search box. -->
Winson Chungef7f8742015-06-04 17:18:17 -070046 <dimen name="container_bounds_inset">8dp</dimen>
47 <!-- Notes: container_bounds_inset - quantum_panel_outer_padding -->
48 <dimen name="container_bounds_minus_quantum_panel_padding_inset">4dp</dimen>
Winson Chung94804152015-05-08 13:06:44 -070049
Winson67795952015-08-20 12:23:52 -070050 <dimen name="container_fastscroll_thumb_min_width">5dp</dimen>
51 <dimen name="container_fastscroll_thumb_max_width">9dp</dimen>
52 <dimen name="container_fastscroll_thumb_height">72dp</dimen>
Winson Chungb1777442015-06-16 13:35:04 -070053 <dimen name="container_fastscroll_thumb_touch_inset">-24dp</dimen>
54 <dimen name="container_fastscroll_popup_size">72dp</dimen>
55 <dimen name="container_fastscroll_popup_text_size">48dp</dimen>
56
Sunny Goyal05c8c572016-03-17 11:57:24 -070057 <item name="container_margin" format="fraction" type="fraction">0%</item>
58 <dimen name="container_min_margin">8dp</dimen>
Sunny Goyal13178ac2016-04-04 16:35:22 -070059 <dimen name="container_max_width">0dp</dimen>
Sunny Goyal05c8c572016-03-17 11:57:24 -070060
Winson Chungb1777442015-06-16 13:35:04 -070061<!-- All Apps -->
Tony Wickhamd6b40372015-09-23 18:37:57 -070062 <dimen name="all_apps_button_scale_down">0dp</dimen>
Winson Chungfbc5b182015-06-12 14:18:55 -070063 <dimen name="all_apps_grid_view_start_margin">0dp</dimen>
Winson Chung5f4e0fd2015-05-22 11:12:27 -070064 <dimen name="all_apps_grid_section_y_offset">8dp</dimen>
65 <dimen name="all_apps_grid_section_text_size">24sp</dimen>
Sunny Goyal0ac7ede2016-01-29 13:14:14 -080066 <dimen name="all_apps_search_bar_height">60dp</dimen>
Peter Schiller310a9882016-06-30 13:52:36 -070067 <dimen name="all_apps_search_bar_icon_margin_right">4dp</dimen>
68 <dimen name="all_apps_search_bar_icon_margin_top">1dp</dimen>
Winson Chung5f4e0fd2015-05-22 11:12:27 -070069 <dimen name="all_apps_icon_top_bottom_padding">8dp</dimen>
Winson Chung2c6e5cc2015-06-01 14:38:24 -070070 <dimen name="all_apps_icon_width_gap">24dp</dimen>
Winson Chung1ae7a502015-07-06 17:14:51 -070071 <!-- The top padding should account for the existing all_apps_list_top_bottom_padding -->
72 <dimen name="all_apps_prediction_icon_top_padding">8dp</dimen>
73 <dimen name="all_apps_prediction_icon_bottom_padding">18dp</dimen>
Winson Chungb1777442015-06-16 13:35:04 -070074 <dimen name="all_apps_list_top_bottom_padding">8dp</dimen>
Winsonfee206f2015-08-19 17:26:21 -070075 <dimen name="all_apps_empty_search_message_top_offset">40dp</dimen>
76 <dimen name="all_apps_empty_search_bg_top_offset">144dp</dimen>
77 <dimen name="all_apps_background_canvas_width">700dp</dimen>
78 <dimen name="all_apps_background_canvas_height">475dp</dimen>
Sunny Goyal12fb2cc2015-05-13 17:40:42 -070079
Sunny Goyal0ac7ede2016-01-29 13:14:14 -080080 <!-- Search bar in All Apps -->
Peter Schiller310a9882016-06-30 13:52:36 -070081 <dimen name="all_apps_header_max_elevation">3dp</dimen>
Sunny Goyal0ac7ede2016-01-29 13:14:14 -080082 <dimen name="all_apps_header_scroll_to_elevation">16dp</dimen>
83 <dimen name="all_apps_header_shadow_height">6dp</dimen>
84
85 <!-- The overflow is used to create a bottom border, by drawing other three sides
86 outside the bounds. Ensure that:
87 all_apps_search_bar_bg_overflow < (-3 * all_apps_search_bar_divider_width)
88 -6dp is picked at random, any smaller value would do.
89 -->
90 <dimen name="all_apps_search_bar_bg_overflow">-6dp</dimen>
91 <dimen name="all_apps_search_bar_divider_width">1dp</dimen>
92
Hyunyoung Songeac1dac2016-06-21 16:37:13 -070093 <dimen name="all_apps_bezel_swipe_height">24dp</dimen>
Hyunyoung Song3f471442015-04-08 19:01:34 -070094<!-- Widget tray -->
Hyunyoung Song3f471442015-04-08 19:01:34 -070095 <dimen name="widget_preview_label_vertical_padding">8dp</dimen>
96 <dimen name="widget_preview_label_horizontal_padding">8dp</dimen>
97
Hyunyoung Songf17a1c92015-04-27 17:01:32 -070098 <dimen name="widget_section_height">56dp</dimen>
Sunny Goyal0e08f162015-05-12 11:32:39 -070099 <dimen name="widget_section_icon_size">40dp</dimen>
100 <dimen name="widget_section_vertical_padding">8dp</dimen>
101 <dimen name="widget_section_horizontal_padding">16dp</dimen>
Sunny Goyal756cd262015-08-20 12:33:21 -0700102 <dimen name="widget_section_indent">0dp</dimen>
Hyunyoung Song3f471442015-04-08 19:01:34 -0700103
Hyunyoung Songf17a1c92015-04-27 17:01:32 -0700104 <dimen name="widget_row_padding">8dp</dimen>
Hyunyoung Song4b69f2c2015-05-11 14:55:07 -0700105 <dimen name="widget_row_divider">2dp</dimen>
Michael Jurkadac85912012-05-18 15:04:49 -0700106
107 <!-- Padding applied to shortcut previews -->
108 <dimen name="shortcut_preview_padding_left">0dp</dimen>
109 <dimen name="shortcut_preview_padding_right">0dp</dimen>
110 <dimen name="shortcut_preview_padding_top">0dp</dimen>
Adam Cohen76fc0852011-06-17 13:26:23 -0700111
Winson Chung5f4e0fd2015-05-22 11:12:27 -0700112<!-- Dragging -->
113 <!-- Drag padding to add to the bottom of drop targets -->
114 <dimen name="drop_target_drag_padding">14dp</dimen>
115 <dimen name="drop_target_text_size">14sp</dimen>
116
Tony Wickham855b1b52016-03-28 16:56:30 -0700117 <!-- the distance an icon must be dragged before button drop targets accept it -->
118 <dimen name="drag_distanceThreshold">30dp</dimen>
119
Tony Wickham0f97b782015-12-02 17:55:07 -0800120 <!-- the area at the edge of the screen that makes the workspace go left
121 or right while you're dragging. -->
122 <dimen name="scroll_zone">20dp</dimen>
123
Winson Chung5f4e0fd2015-05-22 11:12:27 -0700124 <!-- When dragging an item, how much bigger (fixed dps) the dragged view
125 should be. If 0, it will not be scaled at all. -->
126 <dimen name="dragViewScale">12dp</dimen>
127
128 <!-- Elevation for the drag view. It should be larger than elevation of all other drag sources
129 and drop targets like all-apps and folders -->
130 <dimen name="drag_elevation">30dp</dimen>
131
Sunny Goyal756cd262015-08-20 12:33:21 -0700132 <dimen name="drag_flingToDeleteMinVelocity">-1500dp</dimen>
133
Tony Wickham95cdb3a2016-02-18 14:37:07 -0800134 <dimen name="spring_loaded_panel_border">1dp</dimen>
135
Sunny Goyal5a92b232015-05-13 13:06:11 -0700136<!-- Theme -->
137 <dimen name="quantum_panel_outer_padding">4dp</dimen>
138
Adam Cohen76fc0852011-06-17 13:26:23 -0700139<!-- Folders -->
Adam Cohen119e8982016-02-05 14:47:50 -0800140 <!-- The size of the padding on the preview background drawable -->
141 <dimen name="folder_preview_padding">6dp</dimen>
Sunny Goyalc64cfdd2016-05-18 14:12:02 -0700142 <dimen name="page_indicator_dot_size">8dp</dimen>
Sunny Goyalffe83f12014-08-14 17:39:34 -0700143
144<!-- Sizes for managed profile badges -->
145 <dimen name="profile_badge_size">24dp</dimen>
Hyunyoung Song41e33692015-06-15 12:26:54 -0700146 <dimen name="profile_badge_margin">5dp</dimen>
Hyunyoung Song6babf2e2015-05-14 17:08:45 -0700147 <dimen name="profile_badge_minimum_top">2dp</dimen>
Sunny Goyal4fe5a372015-05-14 19:55:10 -0700148
149<!-- Shadows and outlines -->
150 <dimen name="blur_size_thin_outline">1dp</dimen>
151 <dimen name="blur_size_medium_outline">2dp</dimen>
152 <dimen name="blur_size_click_shadow">4dp</dimen>
153 <dimen name="click_shadow_high_shift">2dp</dimen>
154
Sunny Goyalac366432015-08-14 17:10:14 -0700155<!-- Pending widget -->
156 <dimen name="pending_widget_min_padding">8dp</dimen>
157 <dimen name="pending_widget_elevation">2dp</dimen>
158
Tony Wickham1bce7fd2016-04-28 17:39:03 -0700159<!-- Deep shortcuts -->
160 <dimen name="deep_shortcuts_elevation">9dp</dimen>
161 <dimen name="deep_shortcuts_width">180dp</dimen>
162 <dimen name="deep_shortcuts_spacing">4dp</dimen>
163 <dimen name="deep_shortcuts_drag_view_scale">6dp</dimen>
164 <!-- an icon with shortcuts must be dragged this much distance away from the nearest edge
165 of the shortcut container before the container is removed. -->
166 <dimen name="deep_shortcuts_start_drag_threshold">35dp</dimen>
167 <dimen name="deep_shortcut_icon_size">36dp</dimen>
168
Jeffrey Sharkey7bd74a42009-03-31 18:25:03 -0700169</resources>