1<?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>
18
19    <dimen name="click_shadow_elevation">4dp</dimen>
20
21    <!-- Dynamic Grid -->
22    <dimen name="dynamic_grid_edge_margin">8dp</dimen>
23    <dimen name="dynamic_grid_icon_drawable_padding">8dp</dimen>
24    <!-- Minimum space between workspace and hotseat in spring loaded mode -->
25    <dimen name="dynamic_grid_min_spring_loaded_space">8dp</dimen>
26
27    <dimen name="dynamic_grid_cell_layout_padding">5.5dp</dimen>
28    <dimen name="dynamic_grid_cell_padding_x">8dp</dimen>
29
30    <!-- Hotseat -->
31    <dimen name="dynamic_grid_hotseat_top_padding">8dp</dimen>
32    <dimen name="dynamic_grid_hotseat_bottom_padding">2dp</dimen>
33    <!-- Extra bottom padding for non-tall devices. -->
34    <dimen name="dynamic_grid_hotseat_bottom_non_tall_padding">0dp</dimen>
35    <dimen name="dynamic_grid_hotseat_extra_vertical_size">34dp</dimen>
36    <dimen name="dynamic_grid_hotseat_side_padding">0dp</dimen>
37
38    <!-- Workspace page indicator -->
39    <dimen name="workspace_page_indicator_height">24dp</dimen>
40    <dimen name="workspace_page_indicator_line_height">1dp</dimen>
41    <dimen name="workspace_page_indicator_overlap_workspace">0dp</dimen>
42
43    <!-- Hotseat/all-apps scrim -->
44    <dimen name="all_apps_scrim_blur">4dp</dimen>
45    <dimen name="vertical_drag_handle_width">18dp</dimen>
46    <dimen name="vertical_drag_handle_height">6dp</dimen>
47    <dimen name="vertical_drag_handle_elevation">1dp</dimen>
48    <dimen name="vertical_drag_handle_touch_size">48dp</dimen>
49    <dimen name="vertical_drag_handle_padding_in_vertical_bar_layout">16dp</dimen>
50
51<!-- Drop target bar -->
52    <dimen name="dynamic_grid_drop_target_size">48dp</dimen>
53    <dimen name="drop_target_vertical_gap">20dp</dimen>
54
55<!-- App Widget resize frame -->
56    <dimen name="widget_handle_margin">13dp</dimen>
57    <dimen name="resize_frame_background_padding">24dp</dimen>
58
59<!-- Fast scroll -->
60    <dimen name="fastscroll_track_min_width">6dp</dimen>
61    <dimen name="fastscroll_track_max_width">8dp</dimen>
62    <dimen name="fastscroll_thumb_padding">1dp</dimen>
63    <dimen name="fastscroll_thumb_height">52dp</dimen>
64    <dimen name="fastscroll_thumb_touch_inset">-24dp</dimen>
65
66    <dimen name="fastscroll_popup_width">75dp</dimen>
67    <dimen name="fastscroll_popup_height">62dp</dimen>
68    <dimen name="fastscroll_popup_padding">13dp</dimen>
69    <dimen name="fastscroll_popup_text_size">32dp</dimen>
70    <dimen name="fastscroll_popup_margin">19dp</dimen>
71
72    <!--
73      Fast scroller draws the content horizontally centered. The end of the track should be
74      aligned at the end of the container.
75        fastscroll_end_margin = - (fastscroll_width - fastscroll_track_min_width) / 2
76    -->
77    <dimen name="fastscroll_width">58dp</dimen>
78    <dimen name="fastscroll_end_margin">-26dp</dimen>
79
80    <!-- All Apps -->
81    <dimen name="all_apps_search_bar_field_height">48dp</dimen>
82    <dimen name="all_apps_search_bar_bottom_padding">30dp</dimen>
83    <dimen name="all_apps_empty_search_message_top_offset">40dp</dimen>
84    <dimen name="all_apps_empty_search_bg_top_offset">144dp</dimen>
85    <dimen name="all_apps_background_canvas_width">700dp</dimen>
86    <dimen name="all_apps_background_canvas_height">475dp</dimen>
87    <dimen name="all_apps_header_tab_height">50dp</dimen>
88    <dimen name="all_apps_tabs_indicator_height">2dp</dimen>
89    <dimen name="all_apps_header_top_padding">36dp</dimen>
90    <dimen name="all_apps_work_profile_tab_footer_top_padding">16dp</dimen>
91    <dimen name="all_apps_work_profile_tab_footer_bottom_padding">20dp</dimen>
92    <dimen name="all_apps_tabs_side_padding">12dp</dimen>
93    <dimen name="all_apps_divider_height">1dp</dimen>
94
95    <dimen name="all_apps_tip_bottom_margin">8dp</dimen>
96    <!-- The size of corner radius of the arrow in the arrow toast. -->
97    <dimen name="arrow_toast_corner_radius">2dp</dimen>
98
99
100<!-- Search bar in All Apps -->
101    <dimen name="all_apps_header_max_elevation">3dp</dimen>
102    <dimen name="all_apps_header_scroll_to_elevation">16dp</dimen>
103    <dimen name="all_apps_header_shadow_height">6dp</dimen>
104
105    <dimen name="all_apps_divider_margin_vertical">8dp</dimen>
106
107    <dimen name="work_profile_footer_padding">20dp</dimen>
108    <dimen name="work_profile_footer_text_size">16sp</dimen>
109
110<!-- Widget tray -->
111    <dimen name="widget_preview_label_vertical_padding">8dp</dimen>
112    <dimen name="widget_preview_label_horizontal_padding">16dp</dimen>
113
114    <dimen name="widget_preview_shadow_blur">0.5dp</dimen>
115    <dimen name="widget_preview_key_shadow_distance">1dp</dimen>
116    <dimen name="widget_preview_corner_radius">2dp</dimen>
117    <dimen name="widget_preview_cell_divider_width">0.5dp</dimen>
118    <dimen name="widget_preview_shortcut_padding">8dp</dimen>
119
120    <dimen name="widget_section_height">56dp</dimen>
121    <dimen name="widget_section_icon_size">40dp</dimen>
122    <dimen name="widget_section_vertical_padding">8dp</dimen>
123    <dimen name="widget_section_horizontal_padding">16dp</dimen>
124    <dimen name="widget_section_indent">0dp</dimen>
125
126    <dimen name="widget_row_padding">8dp</dimen>
127    <dimen name="widget_row_divider">2dp</dimen>
128
129    <!-- Padding applied to shortcut previews -->
130    <dimen name="shortcut_preview_padding_left">0dp</dimen>
131    <dimen name="shortcut_preview_padding_right">0dp</dimen>
132    <dimen name="shortcut_preview_padding_top">0dp</dimen>
133
134<!-- Dragging -->
135    <!-- Drag padding to add to the bottom of drop targets -->
136    <dimen name="drop_target_drag_padding">14dp</dimen>
137    <dimen name="drop_target_text_size">14sp</dimen>
138    <dimen name="drop_target_shadow_elevation">2dp</dimen>
139
140    <!-- the distance an icon must be dragged before button drop targets accept it -->
141    <dimen name="drag_distanceThreshold">30dp</dimen>
142
143    <!-- Elevation for the drag view. It should be larger than elevation of all other drag sources
144         and drop targets like all-apps and folders -->
145    <dimen name="drag_elevation">30dp</dimen>
146
147    <dimen name="drag_flingToDeleteMinVelocity">-1500dp</dimen>
148
149    <dimen name="spring_loaded_panel_border">1dp</dimen>
150
151<!-- Folders -->
152    <dimen name="page_indicator_dot_size">8dp</dimen>
153
154    <dimen name="folder_cell_x_padding">9dp</dimen>
155    <dimen name="folder_cell_y_padding">6dp</dimen>
156    <dimen name="folder_child_text_size">13sp</dimen>
157    <dimen name="folder_label_padding_top">4dp</dimen>
158    <dimen name="folder_label_padding_bottom">12dp</dimen>
159    <dimen name="folder_label_text_size">14sp</dimen>
160
161<!-- Sizes for managed profile badges -->
162    <dimen name="profile_badge_size">24dp</dimen>
163    <dimen name="profile_badge_margin">5dp</dimen>
164    <dimen name="profile_badge_minimum_top">2dp</dimen>
165
166<!-- Shadows and outlines -->
167    <dimen name="blur_size_thin_outline">1dp</dimen>
168    <dimen name="blur_size_medium_outline">2dp</dimen>
169    <dimen name="blur_size_click_shadow">4dp</dimen>
170    <dimen name="click_shadow_high_shift">2dp</dimen>
171
172<!-- Pending widget -->
173    <dimen name="pending_widget_min_padding">8dp</dimen>
174    <dimen name="pending_widget_elevation">2dp</dimen>
175
176<!-- Deep shortcuts -->
177    <dimen name="deep_shortcuts_elevation">9dp</dimen>
178    <dimen name="bg_popup_item_width">220dp</dimen>
179    <dimen name="bg_popup_item_height">56dp</dimen>
180    <dimen name="bg_popup_item_condensed_height">48dp</dimen>
181    <dimen name="pre_drag_view_scale">6dp</dimen>
182    <!-- an icon with shortcuts must be dragged this far before the container is removed. -->
183    <dimen name="deep_shortcuts_start_drag_threshold">16dp</dimen>
184    <dimen name="deep_shortcut_icon_size">36dp</dimen>
185    <dimen name="deep_shortcut_drawable_padding">8dp</dimen>
186    <dimen name="deep_shortcut_drag_handle_size">16dp</dimen>
187    <dimen name="popup_padding_start">10dp</dimen>
188    <dimen name="popup_padding_end">16dp</dimen>
189    <dimen name="popup_vertical_padding">4dp</dimen>
190    <dimen name="popup_arrow_width">10dp</dimen>
191    <dimen name="popup_arrow_height">8dp</dimen>
192    <dimen name="popup_arrow_vertical_offset">-2dp</dimen>
193    <!-- popup_padding_start + deep_shortcut_icon_size / 2 -->
194    <dimen name="popup_arrow_horizontal_center_start">28dp</dimen>
195    <!-- popup_padding_end + deep_shortcut_drag_handle_size / 2 -->
196    <dimen name="popup_arrow_horizontal_center_end">24dp</dimen>
197    <dimen name="popup_arrow_corner_radius">2dp</dimen>
198    <!-- popup_padding_start + icon_size + 10dp -->
199    <dimen name="deep_shortcuts_text_padding_start">56dp</dimen>
200    <!-- popup_item_width - deep_shortcuts_text_padding_start -->
201    <dimen name="deep_shortcuts_divider_width">164dp</dimen>
202    <dimen name="system_shortcut_icon_size">24dp</dimen>
203    <!-- popup_arrow_center_start - system_shortcut_icon_size / 2 -->
204    <dimen name="system_shortcut_margin_start">16dp</dimen>
205    <dimen name="system_shortcut_header_height">48dp</dimen>
206    <dimen name="system_shortcut_header_icon_touch_size">48dp</dimen>
207    <!-- (touch_size - icon_size) / 2 -->
208    <dimen name="system_shortcut_header_icon_padding">12dp</dimen>
209
210<!-- Notifications -->
211    <dimen name="bg_round_rect_radius">8dp</dimen>
212    <dimen name="notification_padding_start">16dp</dimen>
213    <dimen name="notification_padding_end">12dp</dimen>
214    <!-- notification_padding_end + (icon_size - footer_icon_size) / 2 -->
215    <dimen name="notification_footer_icon_row_padding">15dp</dimen>
216    <dimen name="notification_header_height">36dp</dimen>
217    <dimen name="notification_main_height">84dp</dimen>
218    <dimen name="notification_footer_height">32dp</dimen>
219    <!-- How much space to keep as padding for the last notification when the footer collapses -->
220    <dimen name="notification_empty_footer_height">6dp</dimen>
221    <dimen name="notification_header_text_size">13sp</dimen>
222    <dimen name="notification_header_count_text_size">12sp</dimen>
223    <dimen name="notification_main_title_size">16sp</dimen>
224    <dimen name="notification_main_text_size">14sp</dimen>
225    <dimen name="notification_icon_size">24dp</dimen>
226    <dimen name="notification_footer_icon_size">18dp</dimen>
227    <!-- notification_icon_size + notification_padding_end + 16dp padding between icon and text -->
228    <dimen name="notification_main_text_padding_end">52dp</dimen>
229    <dimen name="horizontal_ellipsis_size">18dp</dimen>
230    <!-- arrow_horizontal_offset_start - (ellipsis_size - arrow_width) / 2 -->
231    <dimen name="horizontal_ellipsis_offset">19dp</dimen>
232    <dimen name="popup_item_divider_height">0.5dp</dimen>
233    <dimen name="swipe_helper_falsing_threshold">70dp</dimen>
234
235<!-- Overview -->
236    <dimen name="options_menu_icon_size">24dp</dimen>
237    <dimen name="options_menu_thumb_size">32dp</dimen>
238
239<!-- Snackbar -->
240    <dimen name="snackbar_height">48dp</dimen>
241    <dimen name="snackbar_content_height">32dp</dimen>
242    <dimen name="snackbar_padding">8dp</dimen>
243    <dimen name="snackbar_min_margin_left_right">6dp</dimen>
244    <dimen name="snackbar_max_margin_left_right">72dp</dimen>
245    <dimen name="snackbar_margin_bottom">30dp</dimen>
246    <dimen name="snackbar_elevation">3dp</dimen>
247    <dimen name="snackbar_min_text_size">12sp</dimen>
248    <dimen name="snackbar_max_text_size">14sp</dimen>
249
250<!-- Theming related -->
251    <dimen name="default_dialog_corner_radius">8dp</dimen>
252
253    <!-- Onboarding bottomsheet related -->
254    <dimen name="bottom_sheet_edu_padding">24dp</dimen>
255
256</resources>
257