| 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 Split icon size and margin. --> |
| 71 | <dimen name="pip_split_icon_size">24dp</dimen> |
| 72 | <dimen name="pip_split_icon_margin">12dp</dimen> |
| 73 | |
| 74 | <!-- PIP stash offset size, which is the width of visible PIP region when stashed. --> |
| 75 | <dimen name="pip_stash_offset">32dp</dimen> |
| 76 | |
| 77 | <!-- PIP shadow radius, originally as |
| 78 | WindowConfiguration#PINNED_WINDOWING_MODE_ELEVATION_IN_DIP --> |
| 79 | <dimen name="pip_shadow_radius">5dp</dimen> |
| 80 | |
| 81 | <!-- The width and height of the background for custom action in PiP menu. --> |
| 82 | <dimen name="pip_custom_close_bg_size">32dp</dimen> |
| 83 | |
| 84 | <!-- Extra padding between picture-in-picture windows and any registered keep clear areas. --> |
| 85 | <dimen name="pip_keep_clear_areas_padding">16dp</dimen> |
| 86 | |
| 87 | <dimen name="dismiss_target_x_size">24dp</dimen> |
| 88 | <dimen name="floating_dismiss_bottom_margin">50dp</dimen> |
| 89 | |
| 90 | <!-- How high we lift the divider when touching --> |
| 91 | <dimen name="docked_stack_divider_lift_elevation">4dp</dimen> |
| 92 | |
| 93 | <!-- Icon size for split screen --> |
| 94 | <dimen name="split_icon_size">72dp</dimen> |
| 95 | <!-- Divider handle size for legacy split screen --> |
| 96 | <dimen name="docked_divider_handle_width">16dp</dimen> |
| 97 | <dimen name="docked_divider_handle_height">2dp</dimen> |
| 98 | <!-- Divider handle size for split screen --> |
| 99 | <dimen name="split_divider_handle_width">72dp</dimen> |
| 100 | <dimen name="split_divider_handle_height">3dp</dimen> |
| 101 | |
| 102 | <dimen name="split_divider_bar_width">10dp</dimen> |
| 103 | <dimen name="split_divider_corner_size">42dp</dimen> |
| 104 | |
| 105 | <!-- One-Handed Mode --> |
| 106 | <!-- Threshold for dragging distance to enable one-handed mode --> |
| 107 | <dimen name="gestures_onehanded_drag_threshold">20dp</dimen> |
| 108 | |
| 109 | <!-- The amount to inset the drop target regions from the edge of the display --> |
| 110 | <dimen name="drop_layout_display_margin">16dp</dimen> |
| 111 | |
| 112 | <!-- How much each bubble is elevated. --> |
| 113 | <dimen name="bubble_elevation">1dp</dimen> |
| 114 | <!-- How much the bubble flyout text container is elevated. --> |
| 115 | <dimen name="bubble_flyout_elevation">4dp</dimen> |
| 116 | <!-- How much padding is around the left and right sides of the flyout text. --> |
| 117 | <dimen name="bubble_flyout_padding_x">14dp</dimen> |
| 118 | <!-- How much padding is around the top and bottom of the flyout text. --> |
| 119 | <dimen name="bubble_flyout_padding_y">10dp</dimen> |
| 120 | <!-- Size of the triangle that points from the flyout to the bubble stack. --> |
| 121 | <dimen name="bubble_flyout_pointer_size">6dp</dimen> |
| 122 | <!-- How much space to leave between the flyout (tip of the arrow) and the bubble stack. --> |
| 123 | <dimen name="bubble_flyout_space_from_bubble">8dp</dimen> |
| 124 | <!-- How much space to leave between the flyout text and the avatar displayed in the flyout. --> |
| 125 | <dimen name="bubble_flyout_avatar_message_space">6dp</dimen> |
| 126 | <!-- If the screen percentage is smaller than this, we'll use this value instead. --> |
| 127 | <dimen name="bubbles_flyout_min_width_large_screen">200dp</dimen> |
| 128 | <!-- Padding between status bar and bubbles when displayed in expanded state --> |
| 129 | <dimen name="bubble_padding_top">16dp</dimen> |
| 130 | <!-- Space between bubbles when expanded. --> |
| 131 | <dimen name="bubble_spacing">3dp</dimen> |
| 132 | <!-- Size of the bubble. --> |
| 133 | <dimen name="bubble_size">60dp</dimen> |
| 134 | <!-- Width of bubble name view --> |
| 135 | <dimen name="bubble_name_width">90dp</dimen> |
| 136 | <!-- Size of the badge shown on the bubble. --> |
| 137 | <dimen name="bubble_badge_size">24dp</dimen> |
| 138 | <!-- Extra padding added to the touchable rect for bubbles so they are easier to grab. --> |
| 139 | <dimen name="bubble_touch_padding">12dp</dimen> |
| 140 | <!-- Size of the circle around the bubbles when they're in the dismiss target. --> |
| 141 | <dimen name="bubble_dismiss_encircle_size">52dp</dimen> |
| 142 | <!-- Padding around the view displayed when the bubble is expanded --> |
| 143 | <dimen name="bubble_expanded_view_padding">16dp</dimen> |
| 144 | <!-- Padding for the edge of the expanded view that is closest to the edge of the screen used |
| 145 | when displaying in landscape on a large screen. --> |
| 146 | <dimen name="bubble_expanded_view_largescreen_landscape_padding">128dp</dimen> |
| 147 | <!-- This should be at least the size of bubble_expanded_view_padding; it is used to include |
| 148 | a slight touch slop around the expanded view. --> |
| 149 | <dimen name="bubble_expanded_view_slop">8dp</dimen> |
| 150 | <!-- Default (and minimum) height of the expanded view shown when the bubble is expanded. |
| 151 | If this value changes then R.dimen.bubble_expanded_view_min_height in CtsVerifier |
| 152 | should also be updated. --> |
| 153 | <dimen name="bubble_expanded_default_height">180dp</dimen> |
| 154 | <!-- The width of the overflow view on large screens or in landscape on phone. --> |
| 155 | <dimen name="bubble_expanded_view_overflow_width">380dp</dimen> |
| 156 | <!-- Inset to apply to the icon in the overflow button. --> |
| 157 | <dimen name="bubble_overflow_icon_inset">30dp</dimen> |
| 158 | <!-- Default (and minimum) height of bubble overflow --> |
| 159 | <dimen name="bubble_overflow_height">480dp</dimen> |
| 160 | <!-- Bubble overflow padding when there are no bubbles --> |
| 161 | <dimen name="bubble_overflow_empty_state_padding">16dp</dimen> |
| 162 | <!-- Horizontal padding of the overflow container. Total desired padding is 16dp but the items |
| 163 | already have 5dp added to each side. --> |
| 164 | <dimen name="bubble_overflow_container_padding_horizontal">11dp</dimen> |
| 165 | <!-- Horizontal padding between items in the overflow view, half of the desired amount. --> |
| 166 | <dimen name="bubble_overflow_item_padding_horizontal">5dp</dimen> |
| 167 | <!-- Vertical padding between items in the overflow view, half the desired amount. --> |
| 168 | <dimen name="bubble_overflow_item_padding_vertical">16dp</dimen> |
| 169 | <!-- Padding of label for bubble overflow view --> |
| 170 | <dimen name="bubble_overflow_text_padding">7dp</dimen> |
| 171 | <!-- Height of bubble overflow empty state illustration --> |
| 172 | <dimen name="bubble_empty_overflow_image_height">200dp</dimen> |
| 173 | <!-- Padding of bubble overflow empty state subtitle --> |
| 174 | <dimen name="bubble_empty_overflow_subtitle_padding">50dp</dimen> |
| 175 | <!-- Height of the triangle that points to the expanded bubble. --> |
| 176 | <dimen name="bubble_pointer_height">10dp</dimen> |
| 177 | <!-- Width of the triangle that points to the expanded bubble. --> |
| 178 | <dimen name="bubble_pointer_width">12dp</dimen> |
| 179 | <!-- Radius of the pointer --> |
| 180 | <dimen name="bubble_pointer_radius">2dp</dimen> |
| 181 | <!-- The amount the pointer overlaps with the expanded view to be flush on an edge with |
| 182 | a radius. --> |
| 183 | <dimen name="bubble_pointer_overlap">1dp</dimen> |
| 184 | <!-- Extra padding around the dismiss target for bubbles --> |
| 185 | <dimen name="bubble_dismiss_slop">16dp</dimen> |
| 186 | <!-- Height of button allowing users to adjust settings for bubbles. --> |
| 187 | <dimen name="bubble_manage_button_height">36dp</dimen> |
| 188 | <!-- Height of manage button including margins. --> |
| 189 | <dimen name="bubble_manage_button_total_height">68dp</dimen> |
| 190 | <!-- The margin around the outside of the manage button. --> |
| 191 | <dimen name="bubble_manage_button_margin">16dp</dimen> |
| 192 | <!-- Height of an item in the bubble manage menu. --> |
| 193 | <dimen name="bubble_menu_item_height">60dp</dimen> |
| 194 | <!-- Padding applied to the bubble manage menu. --> |
| 195 | <dimen name="bubble_menu_padding">16dp</dimen> |
| 196 | <!-- Size of the icons in the manage menu. --> |
| 197 | <dimen name="bubble_menu_icon_size">24dp</dimen> |
| 198 | <!-- Max width of the message bubble--> |
| 199 | <dimen name="bubble_message_max_width">144dp</dimen> |
| 200 | <!-- Min width of the message bubble --> |
| 201 | <dimen name="bubble_message_min_width">32dp</dimen> |
| 202 | <!-- Interior padding of the message bubble --> |
| 203 | <dimen name="bubble_message_padding">4dp</dimen> |
| 204 | <!-- Offset between bubbles in their stacked position. --> |
| 205 | <dimen name="bubble_stack_offset">12dp</dimen> |
| 206 | <!-- Offset between stack y and animation y for bubble swap. --> |
| 207 | <dimen name="bubble_swap_animation_offset">15dp</dimen> |
| 208 | <!-- How far offscreen the bubble stack rests. There's some padding around the bubble so |
| 209 | add 3dp to the desired overhang. --> |
| 210 | <dimen name="bubble_stack_offscreen">3dp</dimen> |
| 211 | <!-- How far down the screen the stack starts. --> |
| 212 | <dimen name="bubble_stack_starting_offset_y">120dp</dimen> |
| 213 | <!-- Space between the pointer triangle and the bubble expanded view --> |
| 214 | <dimen name="bubble_pointer_margin">5dp</dimen> |
| 215 | <!-- Padding applied to the bubble dismiss target. Touches in this padding cause the bubbles to |
| 216 | snap to the dismiss target. --> |
| 217 | <dimen name="bubble_dismiss_target_padding_x">40dp</dimen> |
| 218 | <dimen name="bubble_dismiss_target_padding_y">20dp</dimen> |
| 219 | <dimen name="bubble_manage_menu_elevation">4dp</dimen> |
| 220 | <!-- Size of manage user education views on large screens or in landscape. --> |
| 221 | <dimen name="bubbles_user_education_width">480dp</dimen> |
| 222 | <!-- Margin applied to the end of the user education views (really only matters for phone |
| 223 | since the width is match parent). --> |
| 224 | <dimen name="bubble_user_education_margin_end">24dp</dimen> |
| 225 | <!-- Padding applied to the end of the user education view. --> |
| 226 | <dimen name="bubble_user_education_padding_end">58dp</dimen> |
| 227 | <!-- Padding between the bubble and the user education text. --> |
| 228 | <dimen name="bubble_user_education_stack_padding">16dp</dimen> |
| 229 | |
| 230 | <!-- Bottom and end margin for compat buttons. --> |
| 231 | <dimen name="compat_button_margin">16dp</dimen> |
| 232 | |
| 233 | <!-- The radius of the corners of the compat hint bubble. --> |
| 234 | <dimen name="compat_hint_corner_radius">28dp</dimen> |
| 235 | |
| 236 | <!-- The width of the compat hint point. --> |
| 237 | <dimen name="compat_hint_point_width">10dp</dimen> |
| 238 | |
| 239 | <!-- The end padding for the compat hint. Computed as (compat button width (=48) / 2 |
| 240 | + compat_button_margin - compat_hint_corner_radius - compat_hint_point_width / 2). --> |
| 241 | <dimen name="compat_hint_padding_end">7dp</dimen> |
| 242 | |
| 243 | <!-- The width of the size compat hint. --> |
| 244 | <dimen name="size_compat_hint_width">188dp</dimen> |
| 245 | |
| 246 | <!-- The width of the camera compat hint. --> |
| 247 | <dimen name="camera_compat_hint_width">143dp</dimen> |
| 248 | |
| 249 | <!-- The corner radius of the letterbox education dialog. --> |
| 250 | <dimen name="letterbox_education_dialog_corner_radius">28dp</dimen> |
| 251 | |
| 252 | <!-- The width of the top icon in the letterbox education dialog. --> |
| 253 | <dimen name="letterbox_education_dialog_title_icon_width">45dp</dimen> |
| 254 | |
| 255 | <!-- The height of the top icon in the letterbox education dialog. --> |
| 256 | <dimen name="letterbox_education_dialog_title_icon_height">44dp</dimen> |
| 257 | |
| 258 | <!-- The width of an icon in the letterbox education dialog. --> |
| 259 | <dimen name="letterbox_education_dialog_icon_width">40dp</dimen> |
| 260 | |
| 261 | <!-- The height of an icon in the letterbox education dialog. --> |
| 262 | <dimen name="letterbox_education_dialog_icon_height">32dp</dimen> |
| 263 | |
| 264 | <!-- The fixed width of the dialog if there is enough space in the parent. --> |
| 265 | <dimen name="letterbox_education_dialog_width">472dp</dimen> |
| 266 | |
| 267 | <!-- The margin between the dialog container and its parent. --> |
| 268 | <dimen name="letterbox_education_dialog_margin">16dp</dimen> |
| 269 | |
| 270 | <!-- The width of each action container in the letterbox education dialog --> |
| 271 | <dimen name="letterbox_education_dialog_action_width">140dp</dimen> |
| 272 | |
| 273 | <!-- The space between two actions in the letterbox education dialog --> |
| 274 | <dimen name="letterbox_education_dialog_space_between_actions">24dp</dimen> |
| 275 | |
| 276 | <!-- The width of the brand image on staring surface. --> |
| 277 | <dimen name="starting_surface_brand_image_width">200dp</dimen> |
| 278 | |
| 279 | <!-- The height of the brand image on staring surface. --> |
| 280 | <dimen name="starting_surface_brand_image_height">80dp</dimen> |
| 281 | |
| 282 | <!-- The length of the shift of main window when exit starting window. --> |
| 283 | <dimen name="starting_surface_exit_animation_window_shift_length">20dp</dimen> |
| 284 | |
| 285 | <!-- The distance of the shift icon when normal exit starting window. --> |
| 286 | <dimen name="starting_surface_normal_exit_icon_distance">120dp</dimen> |
| 287 | |
| 288 | <!-- The distance of the shift icon when early exit starting window. --> |
| 289 | <dimen name="starting_surface_early_exit_icon_distance">32dp</dimen> |
| 290 | |
| 291 | <!-- The default minimal size of a PiP task, in both dimensions. --> |
| 292 | <dimen name="default_minimal_size_pip_resizable_task">108dp</dimen> |
| 293 | |
| 294 | <!-- |
| 295 | The overridable minimal size of a PiP task, in both dimensions. |
| 296 | Different from default_minimal_size_pip_resizable_task, this is to limit the dimension |
| 297 | when the pinned stack size is overridden by app via minWidth/minHeight. |
| 298 | --> |
| 299 | <dimen name="overridable_minimal_size_pip_resizable_task">48dp</dimen> |
| 300 | |
| 301 | <!-- The size of the drag handle / menu shown along with a floating task. --> |
| 302 | <dimen name="floating_task_menu_size">32dp</dimen> |
| 303 | |
| 304 | <!-- The size of menu items in the floating task menu. --> |
| 305 | <dimen name="floating_task_menu_item_size">24dp</dimen> |
| 306 | |
| 307 | <!-- The horizontal margin of menu items in the floating task menu. --> |
| 308 | <dimen name="floating_task_menu_item_padding">5dp</dimen> |
| 309 | |
| 310 | <!-- The width of visible floating view region when stashed. --> |
| 311 | <dimen name="floating_task_stash_offset">32dp</dimen> |
| 312 | |
| 313 | <!-- The amount of elevation for a floating task. --> |
| 314 | <dimen name="floating_task_elevation">8dp</dimen> |
| 315 | |
| 316 | <!-- The amount of padding around the bottom and top of the task. --> |
| 317 | <dimen name="floating_task_vertical_padding">8dp</dimen> |
| 318 | |
| 319 | <!-- The normal size of the dismiss target. --> |
| 320 | <dimen name="floating_task_dismiss_circle_size">150dp</dimen> |
| 321 | |
| 322 | <!-- The smaller size of the dismiss target (shrinks when something is in the target). --> |
| 323 | <dimen name="floating_dismiss_circle_small">120dp</dimen> |
| 324 | |
| 325 | <!-- The thickness of shadows of a window that has focus in DIP. --> |
| 326 | <dimen name="freeform_decor_shadow_focused_thickness">20dp</dimen> |
| 327 | |
| 328 | <!-- The thickness of shadows of a window that doesn't have focus in DIP. --> |
| 329 | <dimen name="freeform_decor_shadow_unfocused_thickness">5dp</dimen> |
| 330 | |
| 331 | <!-- Height of button (32dp) + 2 * margin (5dp each). --> |
| 332 | <dimen name="freeform_decor_caption_height">42dp</dimen> |
| 333 | |
| 334 | <!-- Width of buttons (64dp) + handle (128dp) + padding (24dp total). --> |
| 335 | <dimen name="freeform_decor_caption_width">216dp</dimen> |
| 336 | |
| 337 | <dimen name="freeform_resize_handle">30dp</dimen> |
| 338 | |
| 339 | <dimen name="freeform_resize_corner">44dp</dimen> |
| 340 | |
| 341 | </resources> |