dimens.xml 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  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. <dimen name="app_icon_size">64dp</dimen>
  15. <!-- Dynamic Grid -->
  16. <dimen name="dynamic_grid_edge_margin">6dp</dimen>
  17. <dimen name="dynamic_grid_search_bar_height">48dp</dimen>
  18. <!-- We want 46dp extra for the tall search bar. -->
  19. <dimen name="dynamic_grid_search_bar_height_tall">94dp</dimen>
  20. <dimen name="qsb_internal_padding_top">8dp</dimen>
  21. <dimen name="qsb_internal_padding_bottom">8dp</dimen>
  22. <dimen name="dynamic_grid_search_bar_extra_top_padding">0dp</dimen>
  23. <!-- Reduce the space between the status bar and the search bar when the search bar is tall -->
  24. <dimen name="dynamic_grid_search_bar_negative_top_padding_short">-4dp</dimen>
  25. <dimen name="dynamic_grid_search_bar_bottom_padding">4dp</dimen>
  26. <!-- Reduce the padding between the search bar and workspace when the search bar is tall -->
  27. <dimen name="dynamic_grid_search_bar_bottom_negative_padding_short">-6dp</dimen>
  28. <dimen name="dynamic_grid_search_bar_bottom_padding_tablet">16dp</dimen>
  29. <dimen name="dynamic_grid_page_indicator_height">20dp</dimen>
  30. <dimen name="dynamic_grid_icon_drawable_padding">4dp</dimen>
  31. <dimen name="dynamic_grid_workspace_page_spacing">8dp</dimen>
  32. <dimen name="dynamic_grid_overview_min_icon_zone_height">80dp</dimen>
  33. <dimen name="dynamic_grid_overview_max_icon_zone_height">120dp</dimen>
  34. <dimen name="dynamic_grid_overview_bar_item_width">80dp</dimen>
  35. <dimen name="dynamic_grid_overview_bar_spacer_width">20dp</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. <!-- Cling -->
  41. <dimen name="cling_migration_logo_height">240dp</dimen>
  42. <dimen name="cling_migration_logo_width">165dp</dimen>
  43. <dimen name="cling_migration_bg_size">400dp</dimen>
  44. <dimen name="cling_migration_bg_shift">-200dp</dimen>
  45. <dimen name="cling_migration_content_margin">16dp</dimen>
  46. <dimen name="cling_migration_content_width">280dp</dimen>
  47. <!-- Workspace -->
  48. <dimen name="workspace_max_gap">16dp</dimen>
  49. <!-- QSB -->
  50. <dimen name="toolbar_button_vertical_padding">4dip</dimen>
  51. <dimen name="toolbar_button_horizontal_padding">12dip</dimen>
  52. <!-- Container -->
  53. <item name="container_margin" format="fraction" type="fraction">0%</item>
  54. <dimen name="container_min_margin">8dp</dimen>
  55. <dimen name="container_max_width">0dp</dimen>
  56. <!-- Note: This needs to match the fixed insets for the search box. -->
  57. <dimen name="container_bounds_inset">8dp</dimen>
  58. <!-- Notes: container_bounds_inset - quantum_panel_outer_padding -->
  59. <dimen name="container_bounds_minus_quantum_panel_padding_inset">4dp</dimen>
  60. <dimen name="container_fastscroll_thumb_min_width">5dp</dimen>
  61. <dimen name="container_fastscroll_thumb_max_width">9dp</dimen>
  62. <dimen name="container_fastscroll_thumb_height">72dp</dimen>
  63. <dimen name="container_fastscroll_thumb_touch_inset">-24dp</dimen>
  64. <dimen name="container_fastscroll_popup_size">72dp</dimen>
  65. <dimen name="container_fastscroll_popup_text_size">48dp</dimen>
  66. <!-- All Apps -->
  67. <dimen name="all_apps_button_scale_down">0dp</dimen>
  68. <dimen name="all_apps_grid_view_start_margin">0dp</dimen>
  69. <dimen name="all_apps_grid_section_y_offset">8dp</dimen>
  70. <dimen name="all_apps_grid_section_text_size">24sp</dimen>
  71. <dimen name="all_apps_search_bar_height">60dp</dimen>
  72. <dimen name="all_apps_search_bar_prediction_bar_padding">8dp</dimen>
  73. <dimen name="all_apps_icon_top_bottom_padding">8dp</dimen>
  74. <dimen name="all_apps_icon_width_gap">24dp</dimen>
  75. <!-- The top padding should account for the existing all_apps_list_top_bottom_padding -->
  76. <dimen name="all_apps_prediction_icon_top_padding">8dp</dimen>
  77. <dimen name="all_apps_prediction_icon_bottom_padding">18dp</dimen>
  78. <dimen name="all_apps_list_top_bottom_padding">8dp</dimen>
  79. <dimen name="all_apps_empty_search_message_top_offset">40dp</dimen>
  80. <dimen name="all_apps_empty_search_bg_top_offset">144dp</dimen>
  81. <dimen name="all_apps_background_canvas_width">700dp</dimen>
  82. <dimen name="all_apps_background_canvas_height">475dp</dimen>
  83. <!-- Search bar in All Apps -->
  84. <dimen name="all_apps_header_max_elevation">4dp</dimen>
  85. <dimen name="all_apps_header_scroll_to_elevation">16dp</dimen>
  86. <dimen name="all_apps_header_shadow_height">6dp</dimen>
  87. <!-- The overflow is used to create a bottom border, by drawing other three sides
  88. outside the bounds. Ensure that:
  89. all_apps_search_bar_bg_overflow < (-3 * all_apps_search_bar_divider_width)
  90. -6dp is picked at random, any smaller value would do.
  91. -->
  92. <dimen name="all_apps_search_bar_bg_overflow">-6dp</dimen>
  93. <dimen name="all_apps_search_bar_divider_width">1dp</dimen>
  94. <!-- Widget tray -->
  95. <dimen name="widget_container_inset">8dp</dimen>
  96. <dimen name="widget_preview_label_vertical_padding">8dp</dimen>
  97. <dimen name="widget_preview_label_horizontal_padding">8dp</dimen>
  98. <dimen name="widget_preview_horizontal_padding">8dp</dimen>
  99. <dimen name="widget_section_height">56dp</dimen>
  100. <dimen name="widget_section_icon_size">40dp</dimen>
  101. <dimen name="widget_section_vertical_padding">8dp</dimen>
  102. <dimen name="widget_section_horizontal_padding">16dp</dimen>
  103. <dimen name="widget_row_padding">8dp</dimen>
  104. <dimen name="widget_row_divider">2dp</dimen>
  105. <!-- Padding applied to shortcut previews -->
  106. <dimen name="shortcut_preview_padding_left">0dp</dimen>
  107. <dimen name="shortcut_preview_padding_right">0dp</dimen>
  108. <dimen name="shortcut_preview_padding_top">0dp</dimen>
  109. <!-- Dragging -->
  110. <!-- Drag padding to add to the bottom of drop targets -->
  111. <dimen name="drop_target_drag_padding">14dp</dimen>
  112. <dimen name="drop_target_text_size">14sp</dimen>
  113. <!-- the area at the edge of the screen that makes the workspace go left
  114. or right while you're dragging. -->
  115. <dimen name="scroll_zone">20dp</dimen>
  116. <!-- When dragging an item, how much bigger (fixed dps) the dragged view
  117. should be. If 0, it will not be scaled at all. -->
  118. <dimen name="dragViewScale">12dp</dimen>
  119. <!-- Elevation for the drag view. It should be larger than elevation of all other drag sources
  120. and drop targets like all-apps and folders -->
  121. <dimen name="drag_elevation">30dp</dimen>
  122. <!-- Theme -->
  123. <dimen name="quantum_panel_outer_padding">4dp</dimen>
  124. <!-- Folders -->
  125. <!-- The amount that the preview contents are inset from the preview background -->
  126. <dimen name="folder_preview_padding">4dp</dimen>
  127. <!-- Sizes for managed profile badges -->
  128. <dimen name="profile_badge_size">24dp</dimen>
  129. <dimen name="profile_badge_margin">5dp</dimen>
  130. <dimen name="profile_badge_minimum_top">2dp</dimen>
  131. <!-- Shadows and outlines -->
  132. <dimen name="blur_size_thin_outline">1dp</dimen>
  133. <dimen name="blur_size_medium_outline">2dp</dimen>
  134. <dimen name="blur_size_click_shadow">4dp</dimen>
  135. <dimen name="click_shadow_high_shift">2dp</dimen>
  136. <!-- Pending widget -->
  137. <dimen name="pending_widget_min_padding">8dp</dimen>
  138. <dimen name="pending_widget_elevation">2dp</dimen>
  139. </resources>