1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- 3 /* //device/apps/common/assets/res/any/dimens.xml 4 ** 5 ** Copyright 2006, The Android Open Source Project 6 ** 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 10 ** 11 ** http://www.apache.org/licenses/LICENSE-2.0 12 ** 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. 18 */ 19 --> 20 <resources> 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 standard size (both width and height) of an application icon that 26 will be displayed in the app launcher and elsewhere. --> 27 <dimen name="app_icon_size">48dip</dimen> 28 <!-- The maximum number of action buttons that should be permitted within 29 an action bar/action mode. This will be used to determine how many 30 showAsAction="ifRoom" items can fit. "always" items can override this. --> 31 <integer name="max_action_buttons">2</integer> 32 <dimen name="toast_y_offset">64dip</dimen> 33 <!-- Height of the status bar --> 34 <dimen name="status_bar_height">25dip</dimen> 35 <!-- Height of the bottom navigation / system bar. --> 36 <dimen name="navigation_bar_height">48dp</dimen> 37 <!-- Height of the bottom navigation bar in portrait; often the same as @dimen/navigation_bar_height --> 38 <dimen name="navigation_bar_height_landscape">48dp</dimen> 39 <!-- Width of the navigation bar when it is placed vertically on the screen --> 40 <dimen name="navigation_bar_width">42dp</dimen> 41 <!-- Height of notification icons in the status bar --> 42 <dimen name="status_bar_icon_size">24dip</dimen> 43 <!-- Size of the giant number (unread count) in the notifications --> 44 <dimen name="status_bar_content_number_size">48sp</dimen> 45 <!-- Margin at the edge of the screen to ignore touch events for in the windowshade. --> 46 <dimen name="status_bar_edge_ignore">5dp</dimen> 47 48 <!-- Min width for a tablet device --> 49 <dimen name="min_xlarge_screen_width">800dp</dimen> 50 51 <!-- Default height of a key in the password keyboard for alpha (used by keyguard) --> 52 <dimen name="password_keyboard_key_height_alpha">56dip</dimen> 53 <!-- Default height of a key in the password keyboard for numeric (used by keyguard) --> 54 <dimen name="password_keyboard_key_height_numeric">56dip</dimen> 55 <!-- Default correction for the space key in the password keyboard (used by keyguard) --> 56 <dimen name="password_keyboard_spacebar_vertical_correction">4dip</dimen> 57 <!-- Default horizontal gap between keys in the password keyboard (used by keyguard) --> 58 <dimen name="password_keyboard_horizontalGap">3dip</dimen> 59 <!-- Default vertical gap between keys in the password keyboard (used by keyguard) --> 60 <dimen name="password_keyboard_verticalGap">9dip</dimen> 61 62 <!-- Size of lockscreen outerring on unsecure unlock LockScreen --> 63 <dimen name="keyguard_lockscreen_outerring_diameter">270dp</dimen> 64 65 <!-- Preference activity side margins --> 66 <dimen name="preference_screen_side_margin">0dp</dimen> 67 <!-- Preference activity side margins negative--> 68 <dimen name="preference_screen_side_margin_negative">0dp</dimen> 69 <!-- Preference activity top margin --> 70 <dimen name="preference_screen_top_margin">0dp</dimen> 71 <!-- Preference activity bottom margin --> 72 <dimen name="preference_screen_bottom_margin">0dp</dimen> 73 <!-- Preference widget area width (to the left of the text) --> 74 <dimen name="preference_widget_width">48dp</dimen> 75 <!-- Preference fragment padding, bottom --> 76 <dimen name="preference_fragment_padding_bottom">0dp</dimen> 77 <!-- Preference fragment padding, sides --> 78 <dimen name="preference_fragment_padding_side">16dp</dimen> 79 <!-- Weight of the left pane in a multi-pane preference layout. --> 80 <integer name="preferences_left_pane_weight">4</integer> 81 <!-- Weight of the right pane in a multi-pane preference layout. So the split is 40:60 --> 82 <integer name="preferences_right_pane_weight">6</integer> 83 <!-- Padding to the left of the preference panel breadcrumb --> 84 <dimen name="preference_breadcrumb_paddingLeft">0dp</dimen> 85 <!-- Padding to the right of the preference panel breadcrumb --> 86 <dimen name="preference_breadcrumb_paddingRight">0dp</dimen> 87 <!-- Minimum space to allocate to the left of a preference item for an icon. 88 This helps in aligning titles when some items have icons and some don't. When space is 89 at a premium, we don't pre-allocate any space. --> 90 <dimen name="preference_icon_minWidth">0dp</dimen> 91 <!-- The platform's desired minimum size for a dialog's width when it 92 is along the major axis (that is the screen is landscape). This may 93 be either a fraction or a dimension. --> 94 <item type="dimen" name="dialog_min_width_major">65%</item> 95 96 <!-- The platform's desired fixed width for a dialog along the major axis 97 (the screen is in landscape). This may be either a fraction or a dimension.--> 98 <item type="dimen" name="dialog_fixed_width_major">320dp</item> 99 <!-- The platform's desired fixed width for a dialog along the minor axis 100 (the screen is in portrait). This may be either a fraction or a dimension.--> 101 <item type="dimen" name="dialog_fixed_width_minor">320dp</item> 102 <!-- The platform's desired fixed height for a dialog along the major axis 103 (the screen is in portrait). This may be either a fraction or a dimension.--> 104 <item type="dimen" name="dialog_fixed_height_major">80%</item> 105 <!-- The platform's desired fixed height for a dialog along the minor axis 106 (the screen is in landscape). This may be either a fraction or a dimension.--> 107 <item type="dimen" name="dialog_fixed_height_minor">100%</item> 108 109 <!-- Preference activity, vertical padding for the header list --> 110 <dimen name="preference_screen_header_vertical_padding">0dp</dimen> 111 112 <dimen name="preference_screen_header_padding_side">16dip</dimen> 113 <integer name="preference_screen_header_scrollbarStyle">0x02000000</integer> <!-- outsideOverlay --> 114 115 <integer name="preference_fragment_scrollbarStyle">0x02000000</integer> <!-- outsideOverlay --> 116 117 <dimen name="preference_item_padding_side">8dip</dimen> 118 <dimen name="preference_item_padding_inner">8dip</dimen> 119 <dimen name="preference_child_padding_side">16dip</dimen> 120 121 <!-- The platform's desired minimum size for a dialog's width when it 122 is along the minor axis (that is the screen is portrait). This may 123 be either a fraction or a dimension. --> 124 <item type="dimen" name="dialog_min_width_minor">95%</item> 125 126 <!-- Default padding for dialogs. --> 127 <dimen name="dialog_padding">16dp</dimen> 128 129 <!-- The width of the big icons in notifications. --> 130 <dimen name="notification_large_icon_width">64dp</dimen> 131 <!-- The width of the big icons in notifications. --> 132 <dimen name="notification_large_icon_height">64dp</dimen> 133 134 <!-- Minimum width of the search view text entry area. --> 135 <dimen name="search_view_text_min_width">160dip</dimen> 136 137 <!-- Preferred width of the search view. --> 138 <dimen name="search_view_preferred_width">320dip</dimen> 139 140 <!-- Dialog padding for round display --> 141 <dimen name="alert_dialog_round_padding">27dip</dimen> 142 <!-- Dialog title height --> 143 <dimen name="alert_dialog_title_height">64dip</dimen> 144 <!-- Dialog button bar height --> 145 <dimen name="alert_dialog_button_bar_height">48dip</dimen> 146 <!-- Leanback dialog vertical margin --> 147 <dimen name="leanback_alert_dialog_vertical_margin">27dip</dimen> 148 <!-- Leanback dialog horizontal margin --> 149 <dimen name="leanback_alert_dialog_horizontal_margin">54dip</dimen> 150 151 <!-- Default height of an action bar. --> 152 <dimen name="action_bar_default_height">48dip</dimen> 153 <!-- Vertical padding around action bar icons. --> 154 <dimen name="action_bar_icon_vertical_padding">8dip</dimen> 155 <!-- Text size for action bar titles --> 156 <dimen name="action_bar_title_text_size">18dp</dimen> 157 <!-- Text size for action bar subtitles --> 158 <dimen name="action_bar_subtitle_text_size">14dp</dimen> 159 <!-- Top margin for action bar subtitles --> 160 <dimen name="action_bar_subtitle_top_margin">-3dp</dimen> 161 <!-- Bottom margin for action bar subtitles --> 162 <dimen name="action_bar_subtitle_bottom_margin">5dip</dimen> 163 164 <!-- Size of clock font in LockScreen on Unsecure unlock screen. --> 165 <dimen name="keyguard_lockscreen_clock_font_size">80dip</dimen> 166 167 <!-- Size of status line font on Unsecure unlock LockScreen. --> 168 <dimen name="keyguard_lockscreen_status_line_font_size">14dip</dimen> 169 170 <!-- Size of right margin on Unsecure unlock LockScreen --> 171 <dimen name="keyguard_lockscreen_status_line_font_right_margin">42dip</dimen> 172 173 <!-- Size of top margin on Clock font to edge on unlock LockScreen --> 174 <dimen name="keyguard_lockscreen_status_line_clockfont_top_margin">22dip</dimen> 175 176 <!-- Size of top margin on Clock font to edge on unlock LockScreen --> 177 <dimen name="keyguard_lockscreen_status_line_clockfont_bottom_margin">12dip</dimen> 178 179 <!-- Padding on left margin of PIN text entry field to center it when del button is showing --> 180 <dimen name="keyguard_lockscreen_pin_margin_left">40dip</dimen> 181 182 <!-- Height of FaceUnlock view in keyguard --> 183 <dimen name="face_unlock_height">330dip</dimen> 184 185 <!-- Minimum popup width for selecting an activity in ActivityChooserDialog/ActivityChooserView. --> 186 <dimen name="activity_chooser_popup_min_width">200dip</dimen> 187 188 <!-- The default gap between components in a layout. --> 189 <dimen name="default_gap">8dip</dimen> 190 191 <!-- Text padding for dropdown items --> 192 <dimen name="dropdownitem_text_padding_left">8dip</dimen> 193 194 <!-- Text padding for dropdown items --> 195 <dimen name="dropdownitem_text_padding_right">8dip</dimen> 196 197 <!-- Width of the icon in a dropdown list --> 198 <dimen name="dropdownitem_icon_width">32dip</dimen> 199 200 <!-- Default width for a textview error popup --> 201 <dimen name="textview_error_popup_default_width">240dip</dimen> 202 203 <!-- Default padding to apply to AppWidgetHostViews containing widgets targeting API level 14 and up. --> 204 <dimen name="default_app_widget_padding_left">8dp</dimen> 205 <dimen name="default_app_widget_padding_top">8dp</dimen> 206 <dimen name="default_app_widget_padding_right">8dp</dimen> 207 <dimen name="default_app_widget_padding_bottom">8dp</dimen> 208 209 <!-- Minimum width for an action button in the menu area of an action bar --> 210 <dimen name="action_button_min_width">56dip</dimen> 211 212 <!-- Maximum height for a stacked tab bar as part of an action bar --> 213 <dimen name="action_bar_stacked_max_height">48dp</dimen> 214 215 <!-- Maximum width for a stacked action bar tab. This prevents 216 action bar tabs from becoming too wide on a wide screen when only 217 a few are present. --> 218 <dimen name="action_bar_stacked_tab_max_width">180dp</dimen> 219 220 <!-- Size of notification text (see TextAppearance.StatusBar.EventContent) --> 221 <dimen name="notification_text_size">14sp</dimen> 222 <!-- Size of notification text titles (see TextAppearance.StatusBar.EventContent.Title) --> 223 <dimen name="notification_title_text_size">16sp</dimen> 224 <!-- Size of smaller notification text (see TextAppearance.StatusBar.EventContent.Line2, Info, Time) --> 225 <dimen name="notification_subtext_size">12sp</dimen> 226 227 <!-- Top padding for notifications in the standard layout. --> 228 <dimen name="notification_top_pad">10dp</dimen> 229 230 <!-- Top padding for notifications when narrow (i.e. it has 3 lines) --> 231 <dimen name="notification_top_pad_narrow">4dp</dimen> 232 233 <!-- Top padding for notification when text is large --> 234 <dimen name="notification_top_pad_large_text">5dp</dimen> 235 236 <!-- Top padding for notification when text is large and narrow (i.e. it has 3 lines --> 237 <dimen name="notification_top_pad_large_text_narrow">-4dp</dimen> 238 239 <!-- Padding for notification icon when drawn with circle around it --> 240 <dimen name="notification_large_icon_circle_padding">11dp</dimen> 241 242 <!-- Size of the profile badge for notifications --> 243 <dimen name="notification_badge_size">16dp</dimen> 244 245 <!-- Keyguard dimensions --> 246 <!-- TEMP --> 247 <dimen name="kg_security_panel_height">600dp</dimen> 248 249 <!-- Height of security view in keyguard. --> 250 <dimen name="kg_security_view_height">480dp</dimen> 251 252 <!-- Width of widget view in keyguard. --> 253 <dimen name="kg_widget_view_width">0dp</dimen> 254 255 <!-- Height of widget view in keyguard. --> 256 <dimen name="kg_widget_view_height">0dp</dimen> 257 258 <!-- Size of the clock font in keyguard's status view --> 259 <dimen name="kg_status_clock_font_size">75dp</dimen> 260 261 <!-- Size of the date font in keyguard's status view --> 262 <dimen name="kg_status_date_font_size">15dp</dimen> 263 264 <!-- Size of the generic status lines keyguard's status view --> 265 <dimen name="kg_status_line_font_size">13dp</dimen> 266 267 <!-- Size of margin on the right of keyguard's status view --> 268 <dimen name="kg_status_line_font_right_margin">16dp</dimen> 269 270 <!-- Top margin for the clock view --> 271 <dimen name="kg_clock_top_margin">-16dp</dimen> 272 273 <!-- Horizontal gap between keys in PIN and SIM PIN numeric keyboards in keyguard --> 274 <dimen name="kg_key_horizontal_gap">0dp</dimen> 275 276 <!-- Horizontal gap between keys in PIN and SIM PIN numeric keyboards in keyguard --> 277 <dimen name="kg_key_vertical_gap">0dp</dimen> 278 279 <!-- Horizontal gap between keys in PIN and SIM PIN numeric keyboards in keyguard --> 280 <dimen name="kg_pin_key_height">60dp</dimen> 281 282 <!-- Space reserved at the bottom of secure views (pin/pattern/password/SIM pin/SIM puk) --> 283 <dimen name="kg_secure_padding_height">46dp</dimen> 284 285 <!-- The height of the runway lights strip --> 286 <dimen name="kg_runway_lights_height">7dp</dimen> 287 288 <!-- The height of the runway lights strip --> 289 <dimen name="kg_runway_lights_vertical_padding">2dp</dimen> 290 291 <!-- Horizontal padding for the widget pager --> 292 <dimen name="kg_widget_pager_horizontal_padding">16dp</dimen> 293 294 <!-- Top padding for the widget pager --> 295 <dimen name="kg_widget_pager_top_padding">0dp</dimen> 296 297 <!-- Bottom padding for the widget pager --> 298 <dimen name="kg_widget_pager_bottom_padding">64dp</dimen> 299 300 <!-- Top margin for the runway lights. We add a negative margin in large 301 devices to account for the widget pager padding --> 302 <dimen name="kg_runway_lights_top_margin">0dp</dimen> 303 304 <!-- Touch slop for the global toggle accessibility gesture --> 305 <dimen name="accessibility_touch_slop">80dip</dimen> 306 307 <!-- Width of the sliding KeyguardSecurityContainer (includes 2x keyguard_security_view_margin) --> 308 <dimen name="keyguard_security_width">320dp</dimen> 309 310 <!-- Height of the sliding KeyguardSecurityContainer (includes 2x keyguard_security_view_margin) --> 311 <dimen name="keyguard_security_height">400dp</dimen> 312 313 <!-- Margin around the various security views --> 314 <dimen name="keyguard_security_view_margin">8dp</dimen> 315 316 <!-- Margin around the various security views --> 317 <dimen name="keyguard_muliuser_selector_margin">8dp</dimen> 318 319 <!-- Stroke width of the frame for the circular avatars. --> 320 <dimen name="keyguard_avatar_frame_stroke_width">2dp</dimen> 321 322 <!-- Shadow radius under the frame for the circular avatars. --> 323 <dimen name="keyguard_avatar_frame_shadow_radius">1dp</dimen> 324 325 <!-- Size of the avator on hte multiuser lockscreen. --> 326 <dimen name="keyguard_avatar_size">66dp</dimen> 327 328 <!-- Size of the text under the avator on the multiuser lockscreen. --> 329 <dimen name="keyguard_avatar_name_size">10sp</dimen> 330 331 <!-- Size of the region along the edge of the screen that will accept 332 swipes to scroll the widget area. --> 333 <dimen name="kg_edge_swipe_region_size">24dp</dimen> 334 335 <!-- If the height if keyguard drops below this threshold (most likely 336 due to the appearance of the IME), then drop the multiuser selector. --> 337 <dimen name="kg_squashed_layout_threshold">600dp</dimen> 338 339 <!-- The height of widgets which do not support vertical resizing. This is only 340 used on tablets; on phones, this size is determined by the space left by the 341 security mode. --> 342 <dimen name="kg_small_widget_height">160dp</dimen> 343 344 <!-- Rounded corner radius for video subtitles. --> 345 <dimen name="subtitle_corner_radius">2dp</dimen> 346 347 <!-- Shadow radius for video subtitles. --> 348 <dimen name="subtitle_shadow_radius">2dp</dimen> 349 350 <!-- Shadow offset for video subtitles. --> 351 <dimen name="subtitle_shadow_offset">2dp</dimen> 352 353 <!-- Outline width for video subtitles. --> 354 <dimen name="subtitle_outline_width">2dp</dimen> 355 356 <!-- New TimePicker dimensions. --> 357 <item name="timepicker_circle_radius_multiplier" format="float" type="string">0.82</item> 358 <item name="timepicker_circle_radius_multiplier_24HourMode" format="float" type="string">0.85</item> 359 <item name="timepicker_selection_radius_multiplier" format="float" type="string">0.16</item> 360 <item name="timepicker_ampm_circle_radius_multiplier" format="float" type="string">0.19</item> 361 <item name="timepicker_numbers_radius_multiplier_normal" format="float" type="string">0.81</item> 362 <item name="timepicker_numbers_radius_multiplier_inner" format="float" type="string">0.60</item> 363 <item name="timepicker_numbers_radius_multiplier_outer" format="float" type="string">0.83</item> 364 <item name="timepicker_text_size_multiplier_normal" format="float" type="string">0.17</item> 365 <item name="timepicker_text_size_multiplier_inner" format="float" type="string">0.14</item> 366 <item name="timepicker_text_size_multiplier_outer" format="float" type="string">0.11</item> 367 <item name="timepicker_transition_mid_radius_multiplier" format="float" type="string">0.95</item> 368 <item name="timepicker_transition_end_radius_multiplier" format="float" type="string">1.3</item> 369 370 <dimen name="timepicker_time_label_size">60sp</dimen> 371 <dimen name="timepicker_extra_time_label_margin">-30dp</dimen> 372 <dimen name="timepicker_ampm_label_size">16sp</dimen> 373 <dimen name="timepicker_ampm_horizontal_padding">12dp</dimen> 374 <dimen name="timepicker_ampm_vertical_padding">16dp</dimen> 375 <dimen name="timepicker_pm_top_padding">3dp</dimen> 376 <dimen name="timepicker_separator_padding">4dp</dimen> 377 <dimen name="timepicker_header_height">96dp</dimen> 378 <dimen name="timepicker_minimum_margin_sides">48dp</dimen> 379 <dimen name="timepicker_minimum_margin_top_bottom">24dp</dimen> 380 <dimen name="timepicker_radial_picker_dimen">270dp</dimen> 381 382 <!-- Used by SimpleMonthView --> 383 <dimen name="datepicker_day_number_size">12sp</dimen> 384 <dimen name="datepicker_month_label_size">14sp</dimen> 385 <dimen name="datepicker_month_day_label_text_size">12sp</dimen> 386 <dimen name="datepicker_month_list_item_header_height">48dp</dimen> 387 <dimen name="datepicker_day_number_select_circle_radius">16dp</dimen> 388 <dimen name="datepicker_view_animator_height">226dp</dimen> 389 390 <dimen name="datepicker_year_picker_padding_top">8dp</dimen> 391 <dimen name="datepicker_year_label_height">64dp</dimen> 392 <dimen name="datepicker_year_label_text_size">22dp</dimen> 393 <dimen name="datepicker_component_width">260dp</dimen> 394 <dimen name="datepicker_dialog_width">520dp</dimen> 395 <dimen name="datepicker_selected_date_day_size">88dp</dimen> 396 <dimen name="datepicker_selected_date_month_size">24dp</dimen> 397 <dimen name="datepicker_selected_date_year_size">24dp</dimen> 398 <dimen name="datepicker_header_height">30dp</dimen> 399 <dimen name="datepicker_header_text_size">14dp</dimen> 400 401 <!-- Minimum size of the fast scroller thumb's touch target. --> 402 <dimen name="fast_scroller_minimum_touch_target">48dp</dimen> 403 404 <!-- width of ImmersiveModeConfirmation (-1 for match_parent) --> 405 <dimen name="immersive_mode_cling_width">-1px</dimen> 406 407 <dimen name="resolver_max_width">480dp</dimen> 408 409 <!-- Size of the offset applied to the position of the circular mask. This is only 410 used on circular displays. In the case where there is no "chin", this will default 411 to 0 --> 412 <dimen name="circular_display_mask_offset">0px</dimen> 413 414 <dimen name="lock_pattern_dot_line_width">3dp</dimen> 415 <dimen name="lock_pattern_dot_size">12dp</dimen> 416 <dimen name="lock_pattern_dot_size_activated">28dp</dimen> 417 418 <dimen name="text_handle_min_size">40dp</dimen> 419 420 <!-- Lighting and shadow properties --> 421 <dimen name="light_y">-200dp</dimen> 422 <dimen name="light_z">800dp</dimen> 423 <dimen name="light_radius">600dp</dimen> 424 <item type="dimen" format="float" name="ambient_shadow_alpha">0.075</item> 425 <item type="dimen" format="float" name="spot_shadow_alpha">0.15</item> 426 427 </resources> 428