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 standard size (both width and height) of an application icon that
28 will be displayed in the app launcher and elsewhere. -->
29 <dimen name="app_icon_size">48dip</dimen>
31 <dimen name="toast_y_offset">64dip</dimen>
32 <!-- Height of the status bar -->
33 <dimen name="status_bar_height">24dp</dimen>
34 <!-- Height of the bottom navigation / system bar. -->
35 <dimen name="navigation_bar_height">48dp</dimen>
36 <!-- Height of the bottom navigation bar in portrait; often the same as @dimen/navigation_bar_height -->
37 <dimen name="navigation_bar_height_landscape">48dp</dimen>
38 <!-- Width of the navigation bar when it is placed vertically on the screen -->
39 <dimen name="navigation_bar_width">48dp</dimen>
40 <!-- Height of the bottom navigation / system bar in car mode. -->
41 <dimen name="navigation_bar_height_car_mode">96dp</dimen>
42 <!-- Height of the bottom navigation bar in portrait; often the same as
43 @dimen/navigation_bar_height_car_mode -->
44 <dimen name="navigation_bar_height_landscape_car_mode">96dp</dimen>
45 <!-- Width of the navigation bar when it is placed vertically on the screen in car mode -->
46 <dimen name="navigation_bar_width_car_mode">96dp</dimen>
47 <!-- Height of notification icons in the status bar -->
48 <dimen name="status_bar_icon_size">24dip</dimen>
49 <!-- Size of the giant number (unread count) in the notifications -->
50 <dimen name="status_bar_content_number_size">48sp</dimen>
51 <!-- Margin at the edge of the screen to ignore touch events for in the windowshade. -->
52 <dimen name="status_bar_edge_ignore">5dp</dimen>
54 <!-- Width of the window of the divider bar used to resize docked stacks. -->
55 <dimen name="docked_stack_divider_thickness">48dp</dimen>
57 <!-- How much the content in the divider is inset from the window bounds when resting. Used to
58 calculate the bounds of the stacks-->
59 <dimen name="docked_stack_divider_insets">19dp</dimen>
61 <!-- To how much the docked stack gets reduced when we decide to minimize the docked stack, i.e.
62 when the user opens homescreen. -->
63 <dimen name="docked_stack_minimize_thickness">8dp</dimen>
65 <!-- Min width for a tablet device -->
66 <dimen name="min_xlarge_screen_width">800dp</dimen>
68 <!-- Default height of a key in the password keyboard for alpha (used by keyguard) -->
69 <dimen name="password_keyboard_key_height_alpha">56dip</dimen>
70 <!-- Default height of a key in the password keyboard for numeric (used by keyguard) -->
71 <dimen name="password_keyboard_key_height_numeric">56dip</dimen>
72 <!-- Default correction for the space key in the password keyboard (used by keyguard) -->
73 <dimen name="password_keyboard_spacebar_vertical_correction">4dip</dimen>
74 <!-- Default horizontal gap between keys in the password keyboard (used by keyguard) -->
75 <dimen name="password_keyboard_horizontalGap">3dip</dimen>
76 <!-- Default vertical gap between keys in the password keyboard (used by keyguard) -->
77 <dimen name="password_keyboard_verticalGap">9dip</dimen>
79 <!-- Size of lockscreen outerring on unsecure unlock LockScreen -->
80 <dimen name="keyguard_lockscreen_outerring_diameter">270dp</dimen>
82 <!-- Preference activity side margins -->
83 <dimen name="preference_screen_side_margin">0dp</dimen>
84 <!-- Preference activity side margins negative-->
85 <dimen name="preference_screen_side_margin_negative">0dp</dimen>
86 <!-- Preference activity top margin -->
87 <dimen name="preference_screen_top_margin">0dp</dimen>
88 <!-- Preference activity bottom margin -->
89 <dimen name="preference_screen_bottom_margin">0dp</dimen>
90 <!-- Preference widget area width (to the left of the text) -->
91 <dimen name="preference_widget_width">48dp</dimen>
92 <!-- Preference fragment padding, bottom -->
93 <dimen name="preference_fragment_padding_bottom">0dp</dimen>
94 <!-- Preference fragment padding, sides -->
95 <dimen name="preference_fragment_padding_side">16dp</dimen>
96 <!-- Weight of the left pane in a multi-pane preference layout. -->
97 <integer name="preferences_left_pane_weight">4</integer>
98 <!-- Weight of the right pane in a multi-pane preference layout. So the split is 40:60 -->
99 <integer name="preferences_right_pane_weight">6</integer>
100 <!-- Padding to the left of the preference panel breadcrumb -->
101 <dimen name="preference_breadcrumb_paddingLeft">0dp</dimen>
102 <!-- Padding to the right of the preference panel breadcrumb -->
103 <dimen name="preference_breadcrumb_paddingRight">0dp</dimen>
104 <!-- Minimum space to allocate to the left of a preference item for an icon.
105 This helps in aligning titles when some items have icons and some don't. When space is
106 at a premium, we don't pre-allocate any space. -->
107 <dimen name="preference_icon_minWidth">0dp</dimen>
108 <!-- The platform's desired minimum size for a dialog's width when it
109 is along the major axis (that is the screen is landscape). This may
110 be either a fraction or a dimension. -->
111 <item type="dimen" name="dialog_min_width_major">65%</item>
113 <!-- The platform's desired fixed width for a dialog along the major axis
114 (the screen is in landscape). This may be either a fraction or a dimension.-->
115 <item type="dimen" name="dialog_fixed_width_major">320dp</item>
116 <!-- The platform's desired fixed width for a dialog along the minor axis
117 (the screen is in portrait). This may be either a fraction or a dimension.-->
118 <item type="dimen" name="dialog_fixed_width_minor">320dp</item>
119 <!-- The platform's desired fixed height for a dialog along the major axis
120 (the screen is in portrait). This may be either a fraction or a dimension.-->
121 <item type="dimen" name="dialog_fixed_height_major">80%</item>
122 <!-- The platform's desired fixed height for a dialog along the minor axis
123 (the screen is in landscape). This may be either a fraction or a dimension.-->
124 <item type="dimen" name="dialog_fixed_height_minor">100%</item>
126 <!-- Preference activity, vertical padding for the header list -->
127 <dimen name="preference_screen_header_vertical_padding">0dp</dimen>
129 <dimen name="preference_screen_header_padding_side">16dip</dimen>
130 <integer name="preference_screen_header_scrollbarStyle">0x02000000</integer> <!-- outsideOverlay -->
132 <integer name="preference_fragment_scrollbarStyle">0x02000000</integer> <!-- outsideOverlay -->
134 <dimen name="preference_item_padding_side">8dip</dimen>
135 <dimen name="preference_item_padding_inner">8dip</dimen>
136 <dimen name="preference_child_padding_side">16dip</dimen>
138 <!-- The platform's desired minimum size for a dialog's width when it
139 is along the minor axis (that is the screen is portrait). This may
140 be either a fraction or a dimension. -->
141 <item type="dimen" name="dialog_min_width_minor">95%</item>
143 <!-- Default padding for dialogs. -->
144 <dimen name="dialog_padding">16dp</dimen>
146 <!-- The margin on the start of the content view -->
147 <dimen name="notification_content_margin_start">16dp</dimen>
149 <!-- The margin on the end of the content view -->
150 <dimen name="notification_content_margin_end">16dp</dimen>
152 <!-- The margin on the end of the content view with a picture.-->
153 <dimen name="notification_content_picture_margin">56dp</dimen>
155 <!-- height of the content margin to accomodate for the header -->
156 <dimen name="notification_content_margin_top">37.5dp</dimen>
158 <!-- height of the content margin on the bottom -->
159 <dimen name="notification_content_margin_bottom">16dp</dimen>
161 <!-- Height of a small notification in the status bar -->
162 <dimen name="notification_min_height">92dp</dimen>
164 <!-- The width of the big icons in notifications. -->
165 <dimen name="notification_large_icon_width">64dp</dimen>
166 <!-- The width of the big icons in notifications. -->
167 <dimen name="notification_large_icon_height">64dp</dimen>
169 <!-- The minimum width of the app name in the header if it shrinks -->
170 <dimen name="notification_header_shrink_min_width">72dp</dimen>
172 <!-- The minimum height of the content if there are at least two lines or a picture-->
173 <dimen name="notification_min_content_height">41dp</dimen>
175 <!-- The maximum size of the image in the expanded media notification -->
176 <dimen name="media_notification_expanded_image_max_size">94dp</dimen>
178 <!-- The maximum size of the image in the expanded media notification -->
179 <dimen name="media_notification_expanded_image_margin_bottom">20dp</dimen>
181 <!-- The margin of the content to an image-->
182 <dimen name="notification_content_image_margin_end">8dp</dimen>
184 <!-- Preferred width of the search view. -->
185 <dimen name="search_view_preferred_width">320dip</dimen>
187 <!-- Dialog padding for round display -->
188 <dimen name="alert_dialog_round_padding">27dip</dimen>
189 <!-- Dialog title height -->
190 <dimen name="alert_dialog_title_height">64dip</dimen>
191 <!-- Dialog button bar height -->
192 <dimen name="alert_dialog_button_bar_height">48dip</dimen>
193 <!-- Leanback dialog vertical margin -->
194 <dimen name="leanback_alert_dialog_vertical_margin">27dip</dimen>
195 <!-- Leanback dialog horizontal margin -->
196 <dimen name="leanback_alert_dialog_horizontal_margin">54dip</dimen>
198 <!-- Default height of an action bar. -->
199 <dimen name="action_bar_default_height">48dip</dimen>
200 <!-- Vertical padding around action bar icons. -->
201 <dimen name="action_bar_icon_vertical_padding">8dip</dimen>
202 <!-- Text size for action bar titles -->
203 <dimen name="action_bar_title_text_size">18dp</dimen>
204 <!-- Text size for action bar subtitles -->
205 <dimen name="action_bar_subtitle_text_size">14dp</dimen>
206 <!-- Top margin for action bar subtitles -->
207 <dimen name="action_bar_subtitle_top_margin">-3dp</dimen>
208 <!-- Bottom margin for action bar subtitles -->
209 <dimen name="action_bar_subtitle_bottom_margin">5dip</dimen>
211 <!-- Size of clock font in LockScreen on Unsecure unlock screen. -->
212 <dimen name="keyguard_lockscreen_clock_font_size">80dip</dimen>
214 <!-- Size of status line font on Unsecure unlock LockScreen. -->
215 <dimen name="keyguard_lockscreen_status_line_font_size">14dip</dimen>
217 <!-- Size of right margin on Unsecure unlock LockScreen -->
218 <dimen name="keyguard_lockscreen_status_line_font_right_margin">42dip</dimen>
220 <!-- Size of top margin on Clock font to edge on unlock LockScreen -->
221 <dimen name="keyguard_lockscreen_status_line_clockfont_top_margin">22dip</dimen>
223 <!-- Size of top margin on Clock font to edge on unlock LockScreen -->
224 <dimen name="keyguard_lockscreen_status_line_clockfont_bottom_margin">12dip</dimen>
226 <!-- Padding on left margin of PIN text entry field to center it when del button is showing -->
227 <dimen name="keyguard_lockscreen_pin_margin_left">40dip</dimen>
229 <!-- Height of FaceUnlock view in keyguard -->
230 <dimen name="face_unlock_height">330dip</dimen>
232 <!-- Minimum popup width for selecting an activity in ActivityChooserDialog/ActivityChooserView. -->
233 <dimen name="activity_chooser_popup_min_width">200dip</dimen>
235 <!-- The default gap between components in a layout. -->
236 <dimen name="default_gap">8dip</dimen>
238 <!-- Text padding for dropdown items -->
239 <dimen name="dropdownitem_text_padding_left">8dip</dimen>
241 <!-- Text padding for dropdown items -->
242 <dimen name="dropdownitem_text_padding_right">8dip</dimen>
244 <!-- Width of the icon in a dropdown list -->
245 <dimen name="dropdownitem_icon_width">32dip</dimen>
247 <!-- Default width for a textview error popup -->
248 <dimen name="textview_error_popup_default_width">240dip</dimen>
250 <!-- Default padding to apply to AppWidgetHostViews containing widgets targeting API level 14 and up. -->
251 <dimen name="default_app_widget_padding_left">8dp</dimen>
252 <dimen name="default_app_widget_padding_top">8dp</dimen>
253 <dimen name="default_app_widget_padding_right">8dp</dimen>
254 <dimen name="default_app_widget_padding_bottom">8dp</dimen>
256 <!-- Minimum width for an action button in the menu area of an action bar -->
257 <dimen name="action_button_min_width">56dip</dimen>
259 <!-- Maximum height for a stacked tab bar as part of an action bar -->
260 <dimen name="action_bar_stacked_max_height">48dp</dimen>
262 <!-- Maximum width for a stacked action bar tab. This prevents
263 action bar tabs from becoming too wide on a wide screen when only
264 a few are present. -->
265 <dimen name="action_bar_stacked_tab_max_width">180dp</dimen>
267 <!-- Size of notification text (see TextAppearance.StatusBar.EventContent) -->
268 <dimen name="notification_text_size">14sp</dimen>
269 <!-- Size of notification text titles (see TextAppearance.StatusBar.EventContent.Title) -->
270 <dimen name="notification_title_text_size">14sp</dimen>
271 <!-- Size of smaller notification text (see TextAppearance.StatusBar.EventContent.Line2, Info, Time) -->
272 <dimen name="notification_subtext_size">12sp</dimen>
274 <!-- Top padding for notifications in the standard layout. -->
275 <dimen name="notification_top_pad">10dp</dimen>
277 <!-- Top padding for notifications when narrow (i.e. it has 3 lines) -->
278 <dimen name="notification_top_pad_narrow">4dp</dimen>
280 <!-- Top padding for notification when text is large -->
281 <dimen name="notification_top_pad_large_text">5dp</dimen>
283 <!-- Top padding for notification when text is large and narrow (i.e. it has 3 lines -->
284 <dimen name="notification_top_pad_large_text_narrow">-4dp</dimen>
286 <!-- Padding for notification icon when drawn with circle around it -->
287 <dimen name="notification_large_icon_circle_padding">11dp</dimen>
289 <!-- Size of the profile badge for notifications -->
290 <dimen name="notification_badge_size">12dp</dimen>
292 <!-- Keyguard dimensions -->
294 <dimen name="kg_security_panel_height">600dp</dimen>
296 <!-- Height of security view in keyguard. -->
297 <dimen name="kg_security_view_height">480dp</dimen>
299 <!-- Width of widget view in keyguard. -->
300 <dimen name="kg_widget_view_width">0dp</dimen>
302 <!-- Height of widget view in keyguard. -->
303 <dimen name="kg_widget_view_height">0dp</dimen>
305 <!-- Size of the clock font in keyguard's status view -->
306 <dimen name="kg_status_clock_font_size">75dp</dimen>
308 <!-- Size of the date font in keyguard's status view -->
309 <dimen name="kg_status_date_font_size">15dp</dimen>
311 <!-- Size of the generic status lines keyguard's status view -->
312 <dimen name="kg_status_line_font_size">13dp</dimen>
314 <!-- Size of margin on the right of keyguard's status view -->
315 <dimen name="kg_status_line_font_right_margin">16dp</dimen>
317 <!-- Top margin for the clock view -->
318 <dimen name="kg_clock_top_margin">-16dp</dimen>
320 <!-- Horizontal gap between keys in PIN and SIM PIN numeric keyboards in keyguard -->
321 <dimen name="kg_key_horizontal_gap">0dp</dimen>
323 <!-- Horizontal gap between keys in PIN and SIM PIN numeric keyboards in keyguard -->
324 <dimen name="kg_key_vertical_gap">0dp</dimen>
326 <!-- Horizontal gap between keys in PIN and SIM PIN numeric keyboards in keyguard -->
327 <dimen name="kg_pin_key_height">60dp</dimen>
329 <!-- Space reserved at the bottom of secure views (pin/pattern/password/SIM pin/SIM puk) -->
330 <dimen name="kg_secure_padding_height">46dp</dimen>
332 <!-- The height of the runway lights strip -->
333 <dimen name="kg_runway_lights_height">7dp</dimen>
335 <!-- The height of the runway lights strip -->
336 <dimen name="kg_runway_lights_vertical_padding">2dp</dimen>
338 <!-- Horizontal padding for the widget pager -->
339 <dimen name="kg_widget_pager_horizontal_padding">16dp</dimen>
341 <!-- Top padding for the widget pager -->
342 <dimen name="kg_widget_pager_top_padding">0dp</dimen>
344 <!-- Bottom padding for the widget pager -->
345 <dimen name="kg_widget_pager_bottom_padding">64dp</dimen>
347 <!-- Top margin for the runway lights. We add a negative margin in large
348 devices to account for the widget pager padding -->
349 <dimen name="kg_runway_lights_top_margin">0dp</dimen>
351 <!-- Touch slop for the global toggle accessibility gesture -->
352 <dimen name="accessibility_touch_slop">80dip</dimen>
354 <!-- Width of the outline stroke used by the accessibility screen magnification indicator -->
355 <dimen name="accessibility_magnification_indicator_width">4dip</dimen>
357 <!-- Width of the sliding KeyguardSecurityContainer (includes 2x keyguard_security_view_margin) -->
358 <dimen name="keyguard_security_width">320dp</dimen>
360 <!-- Height of the sliding KeyguardSecurityContainer (includes 2x keyguard_security_view_margin) -->
361 <dimen name="keyguard_security_height">400dp</dimen>
363 <!-- Margin around the various security views -->
364 <dimen name="keyguard_security_view_margin">8dp</dimen>
366 <!-- Margin around the various security views -->
367 <dimen name="keyguard_muliuser_selector_margin">8dp</dimen>
369 <!-- Stroke width of the frame for the circular avatars. -->
370 <dimen name="keyguard_avatar_frame_stroke_width">2dp</dimen>
372 <!-- Shadow radius under the frame for the circular avatars. -->
373 <dimen name="keyguard_avatar_frame_shadow_radius">1dp</dimen>
375 <!-- Size of the avator on hte multiuser lockscreen. -->
376 <dimen name="keyguard_avatar_size">66dp</dimen>
378 <!-- Size of the text under the avator on the multiuser lockscreen. -->
379 <dimen name="keyguard_avatar_name_size">10sp</dimen>
381 <!-- Size of the region along the edge of the screen that will accept
382 swipes to scroll the widget area. -->
383 <dimen name="kg_edge_swipe_region_size">24dp</dimen>
385 <!-- If the height if keyguard drops below this threshold (most likely
386 due to the appearance of the IME), then drop the multiuser selector. -->
387 <dimen name="kg_squashed_layout_threshold">600dp</dimen>
389 <!-- The height of widgets which do not support vertical resizing. This is only
390 used on tablets; on phones, this size is determined by the space left by the
392 <dimen name="kg_small_widget_height">160dp</dimen>
394 <!-- Rounded corner radius for video subtitles. -->
395 <dimen name="subtitle_corner_radius">2dp</dimen>
397 <!-- Shadow radius for video subtitles. -->
398 <dimen name="subtitle_shadow_radius">2dp</dimen>
400 <!-- Shadow offset for video subtitles. -->
401 <dimen name="subtitle_shadow_offset">2dp</dimen>
403 <!-- Outline width for video subtitles. -->
404 <dimen name="subtitle_outline_width">2dp</dimen>
406 <!-- Minimum size of the fast scroller thumb's touch target. -->
407 <dimen name="fast_scroller_minimum_touch_target">48dp</dimen>
409 <!-- width of ImmersiveModeConfirmation (-1 for match_parent) -->
410 <dimen name="immersive_mode_cling_width">-1px</dimen>
412 <dimen name="resolver_max_width">480dp</dimen>
414 <!-- Amount to reduce the size of the circular mask by (to compensate for
415 aliasing effects). This is only used on circular displays. -->
416 <dimen name="circular_display_mask_thickness">1px</dimen>
418 <dimen name="lock_pattern_dot_line_width">3dp</dimen>
419 <dimen name="lock_pattern_dot_size">12dp</dimen>
420 <dimen name="lock_pattern_dot_size_activated">28dp</dimen>
422 <dimen name="text_handle_min_size">40dp</dimen>
424 <!-- Lighting and shadow properties -->
425 <dimen name="light_y">0dp</dimen>
426 <dimen name="light_z">600dp</dimen>
427 <dimen name="light_radius">800dp</dimen>
428 <item type="dimen" format="float" name="ambient_shadow_alpha">0.039</item>
429 <item type="dimen" format="float" name="spot_shadow_alpha">0.19</item>
431 <!-- Floating toolbar dimensions -->
432 <dimen name="floating_toolbar_height">48dp</dimen>
433 <dimen name="floating_toolbar_menu_image_button_width">56dp</dimen>
434 <dimen name="floating_toolbar_menu_image_button_vertical_padding">12dp</dimen>
435 <dimen name="floating_toolbar_menu_button_side_padding">16dp</dimen>
436 <dimen name="floating_toolbar_overflow_image_button_width">60dp</dimen>
437 <dimen name="floating_toolbar_overflow_side_padding">18dp</dimen>
438 <dimen name="floating_toolbar_text_size">14sp</dimen>
439 <dimen name="floating_toolbar_menu_button_minimum_width">48dp</dimen>
440 <dimen name="floating_toolbar_preferred_width">328dp</dimen>
441 <dimen name="floating_toolbar_minimum_overflow_height">96dp</dimen>
442 <dimen name="floating_toolbar_maximum_overflow_height">192dp</dimen>
443 <dimen name="floating_toolbar_horizontal_margin">16dp</dimen>
444 <dimen name="floating_toolbar_vertical_margin">8dp</dimen>
445 <dimen name="content_rect_bottom_clip_allowance">20dp</dimen>
447 <dimen name="chooser_grid_padding">0dp</dimen>
449 <item type="dimen" format="integer" name="time_picker_column_start_material">0</item>
450 <item type="dimen" format="integer" name="time_picker_column_end_material">1</item>
452 <item type="dimen" name="aerr_padding_list_top">15dp</item>
454 <item type="fraction" name="docked_stack_divider_fixed_ratio">34.15%</item>