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