dimens.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!-- Copyright (C) 2009 The Android Open Source Project
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. -->
  13. <resources>
  14. <!-- Dynamic Grid -->
  15. <dimen name="dynamic_grid_edge_margin">8dp</dimen>
  16. <dimen name="dynamic_grid_page_indicator_height">28dp</dimen>
  17. <dimen name="dynamic_grid_page_indicator_line_height">1dp</dimen>
  18. <dimen name="dynamic_grid_page_indicator_gutter_width_left_nav_bar">38dp</dimen>
  19. <dimen name="dynamic_grid_page_indicator_gutter_width_right_nav_bar">48dp</dimen>
  20. <dimen name="dynamic_grid_icon_drawable_padding">8dp</dimen>
  21. <dimen name="dynamic_grid_overview_min_icon_zone_height">80dp</dimen>
  22. <dimen name="dynamic_grid_overview_max_icon_zone_height">120dp</dimen>
  23. <dimen name="dynamic_grid_overview_bar_item_width">80dp</dimen>
  24. <dimen name="dynamic_grid_overview_bar_spacer_width">25dp</dimen>
  25. <dimen name="dynamic_grid_hotseat_height">88dp</dimen>
  26. <dimen name="dynamic_grid_hotseat_top_padding">8dp</dimen>
  27. <dimen name="dynamic_grid_hotseat_gutter_width">24dp</dimen>
  28. <dimen name="dynamic_grid_workspace_top_padding">12dp</dimen>
  29. <dimen name="dynamic_grid_workspace_page_spacing">8dp</dimen>
  30. <!-- Minimum space between workspace and hotseat in spring loaded mode -->
  31. <dimen name="dynamic_grid_min_spring_loaded_space">8dp</dimen>
  32. <!-- Drop target bar -->
  33. <dimen name="dynamic_grid_drop_target_size">48dp</dimen>
  34. <dimen name="vert_drop_target_vertical_gap">20dp</dimen>
  35. <dimen name="vert_drop_target_horizontal_gap">14dp</dimen>
  36. <!-- App Widget resize frame -->
  37. <dimen name="default_widget_padding">8dp</dimen>
  38. <dimen name="widget_handle_margin">13dp</dimen>
  39. <dimen name="resize_frame_background_padding">24dp</dimen>
  40. <!-- Container -->
  41. <!-- Note: This needs to match the fixed insets for the search box. -->
  42. <dimen name="container_bounds_inset">8dp</dimen>
  43. <!-- Notes: container_bounds_inset - quantum_panel_outer_padding -->
  44. <dimen name="container_bounds_minus_quantum_panel_padding_inset">4dp</dimen>
  45. <dimen name="container_fastscroll_thumb_min_width">5dp</dimen>
  46. <dimen name="container_fastscroll_thumb_max_width">9dp</dimen>
  47. <dimen name="container_fastscroll_popup_margin">18dp</dimen>
  48. <dimen name="container_fastscroll_thumb_height">72dp</dimen>
  49. <dimen name="container_fastscroll_thumb_touch_inset">-24dp</dimen>
  50. <dimen name="container_fastscroll_popup_size">72dp</dimen>
  51. <dimen name="container_fastscroll_popup_text_size">48dp</dimen>
  52. <!-- All Apps -->
  53. <dimen name="all_apps_button_scale_down">0dp</dimen>
  54. <dimen name="all_apps_search_bar_field_height">48dp</dimen>
  55. <dimen name="all_apps_search_bar_height">60dp</dimen>
  56. <dimen name="all_apps_search_bar_icon_margin_right">4dp</dimen>
  57. <dimen name="all_apps_search_bar_icon_margin_top">1dp</dimen>
  58. <dimen name="all_apps_list_bottom_padding">8dp</dimen>
  59. <dimen name="all_apps_empty_search_message_top_offset">40dp</dimen>
  60. <dimen name="all_apps_empty_search_bg_top_offset">144dp</dimen>
  61. <dimen name="all_apps_background_canvas_width">700dp</dimen>
  62. <dimen name="all_apps_background_canvas_height">475dp</dimen>
  63. <dimen name="all_apps_caret_stroke_width">2dp</dimen>
  64. <dimen name="all_apps_caret_shadow_spread">1dp</dimen>
  65. <dimen name="all_apps_caret_size">13dp</dimen>
  66. <dimen name="all_apps_caret_workspace_offset">4dp</dimen>
  67. <!-- Search bar in All Apps -->
  68. <dimen name="all_apps_header_max_elevation">3dp</dimen>
  69. <dimen name="all_apps_header_scroll_to_elevation">16dp</dimen>
  70. <dimen name="all_apps_header_shadow_height">6dp</dimen>
  71. <dimen name="all_apps_divider_margin_vertical">8dp</dimen>
  72. <!-- Widget tray -->
  73. <dimen name="widget_preview_label_vertical_padding">8dp</dimen>
  74. <dimen name="widget_preview_label_horizontal_padding">16dp</dimen>
  75. <dimen name="widget_preview_shadow_blur">0.5dp</dimen>
  76. <dimen name="widget_preview_key_shadow_distance">1dp</dimen>
  77. <dimen name="widget_preview_corner_radius">2dp</dimen>
  78. <dimen name="widget_preview_cell_divider_width">0.5dp</dimen>
  79. <dimen name="widget_preview_shortcut_padding">8dp</dimen>
  80. <dimen name="widget_section_height">56dp</dimen>
  81. <dimen name="widget_section_icon_size">40dp</dimen>
  82. <dimen name="widget_section_vertical_padding">8dp</dimen>
  83. <dimen name="widget_section_horizontal_padding">16dp</dimen>
  84. <dimen name="widget_section_indent">0dp</dimen>
  85. <dimen name="widget_row_padding">8dp</dimen>
  86. <dimen name="widget_row_divider">2dp</dimen>
  87. <!-- Padding applied to shortcut previews -->
  88. <dimen name="shortcut_preview_padding_left">0dp</dimen>
  89. <dimen name="shortcut_preview_padding_right">0dp</dimen>
  90. <dimen name="shortcut_preview_padding_top">0dp</dimen>
  91. <!-- Dragging -->
  92. <!-- Drag padding to add to the bottom of drop targets -->
  93. <dimen name="drop_target_drag_padding">14dp</dimen>
  94. <dimen name="drop_target_text_size">14sp</dimen>
  95. <!-- the distance an icon must be dragged before button drop targets accept it -->
  96. <dimen name="drag_distanceThreshold">30dp</dimen>
  97. <!-- Elevation for the drag view. It should be larger than elevation of all other drag sources
  98. and drop targets like all-apps and folders -->
  99. <dimen name="drag_elevation">30dp</dimen>
  100. <dimen name="drag_flingToDeleteMinVelocity">-1500dp</dimen>
  101. <dimen name="spring_loaded_panel_border">1dp</dimen>
  102. <!-- Folders -->
  103. <!-- The size of the padding on the preview background drawable -->
  104. <dimen name="folder_preview_padding">6dp</dimen>
  105. <dimen name="page_indicator_dot_size">8dp</dimen>
  106. <dimen name="folder_cell_x_padding">9dp</dimen>
  107. <dimen name="folder_cell_y_padding">6dp</dimen>
  108. <dimen name="folder_child_text_size">13sp</dimen>
  109. <dimen name="folder_label_padding_top">4dp</dimen>
  110. <dimen name="folder_label_padding_bottom">12dp</dimen>
  111. <dimen name="folder_label_text_size">14sp</dimen>
  112. <!-- Sizes for managed profile badges -->
  113. <dimen name="profile_badge_size">24dp</dimen>
  114. <dimen name="profile_badge_margin">5dp</dimen>
  115. <dimen name="profile_badge_minimum_top">2dp</dimen>
  116. <!-- Shadows and outlines -->
  117. <dimen name="blur_size_thin_outline">1dp</dimen>
  118. <dimen name="blur_size_medium_outline">2dp</dimen>
  119. <dimen name="blur_size_click_shadow">4dp</dimen>
  120. <dimen name="click_shadow_high_shift">2dp</dimen>
  121. <!-- Pending widget -->
  122. <dimen name="pending_widget_min_padding">8dp</dimen>
  123. <dimen name="pending_widget_elevation">2dp</dimen>
  124. <!-- Deep shortcuts -->
  125. <dimen name="deep_shortcuts_elevation">9dp</dimen>
  126. <dimen name="bg_popup_item_width">220dp</dimen>
  127. <dimen name="bg_popup_item_height">56dp</dimen>
  128. <dimen name="popup_items_spacing">4dp</dimen>
  129. <dimen name="pre_drag_view_scale">6dp</dimen>
  130. <!-- an icon with shortcuts must be dragged this far before the container is removed. -->
  131. <dimen name="deep_shortcuts_start_drag_threshold">16dp</dimen>
  132. <dimen name="deep_shortcut_icon_size">36dp</dimen>
  133. <dimen name="deep_shortcut_drawable_padding">8dp</dimen>
  134. <dimen name="deep_shortcut_drag_handle_size">16dp</dimen>
  135. <dimen name="popup_padding_start">10dp</dimen>
  136. <dimen name="popup_padding_end">16dp</dimen>
  137. <dimen name="popup_arrow_width">10dp</dimen>
  138. <dimen name="popup_arrow_height">8dp</dimen>
  139. <dimen name="popup_arrow_vertical_offset">-2dp</dimen>
  140. <!-- popup_padding_start + deep_shortcut_icon_size / 2 -->
  141. <dimen name="popup_arrow_horizontal_center_start">28dp</dimen>
  142. <!-- popup_padding_end + deep_shortcut_drag_handle_size / 2 -->
  143. <dimen name="popup_arrow_horizontal_center_end">24dp</dimen>
  144. <!-- popup_arrow_center_start - popup_arrow_width / 2-->
  145. <dimen name="popup_arrow_horizontal_offset_start">23dp</dimen>
  146. <!-- popup_arrow_center_end - popup_arrow_width / 2-->
  147. <dimen name="popup_arrow_horizontal_offset_end">19dp</dimen>
  148. <dimen name="popup_arrow_corner_radius">2dp</dimen>
  149. <!-- popup_padding_start + icon_size + 10dp -->
  150. <dimen name="deep_shortcuts_text_padding_start">56dp</dimen>
  151. <!-- popup_item_width - deep_shortcuts_text_padding_start -->
  152. <dimen name="deep_shortcuts_divider_width">164dp</dimen>
  153. <dimen name="system_shortcut_icon_size">24dp</dimen>
  154. <!-- popup_arrow_center_start - system_shortcut_icon_size / 2 -->
  155. <dimen name="system_shortcut_margin_start">16dp</dimen>
  156. <dimen name="system_shortcut_header_height">40dp</dimen>
  157. <dimen name="system_shortcut_header_icon_touch_size">48dp</dimen>
  158. <!-- (touch_size - icon_size) / 2 -->
  159. <dimen name="system_shortcut_header_icon_padding">12dp</dimen>
  160. <!-- Icon badges (with notification counts) -->
  161. <dimen name="badge_small_padding">0dp</dimen>
  162. <dimen name="badge_large_padding">3dp</dimen>
  163. <!-- Notifications -->
  164. <dimen name="bg_round_rect_radius">12dp</dimen>
  165. <dimen name="notification_padding_start">16dp</dimen>
  166. <dimen name="notification_padding_end">12dp</dimen>
  167. <!-- notification_padding_end + (icon_size - footer_icon_size) / 2 -->
  168. <dimen name="notification_footer_icon_row_padding">15dp</dimen>
  169. <dimen name="notification_header_height">32dp</dimen>
  170. <dimen name="notification_main_height">80dp</dimen>
  171. <dimen name="notification_footer_height">32dp</dimen>
  172. <dimen name="notification_header_text_size">13sp</dimen>
  173. <dimen name="notification_header_count_text_size">12sp</dimen>
  174. <dimen name="notification_main_text_size">14sp</dimen>
  175. <dimen name="notification_icon_size">24dp</dimen>
  176. <dimen name="notification_footer_icon_size">18dp</dimen>
  177. <!-- notification_icon_size + notification_padding_end + 16dp padding between icon and text -->
  178. <dimen name="notification_main_text_padding_end">52dp</dimen>
  179. <dimen name="notification_elevation">2dp</dimen>
  180. <dimen name="horizontal_ellipsis_size">18dp</dimen>
  181. <!-- arrow_horizontal_offset_start - (ellipsis_size - arrow_width) / 2 -->
  182. <dimen name="horizontal_ellipsis_offset">19dp</dimen>
  183. <dimen name="popup_item_divider_height">0.5dp</dimen>
  184. <dimen name="swipe_helper_falsing_threshold">70dp</dimen>
  185. <!-- Other -->
  186. <!-- Approximates the system status bar height. Not guaranteed to be always be correct. -->
  187. <dimen name="status_bar_height">24dp</dimen>
  188. </resources>