dimens.xml 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!-- Copyright (C) 2017 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="task_thumbnail_top_margin">24dp</dimen>
  15. <dimen name="task_thumbnail_half_top_margin">12dp</dimen>
  16. <dimen name="task_thumbnail_icon_size">48dp</dimen>
  17. <!-- For screens without rounded corners -->
  18. <dimen name="task_corner_radius_small">2dp</dimen>
  19. <!-- Overrideable in overlay that provides the Overview Actions. -->
  20. <dimen name="overview_actions_height">66dp</dimen>
  21. <dimen name="overview_actions_bottom_margin_gesture">16dp</dimen>
  22. <dimen name="overview_actions_bottom_margin_three_button">8dp</dimen>
  23. <dimen name="overview_actions_horizontal_margin">16dp</dimen>
  24. <dimen name="recents_page_spacing">10dp</dimen>
  25. <dimen name="recents_clear_all_deadzone_vertical_margin">70dp</dimen>
  26. <dimen name="overview_peek_distance">96dp</dimen>
  27. <!-- The speed in dp/s at which the user needs to be scrolling in recents such that we start
  28. loading full resolution screenshots. -->
  29. <dimen name="recents_fast_fling_velocity">600dp</dimen>
  30. <!-- These velocities are in dp / s -->
  31. <dimen name="quickstep_fling_threshold_velocity">500dp</dimen>
  32. <dimen name="quickstep_fling_min_velocity">250dp</dimen>
  33. <!-- These speeds are in dp / ms -->
  34. <dimen name="motion_pause_detector_speed_very_slow">0.0285dp</dimen>
  35. <dimen name="motion_pause_detector_speed_slow">0.15dp</dimen>
  36. <dimen name="motion_pause_detector_speed_somewhat_fast">0.285dp</dimen>
  37. <dimen name="motion_pause_detector_speed_fast">1.4dp</dimen>
  38. <dimen name="motion_pause_detector_min_displacement_from_app">36dp</dimen>
  39. <!-- Launcher app transition -->
  40. <dimen name="content_trans_y">50dp</dimen>
  41. <dimen name="workspace_trans_y">50dp</dimen>
  42. <dimen name="closing_window_trans_y">115dp</dimen>
  43. <dimen name="recents_empty_message_text_size">16sp</dimen>
  44. <dimen name="recents_empty_message_text_padding">16dp</dimen>
  45. <!-- Total space (start + end) between the task card and the edge of the screen
  46. in various configurations -->
  47. <dimen name="task_card_vert_space">40dp</dimen>
  48. <dimen name="task_card_menu_option_vertical_padding">8dp</dimen>
  49. <dimen name="task_card_menu_shadow_height">3dp</dimen>
  50. <dimen name="task_card_menu_horizontal_padding">0dp</dimen>
  51. <dimen name="portrait_task_card_horz_space">136dp</dimen>
  52. <dimen name="portrait_task_card_horz_space_big_overview">96dp</dimen>
  53. <dimen name="portrait_modal_task_card_horz_space">60dp</dimen>
  54. <dimen name="landscape_task_card_horz_space">200dp</dimen>
  55. <dimen name="multi_window_task_card_horz_space">100dp</dimen>
  56. <!-- Copied from framework resource:
  57. docked_stack_divider_thickness - 2 * docked_stack_divider_insets -->
  58. <dimen name="multi_window_task_divider_size">10dp</dimen>
  59. <!-- Assistant Gestures -->
  60. <!-- Distance from the vertical edges of the screen in which assist gestures are recognized -->
  61. <dimen name="gestures_assistant_width">48dp</dimen>
  62. <dimen name="gestures_assistant_drag_threshold">55dp</dimen>
  63. <dimen name="gestures_assistant_fling_threshold">55dp</dimen>
  64. <!-- Distance to move elements when swiping up to go home from launcher -->
  65. <dimen name="home_pullback_distance">28dp</dimen>
  66. <!-- Distance to move the tasks when swiping up while the device is locked -->
  67. <dimen name="device_locked_y_offset">-80dp</dimen>
  68. <!-- Overscroll Gesture -->
  69. <dimen name="gestures_overscroll_fling_threshold">40dp</dimen>
  70. <dimen name="gestures_overscroll_active_threshold">80dp</dimen>
  71. <dimen name="gestures_overscroll_finish_threshold">136dp</dimen>
  72. <!-- Tips Gesture Tutorial -->
  73. <dimen name="gesture_tutorial_title_margin_start_end">40dp</dimen>
  74. <dimen name="gesture_tutorial_subtitle_margin_start_end">16dp</dimen>
  75. <dimen name="gesture_tutorial_feedback_margin_start_end">24dp</dimen>
  76. <dimen name="gesture_tutorial_button_margin_start_end">18dp</dimen>
  77. <!-- All Apps Education tutorial -->
  78. <dimen name="swipe_edu_padding">8dp</dimen>
  79. <dimen name="swipe_edu_circle_size">64dp</dimen>
  80. <dimen name="swipe_edu_width">80dp</dimen>
  81. <dimen name="swipe_edu_max_height">184dp</dimen>
  82. </resources>