xref: /aosp_15_r20/frameworks/base/libs/WindowManager/Shell/res/values/dimen.xml (revision d57664e9bc4670b3ecf6748a746a57c557b6bc9e)
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3    Copyright (C) 2020 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    <dimen name="dismiss_circle_size">96dp</dimen>
19    <dimen name="dismiss_circle_small">60dp</dimen>
20
21    <!-- The height of the gradient indicating the dismiss edge when moving a PIP or bubble. -->
22    <dimen name="floating_dismiss_gradient_height">548dp</dimen>
23
24    <!-- The padding around a PiP actions. -->
25    <dimen name="pip_action_padding">16dp</dimen>
26
27    <!-- The height of the PiP actions container in which the actions are vertically centered. -->
28    <dimen name="pip_action_size">48dp</dimen>
29
30    <!-- The width and height of the PiP action asset drawn within the container. -->
31    <dimen name="pip_action_inner_size">20dp</dimen>
32
33    <!-- The width and height of the PiP expand action container. -->
34    <dimen name="pip_expand_action_size">60dp</dimen>
35
36    <!-- The width and height of the PiP expand action asset drawn within the container. -->
37    <dimen name="pip_expand_action_inner_size">28dp</dimen>
38
39    <!-- The padding between actions in the PiP in landscape  Note that the PiP does not reflect
40         the configuration of the device, so we can't use -land resources. -->
41    <dimen name="pip_between_action_padding_land">8dp</dimen>
42
43    <!-- The buffer to use when calculating whether the pip is in an adjust zone. -->
44    <dimen name="pip_bottom_offset_buffer">1dp</dimen>
45
46    <!-- The corner radius for PiP window. -->
47    <dimen name="pip_corner_radius">16dp</dimen>
48
49    <!-- The bottom margin of the PIP drag to dismiss info text shown when moving a PIP. -->
50    <dimen name="pip_dismiss_text_bottom_margin">24dp</dimen>
51
52    <!-- The bottom margin of the expand container when there are actions.
53         Equal to pip_action_size - pip_action_padding. -->
54    <dimen name="pip_expand_container_edge_margin">30dp</dimen>
55
56    <!-- The shortest-edge size of the expanded PiP. -->
57    <dimen name="pip_expanded_shortest_edge_size">160dp</dimen>
58
59    <!-- The additional offset to apply to the IME animation to account for the input field. -->
60    <dimen name="pip_ime_offset">48dp</dimen>
61
62    <!-- The touchable/draggable edge size for PIP resize. -->
63    <dimen name="pip_resize_edge_size">48dp</dimen>
64
65    <!-- PIP Resize handle size, margin and padding. -->
66    <dimen name="pip_resize_handle_size">12dp</dimen>
67    <dimen name="pip_resize_handle_margin">4dp</dimen>
68    <dimen name="pip_resize_handle_padding">0dp</dimen>
69
70    <!-- PIP stash offset size, which is the width of visible PIP region when stashed. -->
71    <dimen name="pip_stash_offset">32dp</dimen>
72
73    <!-- PIP shadow radius, originally as
74         WindowConfiguration#PINNED_WINDOWING_MODE_ELEVATION_IN_DIP -->
75    <dimen name="pip_shadow_radius">5dp</dimen>
76
77    <!-- The width and height of the background for custom action in PiP menu. -->
78    <dimen name="pip_custom_close_bg_size">32dp</dimen>
79
80    <!-- Extra padding between picture-in-picture windows and any registered keep clear areas. -->
81    <dimen name="pip_keep_clear_areas_padding">16dp</dimen>
82
83    <dimen name="dismiss_target_x_size">24dp</dimen>
84    <dimen name="floating_dismiss_bottom_margin">50dp</dimen>
85
86    <!-- How high we lift the divider when touching -->
87    <dimen name="docked_stack_divider_lift_elevation">4dp</dimen>
88
89    <!-- Icon size for split screen -->
90    <dimen name="split_icon_size">72dp</dimen>
91    <!-- Divider handle size for legacy split screen -->
92    <dimen name="docked_divider_handle_width">16dp</dimen>
93    <dimen name="docked_divider_handle_height">2dp</dimen>
94
95    <dimen name="split_divider_handle_region_width">80dp</dimen>
96    <dimen name="split_divider_handle_region_height">48dp</dimen>
97    <!-- The divider touch zone height is intentionally halved in portrait to avoid colliding
98         with the app handle.-->
99    <dimen name="desktop_mode_portrait_split_divider_handle_region_height">24dp</dimen>
100
101    <!-- Divider handle size for split screen -->
102    <dimen name="split_divider_handle_width">40dp</dimen>
103    <dimen name="split_divider_handle_height">4dp</dimen>
104
105    <dimen name="split_divider_bar_width">10dp</dimen>
106    <dimen name="split_divider_corner_size">42dp</dimen>
107
108    <!-- The distance from the edge of the screen to invoke splitscreen when the user is dragging
109         an intent that can be launched into split. -->
110    <dimen name="drag_launchable_intent_edge_margin">48dp</dimen>
111
112    <!-- One-Handed Mode -->
113    <!-- Threshold for dragging distance to enable one-handed mode -->
114    <dimen name="gestures_onehanded_drag_threshold">20dp</dimen>
115
116    <!-- The amount to inset the drop target regions from the edge of the display -->
117    <dimen name="drop_layout_display_margin">16dp</dimen>
118
119    <!-- How much each bubble is elevated. -->
120    <dimen name="bubble_elevation">1dp</dimen>
121    <!-- How much the bubble flyout text container is elevated. -->
122    <dimen name="bubble_flyout_elevation">4dp</dimen>
123    <!-- How much padding is around the left and right sides of the flyout text. -->
124    <dimen name="bubble_flyout_padding_x">14dp</dimen>
125    <!-- How much padding is around the top and bottom of the flyout text. -->
126    <dimen name="bubble_flyout_padding_y">10dp</dimen>
127    <!-- Size of the triangle that points from the flyout to the bubble stack. -->
128    <dimen name="bubble_flyout_pointer_size">6dp</dimen>
129    <!-- How much space to leave between the flyout (tip of the arrow) and the bubble stack. -->
130    <dimen name="bubble_flyout_space_from_bubble">8dp</dimen>
131    <!-- How much space to leave between the flyout text and the avatar displayed in the flyout. -->
132    <dimen name="bubble_flyout_avatar_message_space">6dp</dimen>
133    <!-- If the screen percentage is smaller than this, we'll use this value instead.  -->
134    <dimen name="bubbles_flyout_min_width_large_screen">200dp</dimen>
135    <!-- Padding between status bar and bubbles when displayed in expanded state -->
136    <dimen name="bubble_padding_top">16dp</dimen>
137    <!-- Space between bubbles when expanded. -->
138    <dimen name="bubble_spacing">3dp</dimen>
139    <!-- Size of the bubble. -->
140    <dimen name="bubble_size">60dp</dimen>
141    <!-- Width of bubble name view -->
142    <dimen name="bubble_name_width">90dp</dimen>
143    <!-- Size of the badge shown on the bubble. -->
144    <dimen name="bubble_badge_size">24dp</dimen>
145    <!-- Extra padding added to the touchable rect for bubbles so they are easier to grab. -->
146    <dimen name="bubble_touch_padding">12dp</dimen>
147    <!-- Size of the circle around the bubbles when they're in the dismiss target. -->
148    <dimen name="bubble_dismiss_encircle_size">52dp</dimen>
149    <!-- Padding around the view displayed when the bubble is expanded -->
150    <dimen name="bubble_expanded_view_padding">16dp</dimen>
151    <!-- Padding for the edge of the expanded view that is closest to the edge of the screen used
152         when displaying in landscape on a large screen. -->
153    <dimen name="bubble_expanded_view_largescreen_landscape_padding">102dp</dimen>
154    <!-- The width of the expanded view on large screens. -->
155    <dimen name="bubble_expanded_view_largescreen_width">540dp</dimen>
156    <!-- This should be at least the size of bubble_expanded_view_padding; it is used to include
157         a slight touch slop around the expanded view. -->
158    <dimen name="bubble_expanded_view_slop">8dp</dimen>
159    <!-- Default (and minimum) height of the expanded view shown when the bubble is expanded.
160         If this value changes then R.dimen.bubble_expanded_view_min_height in CtsVerifier
161         should also be updated. -->
162    <dimen name="bubble_expanded_default_height">180dp</dimen>
163    <!-- The width of the overflow view on large screens or in landscape on phone. -->
164    <dimen name="bubble_expanded_view_overflow_width">380dp</dimen>
165    <!-- Inset to apply to the icon in the overflow button. -->
166    <dimen name="bubble_overflow_icon_inset">30dp</dimen>
167    <!-- Default (and minimum) height of bubble overflow -->
168    <dimen name="bubble_overflow_height">480dp</dimen>
169    <!-- Bubble overflow padding when there are no bubbles  -->
170    <dimen name="bubble_overflow_empty_state_padding">16dp</dimen>
171    <!-- Horizontal padding of the overflow container. Total desired padding is 16dp but the items
172         already have 5dp added to each side. -->
173    <dimen name="bubble_overflow_container_padding_horizontal">11dp</dimen>
174    <!-- Horizontal padding between items in the overflow view, half of the desired amount. -->
175    <dimen name="bubble_overflow_item_padding_horizontal">5dp</dimen>
176    <!-- Vertical padding between items in the overflow view, half the desired amount. -->
177    <dimen name="bubble_overflow_item_padding_vertical">16dp</dimen>
178    <!-- Padding of label for bubble overflow view -->
179    <dimen name="bubble_overflow_text_padding">7dp</dimen>
180    <!-- Height of bubble overflow empty state illustration -->
181    <dimen name="bubble_empty_overflow_image_height">200dp</dimen>
182    <!-- Padding of bubble overflow empty state subtitle -->
183    <dimen name="bubble_empty_overflow_subtitle_padding">50dp</dimen>
184    <!-- Height of the triangle that points to the expanded bubble. -->
185    <dimen name="bubble_pointer_height">10dp</dimen>
186    <!-- Width of the triangle that points to the expanded bubble. -->
187    <dimen name="bubble_pointer_width">12dp</dimen>
188    <!-- Radius of the pointer -->
189    <dimen name="bubble_pointer_radius">2dp</dimen>
190    <!-- The amount the pointer overlaps with the expanded view to be flush on an edge with
191         a radius. -->
192    <dimen name="bubble_pointer_overlap">1dp</dimen>
193    <!-- Extra padding around the dismiss target for bubbles -->
194    <dimen name="bubble_dismiss_slop">16dp</dimen>
195    <!-- Height of button allowing users to adjust settings for bubbles. We use sp so that the
196         button can scale with the font size. -->
197    <dimen name="bubble_manage_button_height">36sp</dimen>
198    <!-- Touch area height of the manage button. -->
199    <dimen name="bubble_manage_button_touch_area_height">48dp</dimen>
200    <!-- The margin around the outside of the manage button. -->
201    <dimen name="bubble_manage_button_margin">16dp</dimen>
202    <!-- Height of an item in the bubble manage menu. -->
203    <dimen name="bubble_menu_item_height">60dp</dimen>
204    <!-- Padding applied to the bubble manage menu. -->
205    <dimen name="bubble_menu_padding">16dp</dimen>
206    <!-- Size of the icons in the manage menu. -->
207    <dimen name="bubble_menu_icon_size">24dp</dimen>
208    <!-- Max width of the message bubble-->
209    <dimen name="bubble_message_max_width">144dp</dimen>
210    <!-- Min width of the message bubble -->
211    <dimen name="bubble_message_min_width">32dp</dimen>
212    <!-- Interior padding of the message bubble -->
213    <dimen name="bubble_message_padding">4dp</dimen>
214    <!-- Offset between bubbles in their stacked position. -->
215    <dimen name="bubble_stack_offset">12dp</dimen>
216    <!-- Offset between stack y and animation y for bubble swap. -->
217    <dimen name="bubble_swap_animation_offset">15dp</dimen>
218    <!-- How far offscreen the bubble stack rests. There's some padding around the bubble so
219         add 3dp to the desired overhang. -->
220    <dimen name="bubble_stack_offscreen">2.5dp</dimen>
221    <!-- How far down the screen the stack starts. -->
222    <dimen name="bubble_stack_starting_offset_y">120dp</dimen>
223    <!-- Space between the pointer triangle and the bubble expanded view -->
224    <dimen name="bubble_pointer_margin">5dp</dimen>
225    <!-- Padding applied to the bubble dismiss target. Touches in this padding cause the bubbles to
226         snap to the dismiss target. -->
227    <dimen name="bubble_dismiss_target_padding_x">40dp</dimen>
228    <dimen name="bubble_dismiss_target_padding_y">20dp</dimen>
229    <dimen name="bubble_manage_menu_elevation">4dp</dimen>
230    <!-- Size of manage user education views on large screens or in landscape. -->
231    <dimen name="bubbles_user_education_width">480dp</dimen>
232    <!-- Margin applied to the end of the user education views (really only matters for phone
233         since the width is match parent). -->
234    <dimen name="bubble_user_education_margin_horizontal">24dp</dimen>
235    <!-- Padding applied to the end of the user education view. -->
236    <dimen name="bubble_user_education_padding_horizontal">58dp</dimen>
237    <!-- Padding between the bubble and the user education text. -->
238    <dimen name="bubble_user_education_stack_padding">16dp</dimen>
239    <!-- Max width for the bubble popup view. -->
240    <dimen name="bubble_popup_content_max_width">300dp</dimen>
241    <!-- Horizontal margin for the bubble popup view. -->
242    <dimen name="bubble_popup_margin_horizontal">24dp</dimen>
243    <!-- Top margin for the bubble bar education views. -->
244    <dimen name="bubble_popup_margin_top">24dp</dimen>
245    <!-- Bottom padding for the bubble bar education views. -->
246    <dimen name="bubble_popup_padding_bottom">8dp</dimen>
247    <!-- Text margin for the bubble bar education views. -->
248    <dimen name="bubble_popup_text_margin">16dp</dimen>
249    <!-- Size of icons in the bubble bar education views. -->
250    <dimen name="bubble_popup_icon_size">32dp</dimen>
251    <!-- Width for the bubble popup view arrow. -->
252    <dimen name="bubble_popup_arrow_width">12dp</dimen>
253    <!-- Height for the bubble popup view arrow. -->
254    <dimen name="bubble_popup_arrow_height">10dp</dimen>
255    <!-- Corner radius for the bubble popup view arrow. -->
256    <dimen name="bubble_popup_arrow_corner_radius">2dp</dimen>
257    <!-- Padding for the bubble popup view contents. -->
258    <dimen name="bubble_popup_padding">24dp</dimen>
259    <!-- Elevation of the popup user education views for the bubble bar -->
260    <dimen name="bubble_popup_elevation">2dp</dimen>
261    <!-- The size of the caption bar inset at the top of bubble bar expanded view. -->
262    <dimen name="bubble_bar_expanded_view_caption_height">36dp</dimen>
263    <!-- The width of the caption bar at the top of bubble bar expanded view. -->
264    <dimen name="bubble_bar_expanded_view_caption_width">80dp</dimen>
265    <!-- The height of the handle shown for the caption menu in the bubble bar expanded view. -->
266    <dimen name="bubble_bar_expanded_view_handle_height">4dp</dimen>
267    <!-- Width of the expanded bubble bar view shown when the bubble is expanded. -->
268    <dimen name="bubble_bar_expanded_view_width">412dp</dimen>
269    <!-- Offset of the expanded view when it starts sliding in as part of the switch animation -->
270    <dimen name="bubble_bar_expanded_view_switch_offset">48dp</dimen>
271    <!-- Minimum width of the bubble bar manage menu. -->
272    <dimen name="bubble_bar_manage_menu_min_width">200dp</dimen>
273    <!-- Size of the dismiss icon in the bubble bar manage menu. -->
274    <dimen name="bubble_bar_manage_menu_dismiss_icon_size">16dp</dimen>
275    <!-- Padding of the bubble bar manage menu, provides space for menu shadows -->
276    <dimen name="bubble_bar_manage_menu_padding">8dp</dimen>
277    <!-- Top padding of the bubble bar manage menu -->
278    <dimen name="bubble_bar_manage_menu_padding_top">2dp</dimen>
279    <!-- Spacing between sections of the bubble bar manage menu -->
280    <dimen name="bubble_bar_manage_menu_section_spacing">2dp</dimen>
281    <!-- Height of an item in the bubble bar manage menu. -->
282    <dimen name="bubble_bar_manage_menu_item_height">52dp</dimen>
283    <!-- Size of the icons in the bubble bar manage menu. -->
284    <dimen name="bubble_bar_manage_menu_item_icon_size">20dp</dimen>
285    <!-- Corner radius for expanded view when bubble bar is used -->
286    <dimen name="bubble_bar_expanded_view_corner_radius">16dp</dimen>
287    <!-- Corner radius for expanded view while it is being dragged -->
288    <dimen name="bubble_bar_expanded_view_corner_radius_dragged">28dp</dimen>
289    <!-- Corner radius for expanded view drop target -->
290    <dimen name="bubble_bar_expanded_view_drop_target_corner">28dp</dimen>
291    <dimen name="bubble_bar_expanded_view_drop_target_padding">24dp</dimen>
292    <!-- Width of the box around bottom center of the screen where drag only leads to dismiss -->
293    <dimen name="bubble_bar_dismiss_zone_width">192dp</dimen>
294    <!-- Height of the box around bottom center of the screen where drag only leads to dismiss -->
295    <dimen name="bubble_bar_dismiss_zone_height">242dp</dimen>
296
297    <!-- Bottom and end margin for compat buttons. -->
298    <dimen name="compat_button_margin">24dp</dimen>
299
300    <!-- The radius of the corners of the compat hint bubble. -->
301    <dimen name="compat_hint_corner_radius">28dp</dimen>
302
303    <!-- The width of the compat hint point. -->
304    <dimen name="compat_hint_point_width">10dp</dimen>
305
306    <!-- The end padding for the compat hint. Computed as (compat button width (=48) / 2
307        + compat_button_margin - compat_hint_corner_radius - compat_hint_point_width / 2). -->
308    <dimen name="compat_hint_padding_end">7dp</dimen>
309
310    <!-- The width of the compat hint. -->
311    <dimen name="compat_hint_width">188dp</dimen>
312
313    <!-- The corner radius of the letterbox education dialog. -->
314    <dimen name="letterbox_education_dialog_corner_radius">28dp</dimen>
315
316    <!-- The width of the top icon in the letterbox education dialog. -->
317    <dimen name="letterbox_education_dialog_title_icon_width">32dp</dimen>
318
319    <!-- The height of the top icon in the letterbox education dialog. -->
320    <dimen name="letterbox_education_dialog_title_icon_height">32dp</dimen>
321
322    <!-- The width of an icon in the letterbox education dialog. -->
323    <dimen name="letterbox_education_dialog_icon_width">28dp</dimen>
324
325    <!-- The height of an icon in the letterbox education dialog. -->
326    <dimen name="letterbox_education_dialog_icon_height">22dp</dimen>
327
328    <!-- The fixed width of the dialog if there is enough space in the parent. -->
329    <dimen name="letterbox_education_dialog_width">364dp</dimen>
330
331    <!-- The margin between the dialog container and its parent. -->
332    <dimen name="letterbox_education_dialog_margin">24dp</dimen>
333
334    <!-- The width of each action container in the letterbox education dialog -->
335    <dimen name="letterbox_education_dialog_action_width">124dp</dimen>
336
337    <!-- The space between two actions in the letterbox education dialog -->
338    <dimen name="letterbox_education_dialog_space_between_actions">32dp</dimen>
339
340    <!-- The corner radius of the buttons in the letterbox education dialog -->
341    <dimen name="letterbox_education_dialog_button_radius">28dp</dimen>
342
343    <!-- The horizontal padding for the buttons in the letterbox education dialog -->
344    <dimen name="letterbox_education_dialog_horizontal_padding">16dp</dimen>
345
346    <!-- The vertical padding for the buttons in the letterbox education dialog -->
347    <dimen name="letterbox_education_dialog_vertical_padding">8dp</dimen>
348
349    <!-- The insets for the buttons in the letterbox education dialog -->
350    <dimen name="letterbox_education_dialog_vertical_inset">6dp</dimen>
351
352    <!-- The margin between the dialog container and its parent. -->
353    <dimen name="letterbox_restart_dialog_margin">24dp</dimen>
354
355    <!-- The corner radius of the restart confirmation dialog. -->
356    <dimen name="letterbox_restart_dialog_corner_radius">28dp</dimen>
357
358    <!-- The fixed width of the dialog if there is enough space in the parent. -->
359    <dimen name="letterbox_restart_dialog_width">348dp</dimen>
360
361    <!-- The width of the top icon in the restart confirmation dialog. -->
362    <dimen name="letterbox_restart_dialog_title_icon_width">32dp</dimen>
363
364    <!-- The height of the top icon in the restart confirmation dialog. -->
365    <dimen name="letterbox_restart_dialog_title_icon_height">32dp</dimen>
366
367    <!-- The width of an icon in the restart confirmation dialog. -->
368    <dimen name="letterbox_restart_dialog_icon_width">40dp</dimen>
369
370    <!-- The height of an icon in the restart confirmation dialog. -->
371    <dimen name="letterbox_restart_dialog_icon_height">32dp</dimen>
372
373    <!-- The space between two actions in the restart confirmation dialog -->
374    <dimen name="letterbox_restart_dialog_space_between_actions">24dp</dimen>
375
376    <!-- The width of the buttons in the restart dialog -->
377    <dimen name="letterbox_restart_dialog_button_width">82dp</dimen>
378
379    <!-- The width of the buttons in the restart dialog -->
380    <dimen name="letterbox_restart_dialog_button_height">40dp</dimen>
381
382    <!-- The corner radius of the buttons in the restart dialog -->
383    <dimen name="letterbox_restart_dialog_button_radius">18dp</dimen>
384
385    <!-- The insets for the buttons in the letterbox restart dialog -->
386    <dimen name="letterbox_restart_dialog_vertical_inset">6dp</dimen>
387
388    <!-- The horizontal padding for the buttons in the letterbox restart dialog -->
389    <dimen name="letterbox_restart_dialog_horizontal_padding">16dp</dimen>
390
391    <!-- The vertical padding for the buttons in the letterbox restart dialog -->
392    <dimen name="letterbox_restart_dialog_vertical_padding">8dp</dimen>
393
394    <!-- The margin between the reachability dialog container and its parent. -->
395    <dimen name="letterbox_reachability_education_dialog_margin">16dp</dimen>
396
397    <!-- The size of the icon in the item of reachability education -->
398    <dimen name="letterbox_reachability_education_item_image_size">24dp</dimen>
399
400    <!-- The width of the brand image on staring surface. -->
401    <dimen name="starting_surface_brand_image_width">200dp</dimen>
402
403    <!-- The height of the brand image on staring surface. -->
404    <dimen name="starting_surface_brand_image_height">80dp</dimen>
405
406    <!-- The length of the shift of main window when exit starting window. -->
407    <dimen name="starting_surface_exit_animation_window_shift_length">20dp</dimen>
408
409    <!-- The distance of the shift icon when normal exit starting window. -->
410    <dimen name="starting_surface_normal_exit_icon_distance">120dp</dimen>
411
412    <!-- The distance of the shift icon when early exit starting window. -->
413    <dimen name="starting_surface_early_exit_icon_distance">32dp</dimen>
414
415    <!-- The default minimal size of a PiP task, in both dimensions. -->
416    <dimen name="default_minimal_size_pip_resizable_task">108dp</dimen>
417
418    <!--
419      The overridable minimal size of a PiP task, in both dimensions.
420      Different from default_minimal_size_pip_resizable_task, this is to limit the dimension
421      when the pinned stack size is overridden by app via minWidth/minHeight.
422    -->
423    <dimen name="overridable_minimal_size_pip_resizable_task">48dp</dimen>
424
425    <!-- The thickness of shadows of a window that has focus in DIP. -->
426    <dimen name="freeform_decor_shadow_focused_thickness">20dp</dimen>
427
428    <!-- The thickness of shadows of a window that doesn't have focus in DIP. -->
429    <dimen name="freeform_decor_shadow_unfocused_thickness">5dp</dimen>
430
431    <!-- Height of button (32dp)  + 2 * margin (5dp each). -->
432    <dimen name="freeform_decor_caption_height">42dp</dimen>
433
434    <!-- Height of desktop mode caption for freeform tasks. -->
435    <dimen name="desktop_mode_freeform_decor_caption_height">40dp</dimen>
436
437    <!-- Height of desktop mode caption for fullscreen tasks. -->
438    <dimen name="desktop_mode_fullscreen_decor_caption_height">36dp</dimen>
439
440    <!-- Width of desktop mode caption for fullscreen tasks.
441        80 dp for handle + 20 dp for room to grow on the sides when hovered. -->
442    <dimen name="desktop_mode_fullscreen_decor_caption_width">100dp</dimen>
443
444    <!-- Required empty space to be visible for partially offscreen tasks. -->
445    <dimen name="freeform_required_visible_empty_space_in_header">48dp</dimen>
446
447    <!-- Required empty space to be visible for partially offscreen tasks on a smaller screen. -->
448    <dimen name="small_screen_required_visible_empty_space_in_header">12dp</dimen>
449
450    <!-- 32dp width back button + 10dp margin -->
451    <dimen name="caption_left_buttons_width">32dp</dimen>
452
453    <!-- (32 dp buttons + 10dp margins) * 3 buttons-->
454    <dimen name="caption_right_buttons_width">126dp</dimen>
455
456    <!-- 2 buttons * 44dp button size + 16dp total margins. -->
457    <dimen name="desktop_mode_right_edge_buttons_width">104dp</dimen>
458
459    <!-- 22dp padding + 24dp app icon + 16dp expand button.
460         Text varies in size, we will calculate that width separately. -->
461    <dimen name="desktop_mode_app_details_width_minus_text">62dp</dimen>
462
463    <!-- When custom headers are requested, this is the width of the left-aligned region that is
464         taken up by caption elements and extra margins. The customizable region starts at the
465         end of this area. -->
466    <dimen name="desktop_mode_customizable_caption_margin_start">84dp</dimen>
467
468    <!-- When custom headers are requested, this is the width of the right-aligned region that is
469         taken up by caption elements and extra margins. The customizable region ends at the
470         start of this area. -->
471    <dimen name="desktop_mode_customizable_caption_margin_end">152dp</dimen>
472
473    <!-- The width of the right-aligned region that is taken up by caption elements and extra
474         margins when the caption has the minimize button. This will be merged with the above value
475         once the minimize button becomes default. -->
476    <dimen name="desktop_mode_customizable_caption_with_minimize_button_margin_end">204dp</dimen>
477
478    <!-- The default minimum allowed window width when resizing a window in desktop mode. -->
479    <dimen name="desktop_mode_minimum_window_width">386dp</dimen>
480
481    <!-- The default minimum allowed window height when resizing a window in desktop mode. -->
482    <dimen name="desktop_mode_minimum_window_height">352dp</dimen>
483
484    <!-- The width of the maximize menu in desktop mode, depending on the number of options -->
485    <dimen name="desktop_mode_maximize_menu_width_one_options">126dp</dimen>
486    <dimen name="desktop_mode_maximize_menu_width_two_options">228dp</dimen>
487    <dimen name="desktop_mode_maximize_menu_width_three_options">330dp</dimen>
488
489    <!-- The height of the maximize menu in desktop mode. -->
490    <dimen name="desktop_mode_maximize_menu_height">114dp</dimen>
491
492    <!-- The padding of the maximize menu in desktop mode. -->
493    <dimen name="desktop_mode_menu_padding">16dp</dimen>
494
495    <!-- The height of the buttons in the maximize menu. -->
496    <dimen name="desktop_mode_maximize_menu_button_height">52dp</dimen>
497
498    <!-- The radius of the maximize menu buttons. -->
499    <dimen name="desktop_mode_maximize_menu_buttons_radius">4dp</dimen>
500
501    <!-- The radius of the layout outline around the maximize menu buttons. -->
502    <dimen name="desktop_mode_maximize_menu_buttons_outline_radius">6dp</dimen>
503    <!-- The stroke width of the outline around the maximize menu buttons. -->
504    <dimen name="desktop_mode_maximize_menu_buttons_outline_stroke">1dp</dimen>
505    <!-- The radius of the inner fill of the maximize menu buttons. -->
506    <dimen name="desktop_mode_maximize_menu_buttons_fill_radius">4dp</dimen>
507    <!-- The padding between the outline and fill of the maximize menu snap and maximize buttons. -->
508    <dimen name="desktop_mode_maximize_menu_snap_and_maximize_buttons_fill_padding">4dp</dimen>
509    <!-- The vertical padding between the outline and fill of the maximize menu restore button. -->
510    <dimen name="desktop_mode_maximize_menu_restore_button_fill_vertical_padding">13dp</dimen>
511    <!-- The horizontal padding between the outline and fill of the maximize menu restore button. -->
512    <dimen name="desktop_mode_maximize_menu_restore_button_fill_horizontal_padding">15dp</dimen>
513    <!-- The padding between the outline and fill of the maximize menu immersive button. -->
514    <dimen name="desktop_mode_maximize_menu_immersive_button_fill_padding">0dp</dimen>
515
516    <!-- The corner radius of the maximize menu. -->
517    <dimen name="desktop_mode_maximize_menu_corner_radius">16dp</dimen>
518
519    <!-- The radius of the Maximize menu shadow. -->
520    <dimen name="desktop_mode_maximize_menu_shadow_radius">8dp</dimen>
521
522    <!-- The width of the handle menu in desktop mode.  -->
523    <dimen name="desktop_mode_handle_menu_width">216dp</dimen>
524
525    <!-- The maximum height of the handle menu in desktop mode. Three pills at 52dp each,
526         additional actions pill 208dp, plus 2dp spacing between them plus 4dp top padding.
527         52*3 + 52*4 + (4-1)*2 + 4 = 374 -->
528    <dimen name="desktop_mode_handle_menu_height">374dp</dimen>
529
530    <!-- The elevation set on the handle menu pills. -->
531    <dimen name="desktop_mode_handle_menu_pill_elevation">1dp</dimen>
532
533    <!-- The height of the handle menu's "App Info" pill in desktop mode. -->
534    <dimen name="desktop_mode_handle_menu_app_info_pill_height">52dp</dimen>
535
536    <!-- The height of the handle menu's "Windowing" pill in desktop mode. -->
537    <dimen name="desktop_mode_handle_menu_windowing_pill_height">52dp</dimen>
538
539    <!-- The maximum height of the handle menu's "New Window" button in desktop mode. -->
540    <dimen name="desktop_mode_handle_menu_new_window_height">52dp</dimen>
541
542    <!-- The maximum height of the handle menu's "Manage Windows" button in desktop mode. -->
543    <dimen name="desktop_mode_handle_menu_manage_windows_height">52dp</dimen>
544
545    <!-- The maximum height of the handle menu's "Screenshot" button in desktop mode. -->
546    <dimen name="desktop_mode_handle_menu_screenshot_height">52dp</dimen>
547
548    <!-- The height of the handle menu's "Open in browser" pill in desktop mode. -->
549    <dimen name="desktop_mode_handle_menu_open_in_browser_pill_height">52dp</dimen>
550
551    <!-- The height of the handle menu's "Change aspect ratio" pill in desktop mode. -->
552    <dimen name="desktop_mode_handle_menu_change_aspect_ratio_height">52dp</dimen>
553
554    <!-- The margin between pills of the handle menu in desktop mode. -->
555    <dimen name="desktop_mode_handle_menu_pill_spacing_margin">2dp</dimen>
556
557    <!-- The top margin of the handle menu in desktop mode. -->
558    <dimen name="desktop_mode_handle_menu_margin_top">4dp</dimen>
559
560    <!-- The start margin of the handle menu in desktop mode. -->
561    <dimen name="desktop_mode_handle_menu_margin_start">6dp</dimen>
562
563    <!-- The radius of the caption menu corners. -->
564    <dimen name="desktop_mode_handle_menu_corner_radius">26dp</dimen>
565
566    <!-- The radius of the caption menu icon. -->
567    <dimen name="desktop_mode_caption_icon_radius">24dp</dimen>
568
569    <!-- The radius of the caption menu shadow. -->
570    <dimen name="desktop_mode_handle_menu_shadow_radius">2dp</dimen>
571
572    <!-- The size of the icon shown in the resize veil. -->
573    <dimen name="desktop_mode_resize_veil_icon_size">96dp</dimen>
574
575    <!-- The width of the border outside the app task eligible for edge resizing, when
576         enable_windowing_edge_drag_resize is enabled. -->
577    <dimen name="freeform_edge_handle_outset">10dp</dimen>
578
579    <!-- The size of the border inside the app task eligible for edge resizing, when
580         enable_windowing_edge_drag_resize is enabled. -->
581    <dimen name="freeform_edge_handle_inset">2dp</dimen>
582
583    <!-- The original width of the border around the app task for edge resizing, when
584         enable_windowing_edge_drag_resize is disabled. -->
585    <dimen name="freeform_resize_handle">15dp</dimen>
586
587    <!-- The size of the corner region for drag resizing with touch, when a larger touch region is
588         appropriate. -->
589    <dimen name="desktop_mode_corner_resize_large">48dp</dimen>
590
591    <!-- The size of the corner region for drag resizing with a cursor or a stylus. -->
592    <dimen name="freeform_resize_corner">44dp</dimen>
593
594    <!-- The thickness in dp for all desktop drag transition regions. -->
595    <dimen name="desktop_mode_transition_region_thickness">44dp</dimen>
596
597    <item type="dimen" format="float" name="desktop_mode_fullscreen_region_scale">0.2</item>
598
599    <!-- The height on the screen where drag to the left or right edge will result in a
600    desktop task snapping to split size. The empty space between this and the top is to allow
601    for corner drags without transition. -->
602    <dimen name="desktop_mode_split_from_desktop_height">100dp</dimen>
603
604    <!-- The corner radius of a task that was dragged from fullscreen. -->
605    <dimen name="desktop_mode_dragged_task_radius">28dp</dimen>
606
607    <!-- The corner radius of the app chip, maximize and close button's ripple drawable -->
608    <dimen name="desktop_mode_header_buttons_ripple_radius">16dp</dimen>
609    <!-- The vertical inset to apply to the app chip's ripple drawable -->
610    <dimen name="desktop_mode_header_app_chip_ripple_inset_vertical">4dp</dimen>
611
612    <!-- The corner radius of the minimize button's ripple drawable -->
613    <dimen name="desktop_mode_header_minimize_ripple_radius">18dp</dimen>
614    <!-- The vertical inset to apply to the minimize button's ripple drawable -->
615    <dimen name="desktop_mode_header_minimize_ripple_inset_vertical">4dp</dimen>
616    <!-- The horizontal inset to apply to the minimize button's ripple drawable -->
617    <dimen name="desktop_mode_header_minimize_ripple_inset_horizontal">6dp</dimen>
618
619    <!-- The corner radius of the maximize button's ripple drawable -->
620    <dimen name="desktop_mode_header_maximize_ripple_radius">18dp</dimen>
621    <!-- The vertical inset to apply to the maximize button's ripple drawable -->
622    <dimen name="desktop_mode_header_maximize_ripple_inset_vertical">4dp</dimen>
623    <!-- The horizontal inset to apply to the maximize button's ripple drawable -->
624    <dimen name="desktop_mode_header_maximize_ripple_inset_horizontal">6dp</dimen>
625
626    <!-- The corner radius of the close button's ripple drawable -->
627    <dimen name="desktop_mode_header_close_ripple_radius">18dp</dimen>
628    <!-- The vertical inset to apply to the close button's ripple drawable -->
629    <dimen name="desktop_mode_header_close_ripple_inset_vertical">4dp</dimen>
630    <!-- The horizontal inset to apply to the close button's ripple drawable -->
631    <dimen name="desktop_mode_header_close_ripple_inset_horizontal">6dp</dimen>
632
633    <!-- The padding added to all sides of windowing education tooltip -->
634    <dimen name="desktop_windowing_education_tooltip_padding">8dp</dimen>
635
636    <!-- The acceptable area ratio of fg icon area/bg icon area, i.e. (72 x 72) / (108 x 108) -->
637    <item type="dimen" format="float" name="splash_icon_enlarge_foreground_threshold">0.44</item>
638    <!-- Scaling factor applied to splash icons without provided background i.e. (192 / 160) -->
639    <item type="dimen" format="float" name="splash_icon_no_background_scale_factor">1.2</item>
640
641    <!-- The margin between the entering window and the exiting window during cross task back -->
642    <dimen name="cross_task_back_inter_window_margin">14dp</dimen>
643    <!-- The vertical margin that needs to be preserved between the scaled window bounds and the
644    original window bounds (once the surface is scaled enough to do so) -->
645    <dimen name="cross_task_back_vertical_margin">8dp</dimen>
646    <!-- The offset from the left edge of the entering page for the cross-activity animation -->
647    <dimen name="cross_activity_back_entering_start_offset">96dp</dimen>
648
649    <!-- The open by default settings dialog menu width. -->
650    <dimen name="open_by_default_settings_dialog_width">348dp</dimen>
651    <!-- The open by default settings dialog menu height. -->
652    <dimen name="open_by_default_settings_dialog_height">380dp</dimen>
653    <!-- The height of radio buttons in the open by default settings dialog. -->
654    <dimen name="open_by_default_settings_dialog_radio_button_height">64dp</dimen>
655    <!-- The width of radio buttons in the open by default settings dialog. -->
656    <dimen name="open_by_default_settings_dialog_radio_button_width">316dp</dimen>
657
658    <!-- The width of the desktop windowing education promo. -->
659    <dimen name="desktop_windowing_education_promo_width">412dp</dimen>
660    <!-- The height of the desktop windowing education promo. -->
661    <dimen name="desktop_windowing_education_promo_height">352dp</dimen>
662    <!-- The corner radius of the desktop windowing education promo. -->
663    <dimen name="desktop_windowing_education_promo_corner_radius">28dp</dimen>
664
665    <!-- The corner radius of freeform tasks in desktop windowing. -->
666    <dimen name="desktop_windowing_freeform_rounded_corner_radius">16dp</dimen>
667</resources>
668