1 <?xml version="1.0" encoding="utf-8"?>
3 /* //device/apps/common/assets/res/any/dimens.xml
5 ** Copyright 2006, The Android Open Source Project
7 ** Licensed under the Apache License, Version 2.0 (the "License");
8 ** you may not use this file except in compliance with the License.
9 ** You may obtain a copy of the License at
11 ** http://www.apache.org/licenses/LICENSE-2.0
13 ** Unless required by applicable law or agreed to in writing, software
14 ** distributed under the License is distributed on an "AS IS" BASIS,
15 ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 ** See the License for the specific language governing permissions and
17 ** limitations under the License.
21 <!-- The width that is used when creating thumbnails of applications. -->
22 <dimen name="thumbnail_width">192dp</dimen>
23 <!-- The height that is used when creating thumbnails of applications. -->
24 <dimen name="thumbnail_height">192dp</dimen>
25 <!-- The amount to scale a fullscreen screenshot thumbnail. -->
26 <item name="thumbnail_fullscreen_scale" type="fraction">60%</item>
27 <!-- The width used to calculate scale for full screen thumbnail on TV -->
28 <integer name="thumbnail_width_tv">240</integer>
29 <!-- The standard size (both width and height) of an application icon that
30 will be displayed in the app launcher and elsewhere. -->
31 <dimen name="app_icon_size">48dip</dimen>
33 <dimen name="toast_y_offset">64dip</dimen>
34 <!-- Height of the status bar -->
35 <dimen name="status_bar_height">24dp</dimen>
36 <!-- Height of the bottom navigation / system bar. -->
37 <dimen name="navigation_bar_height">48dp</dimen>
38 <!-- Height of the bottom navigation bar in portrait; often the same as @dimen/navigation_bar_height -->
39 <dimen name="navigation_bar_height_landscape">48dp</dimen>
40 <!-- Width of the navigation bar when it is placed vertically on the screen -->
41 <dimen name="navigation_bar_width">48dp</dimen>
42 <!-- Height of the bottom navigation / system bar in car mode. -->
43 <dimen name="navigation_bar_height_car_mode">96dp</dimen>
44 <!-- Height of the bottom navigation bar in portrait; often the same as
45 @dimen/navigation_bar_height_car_mode -->
46 <dimen name="navigation_bar_height_landscape_car_mode">96dp</dimen>
47 <!-- Width of the navigation bar when it is placed vertically on the screen in car mode -->
48 <dimen name="navigation_bar_width_car_mode">96dp</dimen>
49 <!-- Height of notification icons in the status bar -->
50 <dimen name="status_bar_icon_size">24dip</dimen>
51 <!-- Size of the giant number (unread count) in the notifications -->
52 <dimen name="status_bar_content_number_size">48sp</dimen>
53 <!-- Margin at the edge of the screen to ignore touch events for in the windowshade. -->
54 <dimen name="status_bar_edge_ignore">5dp</dimen>
56 <!-- Width of the window of the divider bar used to resize docked stacks. -->
57 <dimen name="docked_stack_divider_thickness">48dp</dimen>
59 <!-- How much the content in the divider is inset from the window bounds when resting. Used to
60 calculate the bounds of the stacks-->
61 <dimen name="docked_stack_divider_insets">19dp</dimen>
63 <!-- To how much the docked stack gets reduced when we decide to minimize the docked stack, i.e.
64 when the user opens homescreen. -->
65 <dimen name="docked_stack_minimize_thickness">8dp</dimen>
67 <!-- Min width for a tablet device -->
68 <dimen name="min_xlarge_screen_width">800dp</dimen>
70 <!-- Default height of a key in the password keyboard for alpha (used by keyguard) -->
71 <dimen name="password_keyboard_key_height_alpha">56dip</dimen>
72 <!-- Default height of a key in the password keyboard for numeric (used by keyguard) -->
73 <dimen name="password_keyboard_key_height_numeric">56dip</dimen>
74 <!-- Default correction for the space key in the password keyboard (used by keyguard) -->
75 <dimen name="password_keyboard_spacebar_vertical_correction">4dip</dimen>
76 <!-- Default horizontal gap between keys in the password keyboard (used by keyguard) -->
77 <dimen name="password_keyboard_horizontalGap">3dip</dimen>
78 <!-- Default vertical gap between keys in the password keyboard (used by keyguard) -->
79 <dimen name="password_keyboard_verticalGap">9dip</dimen>
81 <!-- Size of lockscreen outerring on unsecure unlock LockScreen -->
82 <dimen name="keyguard_lockscreen_outerring_diameter">270dp</dimen>
84 <!-- Preference activity side margins -->
85 <dimen name="preference_screen_side_margin">0dp</dimen>
86 <!-- Preference activity side margins negative-->
87 <dimen name="preference_screen_side_margin_negative">0dp</dimen>
88 <!-- Preference activity top margin -->
89 <dimen name="preference_screen_top_margin">0dp</dimen>
90 <!-- Preference activity bottom margin -->
91 <dimen name="preference_screen_bottom_margin">0dp</dimen>
92 <!-- Preference widget area width (to the left of the text) -->
93 <dimen name="preference_widget_width">48dp</dimen>
94 <!-- Preference fragment padding, bottom -->
95 <dimen name="preference_fragment_padding_bottom">0dp</dimen>
96 <!-- Preference fragment padding, sides -->
97 <dimen name="preference_fragment_padding_side">16dp</dimen>
98 <!-- Weight of the left pane in a multi-pane preference layout. -->
99 <integer name="preferences_left_pane_weight">4</integer>
100 <!-- Weight of the right pane in a multi-pane preference layout. So the split is 40:60 -->
101 <integer name="preferences_right_pane_weight">6</integer>
102 <!-- Padding to the left of the preference panel breadcrumb -->
103 <dimen name="preference_breadcrumb_paddingLeft">0dp</dimen>
104 <!-- Padding to the right of the preference panel breadcrumb -->
105 <dimen name="preference_breadcrumb_paddingRight">0dp</dimen>
106 <!-- Minimum space to allocate to the left of a preference item for an icon.
107 This helps in aligning titles when some items have icons and some don't. When space is
108 at a premium, we don't pre-allocate any space. -->
109 <dimen name="preference_icon_minWidth">0dp</dimen>
110 <!-- The platform's desired minimum size for a dialog's width when it
111 is along the major axis (that is the screen is landscape). This may
112 be either a fraction or a dimension. -->
113 <item type="dimen" name="dialog_min_width_major">65%</item>
115 <!-- The platform's desired fixed width for a dialog along the major axis
116 (the screen is in landscape). This may be either a fraction or a dimension.-->
117 <item type="dimen" name="dialog_fixed_width_major">100%</item>
118 <!-- The platform's desired fixed width for a dialog along the minor axis
119 (the screen is in portrait). This may be either a fraction or a dimension.-->
120 <item type="dimen" name="dialog_fixed_width_minor">100%</item>
121 <!-- The platform's desired fixed height for a dialog along the major axis
122 (the screen is in portrait). This may be either a fraction or a dimension.-->
123 <item type="dimen" name="dialog_fixed_height_major">80%</item>
124 <!-- The platform's desired fixed height for a dialog along the minor axis
125 (the screen is in landscape). This may be either a fraction or a dimension.-->
126 <item type="dimen" name="dialog_fixed_height_minor">100%</item>
128 <!-- Preference activity, vertical padding for the header list -->
129 <dimen name="preference_screen_header_vertical_padding">0dp</dimen>
131 <dimen name="preference_screen_header_padding_side">16dip</dimen>
132 <integer name="preference_screen_header_scrollbarStyle">0x02000000</integer> <!-- outsideOverlay -->
134 <integer name="preference_fragment_scrollbarStyle">0x02000000</integer> <!-- outsideOverlay -->
136 <dimen name="preference_item_padding_side">8dip</dimen>
137 <dimen name="preference_item_padding_inner">8dip</dimen>
138 <dimen name="preference_child_padding_side">16dip</dimen>
140 <!-- The platform's desired minimum size for a dialog's width when it
141 is along the minor axis (that is the screen is portrait). This may
142 be either a fraction or a dimension. -->
143 <item type="dimen" name="dialog_min_width_minor">95%</item>
145 <!-- Default padding for dialogs. -->
146 <dimen name="dialog_padding">16dp</dimen>
148 <!-- The margin on the start of the content view -->
149 <dimen name="notification_content_margin_start">16dp</dimen>
151 <!-- The margin on the end of the content view
152 Keep in sync with notification_content_plus_picture_margin! -->
153 <dimen name="notification_content_margin_end">16dp</dimen>
155 <!-- The margin on the end of the content view with a picture.
156 Keep in sync with notification_content_plus_picture_margin! -->
157 <dimen name="notification_content_picture_margin">56dp</dimen>
159 <!-- The margin on the end of the content view with a picture, plus the standard
161 Keep equal to (notification_content_picture_margin + notification_content_margin_end)!
163 <dimen name="notification_content_plus_picture_margin_end">72dp</dimen>
165 <!-- The height of the notification action list -->
166 <dimen name="notification_action_list_height">56dp</dimen>
168 <!-- height of the content margin to accomodate for the header -->
169 <dimen name="notification_content_margin_top">37.5dp</dimen>
171 <!-- height of the content margin on the bottom -->
172 <dimen name="notification_content_margin_bottom">16dp</dimen>
174 <!-- The height of the background for a notification header on a group -->
175 <dimen name="notification_header_background_height">45.5dp</dimen>
177 <!-- Height of a small notification in the status bar -->
178 <dimen name="notification_min_height">92dp</dimen>
180 <!-- The width of the big icons in notifications. -->
181 <dimen name="notification_large_icon_width">64dp</dimen>
182 <!-- The width of the big icons in notifications. -->
183 <dimen name="notification_large_icon_height">64dp</dimen>
185 <!-- The minimum width of the app name in the header if it shrinks -->
186 <dimen name="notification_header_shrink_min_width">72dp</dimen>
188 <!-- The minimum height of the content if there are at least two lines or a picture-->
189 <dimen name="notification_min_content_height">41dp</dimen>
191 <!-- The maximum size of the image in the expanded media notification -->
192 <dimen name="media_notification_expanded_image_max_size">94dp</dimen>
194 <!-- The maximum size of the image in the expanded media notification -->
195 <dimen name="media_notification_expanded_image_margin_bottom">20dp</dimen>
197 <!-- The margin of the content to an image-->
198 <dimen name="notification_content_image_margin_end">8dp</dimen>
200 <!-- The spacing between messages in Notification.MessagingStyle -->
201 <dimen name="notification_messaging_spacing">6dp</dimen>
203 <!-- Preferred width and height of the search view. -->
204 <dimen name="search_view_preferred_width">320dip</dimen>
205 <dimen name="search_view_preferred_height">48dip</dimen>
207 <!-- Dialog padding for round display -->
208 <dimen name="alert_dialog_round_padding">27dip</dimen>
209 <!-- Dialog title height -->
210 <dimen name="alert_dialog_title_height">64dip</dimen>
211 <!-- Dialog button bar height -->
212 <dimen name="alert_dialog_button_bar_height">48dip</dimen>
213 <!-- Leanback dialog vertical margin -->
214 <dimen name="leanback_alert_dialog_vertical_margin">27dip</dimen>
215 <!-- Leanback dialog horizontal margin -->
216 <dimen name="leanback_alert_dialog_horizontal_margin">54dip</dimen>
218 <!-- Default height of an action bar. -->
219 <dimen name="action_bar_default_height">48dip</dimen>
220 <!-- Vertical padding around action bar icons. -->
221 <dimen name="action_bar_icon_vertical_padding">8dip</dimen>
222 <!-- Text size for action bar titles -->
223 <dimen name="action_bar_title_text_size">18dp</dimen>
224 <!-- Text size for action bar subtitles -->
225 <dimen name="action_bar_subtitle_text_size">14dp</dimen>
226 <!-- Top margin for action bar subtitles -->
227 <dimen name="action_bar_subtitle_top_margin">-3dp</dimen>
228 <!-- Bottom margin for action bar subtitles -->
229 <dimen name="action_bar_subtitle_bottom_margin">5dip</dimen>
231 <!-- Size of clock font in LockScreen on Unsecure unlock screen. -->
232 <dimen name="keyguard_lockscreen_clock_font_size">80dip</dimen>
234 <!-- Size of status line font on Unsecure unlock LockScreen. -->
235 <dimen name="keyguard_lockscreen_status_line_font_size">14dip</dimen>
237 <!-- Size of right margin on Unsecure unlock LockScreen -->
238 <dimen name="keyguard_lockscreen_status_line_font_right_margin">42dip</dimen>
240 <!-- Size of top margin on Clock font to edge on unlock LockScreen -->
241 <dimen name="keyguard_lockscreen_status_line_clockfont_top_margin">22dip</dimen>
243 <!-- Size of top margin on Clock font to edge on unlock LockScreen -->
244 <dimen name="keyguard_lockscreen_status_line_clockfont_bottom_margin">12dip</dimen>
246 <!-- Padding on left margin of PIN text entry field to center it when del button is showing -->
247 <dimen name="keyguard_lockscreen_pin_margin_left">40dip</dimen>
249 <!-- Height of FaceUnlock view in keyguard -->
250 <dimen name="face_unlock_height">330dip</dimen>
252 <!-- Minimum popup width for selecting an activity in ActivityChooserDialog/ActivityChooserView. -->
253 <dimen name="activity_chooser_popup_min_width">200dip</dimen>
255 <!-- The default gap between components in a layout. -->
256 <dimen name="default_gap">8dip</dimen>
258 <!-- Text padding for dropdown items -->
259 <dimen name="dropdownitem_text_padding_left">8dip</dimen>
261 <!-- Text padding for dropdown items -->
262 <dimen name="dropdownitem_text_padding_right">8dip</dimen>
264 <!-- Width of the icon in a dropdown list -->
265 <dimen name="dropdownitem_icon_width">32dip</dimen>
267 <!-- Default width for a textview error popup -->
268 <dimen name="textview_error_popup_default_width">240dip</dimen>
270 <!-- Default padding to apply to AppWidgetHostViews containing widgets targeting API level 14 and up. -->
271 <dimen name="default_app_widget_padding_left">8dp</dimen>
272 <dimen name="default_app_widget_padding_top">8dp</dimen>
273 <dimen name="default_app_widget_padding_right">8dp</dimen>
274 <dimen name="default_app_widget_padding_bottom">8dp</dimen>
276 <!-- Minimum width for an action button in the menu area of an action bar -->
277 <dimen name="action_button_min_width">56dip</dimen>
279 <!-- Maximum height for a stacked tab bar as part of an action bar -->
280 <dimen name="action_bar_stacked_max_height">48dp</dimen>
282 <!-- Maximum width for a stacked action bar tab. This prevents
283 action bar tabs from becoming too wide on a wide screen when only
284 a few are present. -->
285 <dimen name="action_bar_stacked_tab_max_width">180dp</dimen>
287 <!-- Size of notification text (see TextAppearance.StatusBar.EventContent) -->
288 <dimen name="notification_text_size">14sp</dimen>
289 <!-- Size of notification text titles (see TextAppearance.StatusBar.EventContent.Title) -->
290 <dimen name="notification_title_text_size">14sp</dimen>
291 <!-- Size of smaller notification text (see TextAppearance.StatusBar.EventContent.Line2, Info, Time) -->
292 <dimen name="notification_subtext_size">12sp</dimen>
294 <!-- Top padding for notifications in the standard layout. -->
295 <dimen name="notification_top_pad">10dp</dimen>
297 <!-- Top padding for notifications when narrow (i.e. it has 3 lines) -->
298 <dimen name="notification_top_pad_narrow">4dp</dimen>
300 <!-- Top padding for notification when text is large -->
301 <dimen name="notification_top_pad_large_text">5dp</dimen>
303 <!-- Top padding for notification when text is large and narrow (i.e. it has 3 lines -->
304 <dimen name="notification_top_pad_large_text_narrow">-4dp</dimen>
306 <!-- Padding for notification icon when drawn with circle around it -->
307 <dimen name="notification_large_icon_circle_padding">11dp</dimen>
309 <!-- The margin on top of the text of the notification -->
310 <dimen name="notification_text_margin_top">0.5dp</dimen>
312 <!-- The padding on top of inbox style elements -->
313 <dimen name="notification_inbox_item_top_padding">5dp</dimen>
315 <!-- Size of the profile badge for notifications -->
316 <dimen name="notification_badge_size">12dp</dimen>
318 <!-- Keyguard dimensions -->
320 <dimen name="kg_security_panel_height">600dp</dimen>
322 <!-- Height of security view in keyguard. -->
323 <dimen name="kg_security_view_height">480dp</dimen>
325 <!-- Width of widget view in keyguard. -->
326 <dimen name="kg_widget_view_width">0dp</dimen>
328 <!-- Height of widget view in keyguard. -->
329 <dimen name="kg_widget_view_height">0dp</dimen>
331 <!-- Size of the clock font in keyguard's status view -->
332 <dimen name="kg_status_clock_font_size">75dp</dimen>
334 <!-- Size of the date font in keyguard's status view -->
335 <dimen name="kg_status_date_font_size">15dp</dimen>
337 <!-- Size of the generic status lines keyguard's status view -->
338 <dimen name="kg_status_line_font_size">13dp</dimen>
340 <!-- Size of margin on the right of keyguard's status view -->
341 <dimen name="kg_status_line_font_right_margin">16dp</dimen>
343 <!-- Top margin for the clock view -->
344 <dimen name="kg_clock_top_margin">-16dp</dimen>
346 <!-- Horizontal gap between keys in PIN and SIM PIN numeric keyboards in keyguard -->
347 <dimen name="kg_key_horizontal_gap">0dp</dimen>
349 <!-- Horizontal gap between keys in PIN and SIM PIN numeric keyboards in keyguard -->
350 <dimen name="kg_key_vertical_gap">0dp</dimen>
352 <!-- Horizontal gap between keys in PIN and SIM PIN numeric keyboards in keyguard -->
353 <dimen name="kg_pin_key_height">60dp</dimen>
355 <!-- Space reserved at the bottom of secure views (pin/pattern/password/SIM pin/SIM puk) -->
356 <dimen name="kg_secure_padding_height">46dp</dimen>
358 <!-- The height of the runway lights strip -->
359 <dimen name="kg_runway_lights_height">7dp</dimen>
361 <!-- The height of the runway lights strip -->
362 <dimen name="kg_runway_lights_vertical_padding">2dp</dimen>
364 <!-- Horizontal padding for the widget pager -->
365 <dimen name="kg_widget_pager_horizontal_padding">16dp</dimen>
367 <!-- Top padding for the widget pager -->
368 <dimen name="kg_widget_pager_top_padding">0dp</dimen>
370 <!-- Bottom padding for the widget pager -->
371 <dimen name="kg_widget_pager_bottom_padding">64dp</dimen>
373 <!-- Top margin for the runway lights. We add a negative margin in large
374 devices to account for the widget pager padding -->
375 <dimen name="kg_runway_lights_top_margin">0dp</dimen>
377 <!-- Touch slop for the global toggle accessibility gesture -->
378 <dimen name="accessibility_touch_slop">80dip</dimen>
380 <!-- Width of the outline stroke used by the accessibility screen magnification indicator -->
381 <dimen name="accessibility_magnification_indicator_width">4dip</dimen>
383 <!-- Width of the sliding KeyguardSecurityContainer (includes 2x keyguard_security_view_margin) -->
384 <dimen name="keyguard_security_width">320dp</dimen>
386 <!-- Height of the sliding KeyguardSecurityContainer (includes 2x keyguard_security_view_margin) -->
387 <dimen name="keyguard_security_height">400dp</dimen>
389 <!-- Margin around the various security views -->
390 <dimen name="keyguard_security_view_margin">8dp</dimen>
392 <!-- Margin around the various security views -->
393 <dimen name="keyguard_muliuser_selector_margin">8dp</dimen>
395 <!-- Stroke width of the frame for the circular avatars. -->
396 <dimen name="keyguard_avatar_frame_stroke_width">2dp</dimen>
398 <!-- Shadow radius under the frame for the circular avatars. -->
399 <dimen name="keyguard_avatar_frame_shadow_radius">1dp</dimen>
401 <!-- Size of the avator on hte multiuser lockscreen. -->
402 <dimen name="keyguard_avatar_size">66dp</dimen>
404 <!-- Size of the text under the avator on the multiuser lockscreen. -->
405 <dimen name="keyguard_avatar_name_size">10sp</dimen>
407 <!-- Size of the region along the edge of the screen that will accept
408 swipes to scroll the widget area. -->
409 <dimen name="kg_edge_swipe_region_size">24dp</dimen>
411 <!-- If the height if keyguard drops below this threshold (most likely
412 due to the appearance of the IME), then drop the multiuser selector. -->
413 <dimen name="kg_squashed_layout_threshold">600dp</dimen>
415 <!-- The height of widgets which do not support vertical resizing. This is only
416 used on tablets; on phones, this size is determined by the space left by the
418 <dimen name="kg_small_widget_height">160dp</dimen>
420 <!-- Rounded corner radius for video subtitles. -->
421 <dimen name="subtitle_corner_radius">2dp</dimen>
423 <!-- Shadow radius for video subtitles. -->
424 <dimen name="subtitle_shadow_radius">2dp</dimen>
426 <!-- Shadow offset for video subtitles. -->
427 <dimen name="subtitle_shadow_offset">2dp</dimen>
429 <!-- Outline width for video subtitles. -->
430 <dimen name="subtitle_outline_width">2dp</dimen>
432 <!-- Minimum size of the fast scroller thumb's touch target. -->
433 <dimen name="fast_scroller_minimum_touch_target">48dp</dimen>
435 <!-- width of ImmersiveModeConfirmation (-1 for match_parent) -->
436 <dimen name="immersive_mode_cling_width">-1px</dimen>
438 <dimen name="resolver_max_width">480dp</dimen>
440 <!-- Amount to reduce the size of the circular mask by (to compensate for
441 aliasing effects). This is only used on circular displays. -->
442 <dimen name="circular_display_mask_thickness">1px</dimen>
444 <dimen name="lock_pattern_dot_line_width">3dp</dimen>
445 <dimen name="lock_pattern_dot_size">12dp</dimen>
446 <dimen name="lock_pattern_dot_size_activated">28dp</dimen>
448 <dimen name="text_handle_min_size">40dp</dimen>
450 <!-- Lighting and shadow properties -->
451 <dimen name="light_y">0dp</dimen>
452 <dimen name="light_z">600dp</dimen>
453 <dimen name="light_radius">800dp</dimen>
454 <item type="dimen" format="float" name="ambient_shadow_alpha">0.039</item>
455 <item type="dimen" format="float" name="spot_shadow_alpha">0.19</item>
457 <!-- Floating toolbar dimensions -->
458 <dimen name="floating_toolbar_height">48dp</dimen>
459 <dimen name="floating_toolbar_menu_image_button_width">56dp</dimen>
460 <dimen name="floating_toolbar_menu_image_button_vertical_padding">12dp</dimen>
461 <dimen name="floating_toolbar_menu_button_side_padding">16dp</dimen>
462 <dimen name="floating_toolbar_overflow_image_button_width">60dp</dimen>
463 <dimen name="floating_toolbar_overflow_side_padding">18dp</dimen>
464 <dimen name="floating_toolbar_text_size">14sp</dimen>
465 <dimen name="floating_toolbar_menu_button_minimum_width">48dp</dimen>
466 <dimen name="floating_toolbar_preferred_width">328dp</dimen>
467 <dimen name="floating_toolbar_minimum_overflow_height">96dp</dimen>
468 <dimen name="floating_toolbar_maximum_overflow_height">192dp</dimen>
469 <dimen name="floating_toolbar_horizontal_margin">16dp</dimen>
470 <dimen name="floating_toolbar_vertical_margin">8dp</dimen>
471 <dimen name="content_rect_bottom_clip_allowance">20dp</dimen>
473 <dimen name="chooser_grid_padding">0dp</dimen>
475 <item type="dimen" format="integer" name="time_picker_column_start_material">0</item>
476 <item type="dimen" format="integer" name="time_picker_column_end_material">1</item>
478 <item type="dimen" name="aerr_padding_list_top">15dp</item>
479 <item type="dimen" name="aerr_padding_list_bottom">8dp</item>
481 <item type="fraction" name="docked_stack_divider_fixed_ratio">34.15%</item>
483 <dimen name="resize_shadow_size">5dp</dimen>
485 <!-- The default minimal size of a resizable task, in both dimensions. -->
486 <dimen name="default_minimal_size_resizable_task">220dp</dimen>
488 <!-- Minimum "smallest width" of the display for cascading menus to be enabled. -->
489 <dimen name="cascading_menus_min_smallest_width">720dp</dimen>