dimens.xml revision 096f36b8db3e513687b78da3e1dd0197fce148a3
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    <!-- The width of the big icons in notifications. -->
127    <dimen name="notification_large_icon_width">64dp</dimen>
128    <!-- The width of the big icons in notifications. -->
129    <dimen name="notification_large_icon_height">64dp</dimen>
130
131    <!-- Minimum width of the search view text entry area. -->
132    <dimen name="search_view_text_min_width">160dip</dimen>
133
134    <!-- Preferred width of the search view. -->
135    <dimen name="search_view_preferred_width">320dip</dimen>
136
137    <!-- Dialog padding for round display -->
138    <dimen name="alert_dialog_round_padding">27dip</dimen>
139    <!-- Dialog title height -->
140    <dimen name="alert_dialog_title_height">64dip</dimen>
141    <!-- Dialog button bar height -->
142    <dimen name="alert_dialog_button_bar_height">48dip</dimen>
143    <!-- Leanback dialog vertical margin -->
144    <dimen name="leanback_alert_dialog_vertical_margin">27dip</dimen>
145    <!-- Leanback dialog horizontal margin -->
146    <dimen name="leanback_alert_dialog_horizontal_margin">54dip</dimen>
147
148    <!-- Default height of an action bar. -->
149    <dimen name="action_bar_default_height">48dip</dimen>
150    <!-- Vertical padding around action bar icons. -->
151    <dimen name="action_bar_icon_vertical_padding">8dip</dimen>
152    <!-- Text size for action bar titles -->
153    <dimen name="action_bar_title_text_size">18dp</dimen>
154    <!-- Text size for action bar subtitles -->
155    <dimen name="action_bar_subtitle_text_size">14dp</dimen>
156    <!-- Top margin for action bar subtitles -->
157    <dimen name="action_bar_subtitle_top_margin">-3dp</dimen>
158    <!-- Bottom margin for action bar subtitles -->
159    <dimen name="action_bar_subtitle_bottom_margin">5dip</dimen>
160
161    <!-- Size of clock font in LockScreen on Unsecure unlock screen. -->
162    <dimen name="keyguard_lockscreen_clock_font_size">80dip</dimen>
163
164    <!-- Size of status line font on Unsecure unlock LockScreen. -->
165    <dimen name="keyguard_lockscreen_status_line_font_size">14dip</dimen>
166
167    <!-- Size of right margin on Unsecure unlock LockScreen -->
168    <dimen name="keyguard_lockscreen_status_line_font_right_margin">42dip</dimen>
169
170    <!-- Size of top margin on Clock font to edge on unlock LockScreen -->
171    <dimen name="keyguard_lockscreen_status_line_clockfont_top_margin">22dip</dimen>
172
173    <!-- Size of top margin on Clock font to edge on unlock LockScreen -->
174    <dimen name="keyguard_lockscreen_status_line_clockfont_bottom_margin">12dip</dimen>
175
176    <!-- Padding on left margin of PIN text entry field to center it when del button is showing -->
177    <dimen name="keyguard_lockscreen_pin_margin_left">40dip</dimen>
178
179    <!-- Height of FaceUnlock view in keyguard -->
180    <dimen name="face_unlock_height">330dip</dimen>
181
182    <!-- Minimum popup width for selecting an activity in ActivityChooserDialog/ActivityChooserView. -->
183    <dimen name="activity_chooser_popup_min_width">200dip</dimen>
184
185    <!-- The default gap between components in a layout. -->
186    <dimen name="default_gap">8dip</dimen>
187
188    <!-- Text padding for dropdown items -->
189    <dimen name="dropdownitem_text_padding_left">8dip</dimen>
190
191    <!-- Text padding for dropdown items -->
192    <dimen name="dropdownitem_text_padding_right">8dip</dimen>
193
194    <!-- Width of the icon in a dropdown list -->
195    <dimen name="dropdownitem_icon_width">32dip</dimen>
196
197    <!-- Default width for a textview error popup -->
198    <dimen name="textview_error_popup_default_width">240dip</dimen>
199
200    <!-- Default padding to apply to AppWidgetHostViews containing widgets targeting API level 14 and up. -->
201    <dimen name="default_app_widget_padding_left">8dp</dimen>
202    <dimen name="default_app_widget_padding_top">8dp</dimen>
203    <dimen name="default_app_widget_padding_right">8dp</dimen>
204    <dimen name="default_app_widget_padding_bottom">8dp</dimen>
205
206    <!-- Minimum width for an action button in the menu area of an action bar -->
207    <dimen name="action_button_min_width">56dip</dimen>
208
209    <!-- Maximum height for a stacked tab bar as part of an action bar -->
210    <dimen name="action_bar_stacked_max_height">48dp</dimen>
211
212    <!-- Maximum width for a stacked action bar tab. This prevents
213         action bar tabs from becoming too wide on a wide screen when only
214         a few are present. -->
215    <dimen name="action_bar_stacked_tab_max_width">180dp</dimen>
216
217    <!-- Size of notification text (see TextAppearance.StatusBar.EventContent) -->
218    <dimen name="notification_text_size">14sp</dimen>
219    <!-- Size of notification text titles (see TextAppearance.StatusBar.EventContent.Title) -->
220    <dimen name="notification_title_text_size">16sp</dimen>
221    <!-- Size of smaller notification text (see TextAppearance.StatusBar.EventContent.Line2, Info, Time) -->
222    <dimen name="notification_subtext_size">12sp</dimen>
223
224    <!-- Top padding for notifications in the standard layout. -->
225    <dimen name="notification_top_pad">10dp</dimen>
226
227    <!-- Top padding for notifications when narrow (i.e. it has 3 lines) -->
228    <dimen name="notification_top_pad_narrow">4dp</dimen>
229
230    <!-- Top padding for notification when text is large -->
231    <dimen name="notification_top_pad_large_text">5dp</dimen>
232
233    <!-- Top padding for notification when text is large and narrow (i.e. it has 3 lines -->
234    <dimen name="notification_top_pad_large_text_narrow">-4dp</dimen>
235
236    <!-- Padding for notification icon when drawn with circle around it -->
237    <dimen name="notification_large_icon_circle_padding">11dp</dimen>
238
239    <!-- Keyguard dimensions -->
240    <!-- TEMP -->
241    <dimen name="kg_security_panel_height">600dp</dimen>
242
243    <!-- Height of security view in keyguard. -->
244    <dimen name="kg_security_view_height">480dp</dimen>
245
246    <!-- Width of widget view in keyguard. -->
247    <dimen name="kg_widget_view_width">0dp</dimen>
248
249    <!-- Height of widget view in keyguard. -->
250    <dimen name="kg_widget_view_height">0dp</dimen>
251
252    <!-- Size of the clock font in keyguard's status view -->
253    <dimen name="kg_status_clock_font_size">75dp</dimen>
254
255    <!-- Size of the date font in keyguard's status view  -->
256    <dimen name="kg_status_date_font_size">15dp</dimen>
257
258    <!-- Size of the generic status lines keyguard's status view  -->
259    <dimen name="kg_status_line_font_size">13dp</dimen>
260
261    <!-- Size of margin on the right of keyguard's status view -->
262    <dimen name="kg_status_line_font_right_margin">16dp</dimen>
263
264    <!-- Top margin for the clock view -->
265    <dimen name="kg_clock_top_margin">-16dp</dimen>
266
267    <!-- Horizontal gap between keys in PIN and SIM PIN numeric keyboards in keyguard -->
268    <dimen name="kg_key_horizontal_gap">0dp</dimen>
269
270    <!-- Horizontal gap between keys in PIN and SIM PIN numeric keyboards in keyguard -->
271    <dimen name="kg_key_vertical_gap">0dp</dimen>
272
273    <!-- Horizontal gap between keys in PIN and SIM PIN numeric keyboards in keyguard -->
274    <dimen name="kg_pin_key_height">60dp</dimen>
275
276    <!-- Space reserved at the bottom of secure views (pin/pattern/password/SIM pin/SIM puk) -->
277    <dimen name="kg_secure_padding_height">46dp</dimen>
278
279    <!-- The height of the runway lights strip -->
280    <dimen name="kg_runway_lights_height">7dp</dimen>
281
282    <!-- The height of the runway lights strip -->
283    <dimen name="kg_runway_lights_vertical_padding">2dp</dimen>
284
285    <!-- Horizontal padding for the widget pager -->
286    <dimen name="kg_widget_pager_horizontal_padding">16dp</dimen>
287
288    <!-- Top padding for the widget pager -->
289    <dimen name="kg_widget_pager_top_padding">0dp</dimen>
290
291    <!-- Bottom padding for the widget pager -->
292    <dimen name="kg_widget_pager_bottom_padding">64dp</dimen>
293
294    <!-- Top margin for the runway lights. We add a negative margin in large
295        devices to account for the widget pager padding -->
296    <dimen name="kg_runway_lights_top_margin">0dp</dimen>
297
298    <!-- Touch slop for the global toggle accessibility gesture -->
299    <dimen name="accessibility_touch_slop">80dip</dimen>
300
301    <!-- Width of the sliding KeyguardSecurityContainer (includes 2x keyguard_security_view_margin) -->
302    <dimen name="keyguard_security_width">320dp</dimen>
303
304    <!-- Height of the sliding KeyguardSecurityContainer (includes 2x keyguard_security_view_margin) -->
305    <dimen name="keyguard_security_height">400dp</dimen>
306
307    <!-- Margin around the various security views -->
308    <dimen name="keyguard_security_view_margin">8dp</dimen>
309
310    <!-- Margin around the various security views -->
311    <dimen name="keyguard_muliuser_selector_margin">8dp</dimen>
312
313    <!-- Stroke width of the frame for the circular avatars. -->
314    <dimen name="keyguard_avatar_frame_stroke_width">2dp</dimen>
315
316    <!-- Shadow radius under the frame for the circular avatars. -->
317    <dimen name="keyguard_avatar_frame_shadow_radius">1dp</dimen>
318
319    <!-- Size of the avator on hte multiuser lockscreen. -->
320    <dimen name="keyguard_avatar_size">66dp</dimen>
321
322    <!-- Size of the text under the avator on the multiuser lockscreen. -->
323    <dimen name="keyguard_avatar_name_size">10sp</dimen>
324
325    <!-- Size of the region along the edge of the screen that will accept
326         swipes to scroll the widget area. -->
327    <dimen name="kg_edge_swipe_region_size">24dp</dimen>
328
329    <!-- If the height if keyguard drops below this threshold (most likely
330    due to the appearance of the IME), then drop the multiuser selector. -->
331    <dimen name="kg_squashed_layout_threshold">600dp</dimen>
332
333    <!-- The height of widgets which do not support vertical resizing. This is only
334    used on tablets; on phones, this size is determined by the space left by the
335    security mode. -->
336    <dimen name="kg_small_widget_height">160dp</dimen>
337
338    <!-- Rounded corner radius for video subtitles. -->
339    <dimen name="subtitle_corner_radius">2dp</dimen>
340
341    <!-- Shadow radius for video subtitles. -->
342    <dimen name="subtitle_shadow_radius">2dp</dimen>
343
344    <!-- Shadow offset for video subtitles. -->
345    <dimen name="subtitle_shadow_offset">2dp</dimen>
346
347    <!-- Outline width for video subtitles. -->
348    <dimen name="subtitle_outline_width">2dp</dimen>
349
350    <!-- New TimePicker dimensions. -->
351    <item name="timepicker_circle_radius_multiplier" format="float" type="string">0.82</item>
352    <item name="timepicker_circle_radius_multiplier_24HourMode" format="float" type="string">0.85</item>
353    <item name="timepicker_selection_radius_multiplier" format="float" type="string">0.16</item>
354    <item name="timepicker_ampm_circle_radius_multiplier" format="float" type="string">0.19</item>
355    <item name="timepicker_numbers_radius_multiplier_normal" format="float" type="string">0.81</item>
356    <item name="timepicker_numbers_radius_multiplier_inner" format="float" type="string">0.60</item>
357    <item name="timepicker_numbers_radius_multiplier_outer" format="float" type="string">0.83</item>
358    <item name="timepicker_text_size_multiplier_normal" format="float" type="string">0.17</item>
359    <item name="timepicker_text_size_multiplier_inner" format="float" type="string">0.14</item>
360    <item name="timepicker_text_size_multiplier_outer" format="float" type="string">0.11</item>
361    <item name="timepicker_transition_mid_radius_multiplier" format="float" type="string">0.95</item>
362    <item name="timepicker_transition_end_radius_multiplier" format="float" type="string">1.3</item>
363
364    <dimen name="timepicker_time_label_size">60sp</dimen>
365    <dimen name="timepicker_extra_time_label_margin">-30dp</dimen>
366    <dimen name="timepicker_ampm_label_size">16sp</dimen>
367    <dimen name="timepicker_ampm_left_padding">6dip</dimen>
368    <dimen name="timepicker_separator_padding">4dip</dimen>
369    <dimen name="timepicker_header_height">96dip</dimen>
370    <dimen name="timepicker_minimum_margin_sides">48dip</dimen>
371    <dimen name="timepicker_minimum_margin_top_bottom">24dip</dimen>
372    <dimen name="timepicker_radial_picker_dimen">270dip</dimen>
373
374    <!-- Used by SimpleMonthView -->
375    <dimen name="datepicker_day_number_size">12sp</dimen>
376    <dimen name="datepicker_month_label_size">16sp</dimen>
377    <dimen name="datepicker_month_day_label_text_size">12sp</dimen>
378    <dimen name="datepicker_month_list_item_header_height">48dp</dimen>
379    <dimen name="datepicker_day_number_select_circle_radius">16dp</dimen>
380    <dimen name="datepicker_view_animator_height">250dp</dimen>
381
382    <dimen name="datepicker_year_picker_padding_top">8dp</dimen>
383    <dimen name="datepicker_year_label_height">64dp</dimen>
384    <dimen name="datepicker_year_label_text_size">22dp</dimen>
385    <dimen name="datepicker_component_width">270dp</dimen>
386    <dimen name="datepicker_selected_date_day_size">75dp</dimen>
387    <dimen name="datepicker_selected_date_month_size">30dp</dimen>
388    <dimen name="datepicker_selected_date_year_size">30dp</dimen>
389    <dimen name="datepicker_header_height">30dp</dimen>
390    <dimen name="datepicker_header_text_size">14dp</dimen>
391
392    <!-- width of ImmersiveModeConfirmation (-1 for match_parent) -->
393    <dimen name="immersive_mode_cling_width">-1px</dimen>
394
395    <dimen name="resolver_max_width">480dp</dimen>
396
397     <!-- Size of the offset applied to the position of the circular mask. This is only
398     used on circular displays. In the case where there is no "chin", this will default
399     to 0 -->
400     <dimen name="circular_display_mask_offset">0px</dimen>
401
402     <dimen name="lock_pattern_dot_line_width">3dp</dimen>
403     <dimen name="lock_pattern_dot_size">12dp</dimen>
404     <dimen name="lock_pattern_dot_size_activated">28dp</dimen>
405
406     <dimen name="text_handle_min_size">40dp</dimen>
407
408</resources>
409