dimens.xml revision 4732783143445826ec2073913af3ef542ea60793
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">164dp</dimen> 23 <!-- The height that is used when creating thumbnails of applications. --> 24 <dimen name="thumbnail_height">145dp</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 <!-- Height of the system bar (combined status & navigation); used by 46 SystemUI internally, not respected by the window manager. --> 47 <dimen name="system_bar_height">@dimen/navigation_bar_height</dimen> 48 <!-- Height of notification icons in the system bar --> 49 <dimen name="system_bar_icon_size">32dip</dimen> 50 <!-- Margin at the edge of the screen to ignore touch events for in the windowshade. --> 51 <dimen name="status_bar_edge_ignore">5dp</dimen> 52 53 <!-- Minimum size of the fastscroll overlay --> 54 <dimen name="fastscroll_overlay_size">104dp</dimen> 55 <!-- Text size of the fastscroll overlay --> 56 <dimen name="fastscroll_overlay_text_size">52sp</dimen> 57 <!-- Padding of the fastscroll overlay --> 58 <dimen name="fastscroll_overlay_padding">16dp</dimen> 59 <!-- Width of the fastscroll thumb --> 60 <dimen name="fastscroll_thumb_width">64dp</dimen> 61 <!-- Height of the fastscroll thumb --> 62 <dimen name="fastscroll_thumb_height">52dp</dimen> 63 <!-- Min width for a tablet device --> 64 <dimen name="min_xlarge_screen_width">800dp</dimen> 65 66 <!-- Default height of a key in the password keyboard for alpha (used by keyguard) --> 67 <dimen name="password_keyboard_key_height_alpha">56dip</dimen> 68 <!-- Default height of a key in the password keyboard for numeric (used by keyguard) --> 69 <dimen name="password_keyboard_key_height_numeric">56dip</dimen> 70 <!-- Default correction for the space key in the password keyboard (used by keyguard) --> 71 <dimen name="password_keyboard_spacebar_vertical_correction">4dip</dimen> 72 <!-- Default horizontal gap between keys in the password keyboard (used by keyguard) --> 73 <dimen name="password_keyboard_horizontalGap">3dip</dimen> 74 <!-- Default vertical gap between keys in the password keyboard (used by keyguard) --> 75 <dimen name="password_keyboard_verticalGap">9dip</dimen> 76 77 <!-- Size of lockscreen outerring on unsecure unlock LockScreen --> 78 <dimen name="keyguard_lockscreen_outerring_diameter">270dp</dimen> 79 80 <!-- Default target placement radius for GlowPadView. Should be 1/2 of outerring diameter. --> 81 <dimen name="glowpadview_target_placement_radius">135dip</dimen> 82 83 <!-- Default glow radius for GlowPadView --> 84 <dimen name="glowpadview_glow_radius">75dip</dimen> 85 86 <!-- Default distance beyond which GlowPadView snaps to the matching target --> 87 <dimen name="glowpadview_snap_margin">40dip</dimen> 88 89 <!-- Default distance from each snap target that GlowPadView considers a "hit" --> 90 <dimen name="glowpadview_inner_radius">15dip</dimen> 91 92 <!-- Preference activity side margins --> 93 <dimen name="preference_screen_side_margin">0dp</dimen> 94 <!-- Preference activity side margins negative--> 95 <dimen name="preference_screen_side_margin_negative">0dp</dimen> 96 <!-- Preference activity top margin --> 97 <dimen name="preference_screen_top_margin">0dp</dimen> 98 <!-- Preference activity bottom margin --> 99 <dimen name="preference_screen_bottom_margin">0dp</dimen> 100 <!-- Preference widget area width (to the left of the text) --> 101 <dimen name="preference_widget_width">48dp</dimen> 102 <!-- Preference fragment padding, bottom --> 103 <dimen name="preference_fragment_padding_bottom">0dp</dimen> 104 <!-- Preference fragment padding, sides --> 105 <dimen name="preference_fragment_padding_side">16dp</dimen> 106 <!-- Weight of the left pane in a multi-pane preference layout. --> 107 <integer name="preferences_left_pane_weight">4</integer> 108 <!-- Weight of the right pane in a multi-pane preference layout. So the split is 40:60 --> 109 <integer name="preferences_right_pane_weight">6</integer> 110 <!-- Padding to the left of the preference panel breadcrumb --> 111 <dimen name="preference_breadcrumb_paddingLeft">0dp</dimen> 112 <!-- Padding to the right of the preference panel breadcrumb --> 113 <dimen name="preference_breadcrumb_paddingRight">0dp</dimen> 114 <!-- Minimum space to allocate to the left of a preference item for an icon. 115 This helps in aligning titles when some items have icons and some don't. When space is 116 at a premium, we don't pre-allocate any space. --> 117 <dimen name="preference_icon_minWidth">0dp</dimen> 118 <!-- The platform's desired minimum size for a dialog's width when it 119 is along the major axis (that is the screen is landscape). This may 120 be either a fraction or a dimension. --> 121 <item type="dimen" name="dialog_min_width_major">65%</item> 122 123 <!-- The platform's desired fixed width for a dialog along the major axis 124 (the screen is in landscape). This may be either a fraction or a dimension.--> 125 <item type="dimen" name="dialog_fixed_width_major">320dp</item> 126 <!-- The platform's desired fixed width for a dialog along the minor axis 127 (the screen is in portrait). This may be either a fraction or a dimension.--> 128 <item type="dimen" name="dialog_fixed_width_minor">320dp</item> 129 <!-- The platform's desired fixed height for a dialog along the major axis 130 (the screen is in portrait). This may be either a fraction or a dimension.--> 131 <item type="dimen" name="dialog_fixed_height_major">80%</item> 132 <!-- The platform's desired fixed height for a dialog along the minor axis 133 (the screen is in landscape). This may be either a fraction or a dimension.--> 134 <item type="dimen" name="dialog_fixed_height_minor">100%</item> 135 136 <!-- Preference activity, vertical padding for the header list --> 137 <dimen name="preference_screen_header_vertical_padding">0dp</dimen> 138 139 <dimen name="preference_screen_header_padding_side">16dip</dimen> 140 <integer name="preference_screen_header_scrollbarStyle">0x02000000</integer> <!-- outsideOverlay --> 141 142 <integer name="preference_fragment_scrollbarStyle">0x02000000</integer> <!-- outsideOverlay --> 143 144 <dimen name="preference_item_padding_side">8dip</dimen> 145 <dimen name="preference_item_padding_inner">8dip</dimen> 146 <dimen name="preference_child_padding_side">16dip</dimen> 147 148 <!-- The platform's desired minimum size for a dialog's width when it 149 is along the minor axis (that is the screen is portrait). This may 150 be either a fraction or a dimension. --> 151 <item type="dimen" name="dialog_min_width_minor">95%</item> 152 153 <!-- The width of the big icons in notifications. --> 154 <dimen name="notification_large_icon_width">64dp</dimen> 155 <!-- The width of the big icons in notifications. --> 156 <dimen name="notification_large_icon_height">64dp</dimen> 157 158 <!-- Minimum width of the search view text entry area. --> 159 <dimen name="search_view_text_min_width">160dip</dimen> 160 161 <!-- Preferred width of the search view. --> 162 <dimen name="search_view_preferred_width">320dip</dimen> 163 164 <!-- Dialog title height --> 165 <dimen name="alert_dialog_title_height">64dip</dimen> 166 <!-- Dialog button bar height --> 167 <dimen name="alert_dialog_button_bar_height">48dip</dimen> 168 169 <!-- Default height of an action bar. --> 170 <dimen name="action_bar_default_height">48dip</dimen> 171 <!-- Vertical padding around action bar icons. --> 172 <dimen name="action_bar_icon_vertical_padding">8dip</dimen> 173 <!-- Text size for action bar titles --> 174 <dimen name="action_bar_title_text_size">18dp</dimen> 175 <!-- Text size for action bar subtitles --> 176 <dimen name="action_bar_subtitle_text_size">14dp</dimen> 177 <!-- Top margin for action bar subtitles --> 178 <dimen name="action_bar_subtitle_top_margin">-3dp</dimen> 179 <!-- Bottom margin for action bar subtitles --> 180 <dimen name="action_bar_subtitle_bottom_margin">5dip</dimen> 181 182 <!-- Size of clock font in LockScreen on Unsecure unlock screen. --> 183 <dimen name="keyguard_lockscreen_clock_font_size">80dip</dimen> 184 185 <!-- Size of status line font on Unsecure unlock LockScreen. --> 186 <dimen name="keyguard_lockscreen_status_line_font_size">14dip</dimen> 187 188 <!-- Size of right margin on Unsecure unlock LockScreen --> 189 <dimen name="keyguard_lockscreen_status_line_font_right_margin">42dip</dimen> 190 191 <!-- Size of top margin on Clock font to edge on unlock LockScreen --> 192 <dimen name="keyguard_lockscreen_status_line_clockfont_top_margin">22dip</dimen> 193 194 <!-- Size of top margin on Clock font to edge on unlock LockScreen --> 195 <dimen name="keyguard_lockscreen_status_line_clockfont_bottom_margin">12dip</dimen> 196 197 <!-- Padding on left margin of PIN text entry field to center it when del button is showing --> 198 <dimen name="keyguard_lockscreen_pin_margin_left">40dip</dimen> 199 200 <!-- Height of FaceUnlock view in keyguard --> 201 <dimen name="face_unlock_height">330dip</dimen> 202 203 <!-- Minimum popup width for selecting an activity in ActivityChooserDialog/ActivityChooserView. --> 204 <dimen name="activity_chooser_popup_min_width">200dip</dimen> 205 206 <!-- The default gap between components in a layout. --> 207 <dimen name="default_gap">8dip</dimen> 208 209 <!-- Text padding for dropdown items --> 210 <dimen name="dropdownitem_text_padding_left">8dip</dimen> 211 212 <!-- Text padding for dropdown items --> 213 <dimen name="dropdownitem_text_padding_right">8dip</dimen> 214 215 <!-- Width of the icon in a dropdown list --> 216 <dimen name="dropdownitem_icon_width">32dip</dimen> 217 218 <!-- Default width for a textview error popup --> 219 <dimen name="textview_error_popup_default_width">240dip</dimen> 220 221 <!-- Volume panel y offset --> 222 <dimen name="volume_panel_top">80dp</dimen> 223 224 <!-- Default padding to apply to AppWidgetHostViews containing widgets targeting API level 14 and up. --> 225 <dimen name="default_app_widget_padding_left">8dp</dimen> 226 <dimen name="default_app_widget_padding_top">8dp</dimen> 227 <dimen name="default_app_widget_padding_right">8dp</dimen> 228 <dimen name="default_app_widget_padding_bottom">8dp</dimen> 229 230 <!-- Minimum width for an action button in the menu area of an action bar --> 231 <dimen name="action_button_min_width">56dip</dimen> 232 233 <!-- Maximum height for a stacked tab bar as part of an action bar --> 234 <dimen name="action_bar_stacked_max_height">48dp</dimen> 235 236 <!-- Maximum width for a stacked action bar tab. This prevents 237 action bar tabs from becoming too wide on a wide screen when only 238 a few are present. --> 239 <dimen name="action_bar_stacked_tab_max_width">180dp</dimen> 240 241 <!-- Size of notification text (see TextAppearance.StatusBar.EventContent) --> 242 <dimen name="notification_text_size">14dp</dimen> 243 <!-- Size of notification text titles (see TextAppearance.StatusBar.EventContent.Title) --> 244 <dimen name="notification_title_text_size">18dp</dimen> 245 <!-- Size of smaller notification text (see TextAppearance.StatusBar.EventContent.Line2, Info, Time) --> 246 <dimen name="notification_subtext_size">12dp</dimen> 247 248 <!-- Keyguard dimensions --> 249 <!-- TEMP --> 250 <dimen name="kg_security_panel_height">600dp</dimen> 251 252 <!-- Height of security view in keyguard. --> 253 <dimen name="kg_security_view_height">480dp</dimen> 254 255 <!-- Width of widget view in keyguard. --> 256 <dimen name="kg_widget_view_width">0dp</dimen> 257 258 <!-- Height of widget view in keyguard. --> 259 <dimen name="kg_widget_view_height">0dp</dimen> 260 261 <!-- Size of the clock font in keyguard's status view --> 262 <dimen name="kg_status_clock_font_size">75dp</dimen> 263 264 <!-- Size of the date font in keyguard's status view --> 265 <dimen name="kg_status_date_font_size">15dp</dimen> 266 267 <!-- Size of the generic status lines keyguard's status view --> 268 <dimen name="kg_status_line_font_size">13dp</dimen> 269 270 <!-- Size of margin on the right of keyguard's status view --> 271 <dimen name="kg_status_line_font_right_margin">16dp</dimen> 272 273 <!-- Top margin for the clock view --> 274 <dimen name="kg_clock_top_margin">-16dp</dimen> 275 276 <!-- Horizontal gap between keys in PIN and SIM PIN numeric keyboards in keyguard --> 277 <dimen name="kg_key_horizontal_gap">0dp</dimen> 278 279 <!-- Horizontal gap between keys in PIN and SIM PIN numeric keyboards in keyguard --> 280 <dimen name="kg_key_vertical_gap">0dp</dimen> 281 282 <!-- Horizontal gap between keys in PIN and SIM PIN numeric keyboards in keyguard --> 283 <dimen name="kg_pin_key_height">60dp</dimen> 284 285 <!-- Space reserved at the bottom of secure views (pin/pattern/password/SIM pin/SIM puk) --> 286 <dimen name="kg_secure_padding_height">46dp</dimen> 287 288 <!-- The height of the runway lights strip --> 289 <dimen name="kg_runway_lights_height">7dp</dimen> 290 291 <!-- The height of the runway lights strip --> 292 <dimen name="kg_runway_lights_vertical_padding">2dp</dimen> 293 294 <!-- Horizontal padding for the widget pager --> 295 <dimen name="kg_widget_pager_horizontal_padding">16dp</dimen> 296 297 <!-- Top padding for the widget pager --> 298 <dimen name="kg_widget_pager_top_padding">0dp</dimen> 299 300 <!-- Bottom padding for the widget pager --> 301 <dimen name="kg_widget_pager_bottom_padding">64dp</dimen> 302 303 <!-- Top margin for the runway lights. We add a negative margin in large 304 devices to account for the widget pager padding --> 305 <dimen name="kg_runway_lights_top_margin">0dp</dimen> 306 307 <!-- Touch slop for the global toggle accessibility gesture --> 308 <dimen name="accessibility_touch_slop">80dip</dimen> 309 310 <!-- Width of the sliding KeyguardSecurityContainer (includes 2x keyguard_security_view_margin) --> 311 <dimen name="keyguard_security_width">320dp</dimen> 312 313 <!-- Height of the sliding KeyguardSecurityContainer (includes 2x keyguard_security_view_margin) --> 314 <dimen name="keyguard_security_height">400dp</dimen> 315 316 <!-- Margin around the various security views --> 317 <dimen name="keyguard_security_view_margin">8dp</dimen> 318 319 <!-- Margin around the various security views --> 320 <dimen name="keyguard_muliuser_selector_margin">8dp</dimen> 321 322 <!-- Stroke width of the frame for the circular avatars. --> 323 <dimen name="keyguard_avatar_frame_stroke_width">2dp</dimen> 324 325 <!-- Shadow radius under the frame for the circular avatars. --> 326 <dimen name="keyguard_avatar_frame_shadow_radius">1dp</dimen> 327 328 <!-- Size of the avator on hte multiuser lockscreen. --> 329 <dimen name="keyguard_avatar_size">66dp</dimen> 330 331 <!-- Size of the text under the avator on the multiuser lockscreen. --> 332 <dimen name="keyguard_avatar_name_size">10sp</dimen> 333 334 <!-- Size of the region along the edge of the screen that will accept 335 swipes to scroll the widget area. --> 336 <dimen name="kg_edge_swipe_region_size">24dp</dimen> 337 338 <!-- If the height if keyguard drops below this threshold (most likely 339 due to the appearance of the IME), then drop the multiuser selector. --> 340 <dimen name="kg_squashed_layout_threshold">600dp</dimen> 341 342 <!-- The height of widgets which do not support vertical resizing. This is only 343 used on tablets; on phones, this size is determined by the space left by the 344 security mode. --> 345 <dimen name="kg_small_widget_height">160dp</dimen> 346 347 <!-- Rounded corner radius for video subtitles. --> 348 <dimen name="subtitle_corner_radius">2dp</dimen> 349 350 <!-- Shadow radius for video subtitles. --> 351 <dimen name="subtitle_shadow_radius">2dp</dimen> 352 353 <!-- Shadow offset for video subtitles. --> 354 <dimen name="subtitle_shadow_offset">2dp</dimen> 355 356 <!-- Outline width for video subtitles. --> 357 <dimen name="subtitle_outline_width">2dp</dimen> 358 359 <!-- New TimePicker dimensions. --> 360 <item name="timepicker_circle_radius_multiplier" format="float" type="string">0.82</item> 361 <item name="timepicker_circle_radius_multiplier_24HourMode" format="float" type="string">0.85</item> 362 <item name="timepicker_selection_radius_multiplier" format="float" type="string">0.16</item> 363 <item name="timepicker_ampm_circle_radius_multiplier" format="float" type="string">0.19</item> 364 <item name="timepicker_numbers_radius_multiplier_normal" format="float" type="string">0.81</item> 365 <item name="timepicker_numbers_radius_multiplier_inner" format="float" type="string">0.60</item> 366 <item name="timepicker_numbers_radius_multiplier_outer" format="float" type="string">0.83</item> 367 <item name="timepicker_text_size_multiplier_normal" format="float" type="string">0.17</item> 368 <item name="timepicker_text_size_multiplier_inner" format="float" type="string">0.14</item> 369 <item name="timepicker_text_size_multiplier_outer" format="float" type="string">0.11</item> 370 <item name="timepicker_transition_mid_radius_multiplier" format="float" type="string">0.95</item> 371 <item name="timepicker_transition_end_radius_multiplier" format="float" type="string">1.3</item> 372 373 <dimen name="timepicker_time_label_size">60sp</dimen> 374 <dimen name="timepicker_extra_time_label_margin">-30dp</dimen> 375 <dimen name="timepicker_ampm_label_size">16sp</dimen> 376 <dimen name="timepicker_done_label_size">14sp</dimen> 377 <dimen name="timepicker_ampm_left_padding">6dip</dimen> 378 <dimen name="timepicker_separator_padding">4dip</dimen> 379 <dimen name="timepicker_header_height">96dip</dimen> 380 <dimen name="timepicker_minimum_margin_sides">48dip</dimen> 381 <dimen name="timepicker_minimum_margin_top_bottom">24dip</dimen> 382 <dimen name="timepicker_radial_picker_dimen">270dip</dimen> 383 384 <!-- width of ImmersiveModeConfirmation (-1 for match_parent) --> 385 <dimen name="immersive_mode_cling_width">-1px</dimen> 386 387</resources> 388