dimens.xml revision 67b2260093774f5866f781aede52830440f4ed0e
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 width that is used when creating thumbnails of applications. -->
26    <dimen name="recents_thumbnail_width">256dp</dimen>
27    <!-- The height that is used when creating thumbnails of applications. -->
28    <dimen name="recents_thumbnail_height">256dp</dimen>
29    <!-- The standard size (both width and height) of an application icon that
30         will be displayed in the app launcher and elsewhere. -->
31    <dimen name="app_icon_size">48dip</dimen>
32    <!-- The maximum number of action buttons that should be permitted within
33         an action bar/action mode. This will be used to determine how many
34         showAsAction="ifRoom" items can fit. "always" items can override this. -->
35    <integer name="max_action_buttons">2</integer>
36    <dimen name="toast_y_offset">64dip</dimen>
37    <!-- Height of the status bar -->
38    <dimen name="status_bar_height">25dip</dimen>
39    <!-- Height of the bottom navigation / system bar. -->
40    <dimen name="navigation_bar_height">48dp</dimen>
41    <!-- Height of the bottom navigation bar in portrait; often the same as @dimen/navigation_bar_height -->
42    <dimen name="navigation_bar_height_landscape">48dp</dimen>
43    <!-- Width of the navigation bar when it is placed vertically on the screen -->
44    <dimen name="navigation_bar_width">42dp</dimen>
45    <!-- Height of notification icons in the status bar -->
46    <dimen name="status_bar_icon_size">24dip</dimen>
47    <!-- Size of the giant number (unread count) in the notifications -->
48    <dimen name="status_bar_content_number_size">48sp</dimen>
49    <!-- Height of the system bar (combined status & navigation); used by
50         SystemUI internally, not respected by the window manager. -->
51    <dimen name="system_bar_height">@dimen/navigation_bar_height</dimen>
52    <!-- Height of notification icons in the system bar -->
53    <dimen name="system_bar_icon_size">32dip</dimen>
54    <!-- Margin at the edge of the screen to ignore touch events for in the windowshade. -->
55    <dimen name="status_bar_edge_ignore">5dp</dimen>
56
57    <!-- Min width for a tablet device -->
58    <dimen name="min_xlarge_screen_width">800dp</dimen>
59
60    <!-- Default height of a key in the password keyboard for alpha (used by keyguard) -->
61    <dimen name="password_keyboard_key_height_alpha">56dip</dimen>
62    <!-- Default height of a key in the password keyboard for numeric (used by keyguard) -->
63    <dimen name="password_keyboard_key_height_numeric">56dip</dimen>
64    <!-- Default correction for the space key in the password keyboard  (used by keyguard) -->
65    <dimen name="password_keyboard_spacebar_vertical_correction">4dip</dimen>
66    <!-- Default horizontal gap between keys in the password keyboard (used by keyguard) -->
67    <dimen name="password_keyboard_horizontalGap">3dip</dimen>
68    <!-- Default vertical gap between keys in the password keyboard (used by keyguard) -->
69    <dimen name="password_keyboard_verticalGap">9dip</dimen>
70
71    <!-- Size of lockscreen outerring on unsecure unlock LockScreen -->
72    <dimen name="keyguard_lockscreen_outerring_diameter">270dp</dimen>
73
74    <!-- Preference activity side margins -->
75    <dimen name="preference_screen_side_margin">0dp</dimen>
76    <!-- Preference activity side margins negative-->
77    <dimen name="preference_screen_side_margin_negative">0dp</dimen>
78    <!-- Preference activity top margin -->
79    <dimen name="preference_screen_top_margin">0dp</dimen>
80    <!-- Preference activity bottom margin -->
81    <dimen name="preference_screen_bottom_margin">0dp</dimen>
82    <!-- Preference widget area width (to the left of the text) -->
83    <dimen name="preference_widget_width">48dp</dimen>
84    <!-- Preference fragment padding, bottom -->
85    <dimen name="preference_fragment_padding_bottom">0dp</dimen>
86    <!-- Preference fragment padding, sides -->
87    <dimen name="preference_fragment_padding_side">16dp</dimen>
88    <!-- Weight of the left pane in a multi-pane preference layout. -->
89    <integer name="preferences_left_pane_weight">4</integer>
90    <!-- Weight of the right pane in a multi-pane preference layout. So the split is 40:60 -->
91    <integer name="preferences_right_pane_weight">6</integer>
92    <!-- Padding to the left of the preference panel breadcrumb -->
93    <dimen name="preference_breadcrumb_paddingLeft">0dp</dimen>
94    <!-- Padding to the right of the preference panel breadcrumb -->
95    <dimen name="preference_breadcrumb_paddingRight">0dp</dimen>
96    <!-- Minimum space to allocate to the left of a preference item for an icon.
97        This helps in aligning titles when some items have icons and some don't. When space is
98        at a premium, we don't pre-allocate any space. -->
99    <dimen name="preference_icon_minWidth">0dp</dimen>
100    <!-- The platform's desired minimum size for a dialog's width when it
101         is along the major axis (that is the screen is landscape).  This may
102         be either a fraction or a dimension. -->
103    <item type="dimen" name="dialog_min_width_major">65%</item>
104
105    <!-- The platform's desired fixed width for a dialog along the major axis
106         (the screen is in landscape). This may be either a fraction or a dimension.-->
107    <item type="dimen" name="dialog_fixed_width_major">320dp</item>
108    <!-- The platform's desired fixed width for a dialog along the minor axis
109         (the screen is in portrait). This may be either a fraction or a dimension.-->
110    <item type="dimen" name="dialog_fixed_width_minor">320dp</item>
111    <!-- The platform's desired fixed height for a dialog along the major axis
112         (the screen is in portrait). This may be either a fraction or a dimension.-->
113    <item type="dimen" name="dialog_fixed_height_major">80%</item>
114    <!-- The platform's desired fixed height for a dialog along the minor axis
115         (the screen is in landscape). This may be either a fraction or a dimension.-->
116    <item type="dimen" name="dialog_fixed_height_minor">100%</item>
117
118    <!-- Preference activity, vertical padding for the header list -->
119    <dimen name="preference_screen_header_vertical_padding">0dp</dimen>
120
121    <dimen name="preference_screen_header_padding_side">16dip</dimen>
122    <integer name="preference_screen_header_scrollbarStyle">0x02000000</integer> <!-- outsideOverlay -->
123
124    <integer name="preference_fragment_scrollbarStyle">0x02000000</integer> <!-- outsideOverlay -->
125
126    <dimen name="preference_item_padding_side">8dip</dimen>
127    <dimen name="preference_item_padding_inner">8dip</dimen>
128    <dimen name="preference_child_padding_side">16dip</dimen>
129
130    <!-- The platform's desired minimum size for a dialog's width when it
131         is along the minor axis (that is the screen is portrait).  This may
132         be either a fraction or a dimension. -->
133    <item type="dimen" name="dialog_min_width_minor">95%</item>
134
135    <!-- The width of the big icons in notifications. -->
136    <dimen name="notification_large_icon_width">64dp</dimen>
137    <!-- The width of the big icons in notifications. -->
138    <dimen name="notification_large_icon_height">64dp</dimen>
139
140    <!-- Minimum width of the search view text entry area. -->
141    <dimen name="search_view_text_min_width">160dip</dimen>
142
143    <!-- Preferred width of the search view. -->
144    <dimen name="search_view_preferred_width">320dip</dimen>
145
146    <!-- Dialog title height -->
147    <dimen name="alert_dialog_title_height">64dip</dimen>
148    <!-- Dialog button bar height -->
149    <dimen name="alert_dialog_button_bar_height">48dip</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    <!-- Volume panel y offset -->
204    <dimen name="volume_panel_top">80dp</dimen>
205
206    <!-- Default padding to apply to AppWidgetHostViews containing widgets targeting API level 14 and up. -->
207    <dimen name="default_app_widget_padding_left">8dp</dimen>
208    <dimen name="default_app_widget_padding_top">8dp</dimen>
209    <dimen name="default_app_widget_padding_right">8dp</dimen>
210    <dimen name="default_app_widget_padding_bottom">8dp</dimen>
211
212    <!-- Minimum width for an action button in the menu area of an action bar -->
213    <dimen name="action_button_min_width">56dip</dimen>
214
215    <!-- Maximum height for a stacked tab bar as part of an action bar -->
216    <dimen name="action_bar_stacked_max_height">48dp</dimen>
217
218    <!-- Maximum width for a stacked action bar tab. This prevents
219         action bar tabs from becoming too wide on a wide screen when only
220         a few are present. -->
221    <dimen name="action_bar_stacked_tab_max_width">180dp</dimen>
222
223    <!-- Size of notification text (see TextAppearance.StatusBar.EventContent) -->
224    <dimen name="notification_text_size">14dp</dimen>
225    <!-- Size of notification text titles (see TextAppearance.StatusBar.EventContent.Title) -->
226    <dimen name="notification_title_text_size">18dp</dimen>
227    <!-- Size of smaller notification text (see TextAppearance.StatusBar.EventContent.Line2, Info, Time) -->
228    <dimen name="notification_subtext_size">12dp</dimen>
229
230    <!-- Keyguard dimensions -->
231    <!-- TEMP -->
232    <dimen name="kg_security_panel_height">600dp</dimen>
233
234    <!-- Height of security view in keyguard. -->
235    <dimen name="kg_security_view_height">480dp</dimen>
236
237    <!-- Width of widget view in keyguard. -->
238    <dimen name="kg_widget_view_width">0dp</dimen>
239
240    <!-- Height of widget view in keyguard. -->
241    <dimen name="kg_widget_view_height">0dp</dimen>
242
243    <!-- Size of the clock font in keyguard's status view -->
244    <dimen name="kg_status_clock_font_size">75dp</dimen>
245
246    <!-- Size of the date font in keyguard's status view  -->
247    <dimen name="kg_status_date_font_size">15dp</dimen>
248
249    <!-- Size of the generic status lines keyguard's status view  -->
250    <dimen name="kg_status_line_font_size">13dp</dimen>
251
252    <!-- Size of margin on the right of keyguard's status view -->
253    <dimen name="kg_status_line_font_right_margin">16dp</dimen>
254
255    <!-- Top margin for the clock view -->
256    <dimen name="kg_clock_top_margin">-16dp</dimen>
257
258    <!-- Horizontal gap between keys in PIN and SIM PIN numeric keyboards in keyguard -->
259    <dimen name="kg_key_horizontal_gap">0dp</dimen>
260
261    <!-- Horizontal gap between keys in PIN and SIM PIN numeric keyboards in keyguard -->
262    <dimen name="kg_key_vertical_gap">0dp</dimen>
263
264    <!-- Horizontal gap between keys in PIN and SIM PIN numeric keyboards in keyguard -->
265    <dimen name="kg_pin_key_height">60dp</dimen>
266
267    <!-- Space reserved at the bottom of secure views (pin/pattern/password/SIM pin/SIM puk) -->
268    <dimen name="kg_secure_padding_height">46dp</dimen>
269
270    <!-- The height of the runway lights strip -->
271    <dimen name="kg_runway_lights_height">7dp</dimen>
272
273    <!-- The height of the runway lights strip -->
274    <dimen name="kg_runway_lights_vertical_padding">2dp</dimen>
275
276    <!-- Horizontal padding for the widget pager -->
277    <dimen name="kg_widget_pager_horizontal_padding">16dp</dimen>
278
279    <!-- Top padding for the widget pager -->
280    <dimen name="kg_widget_pager_top_padding">0dp</dimen>
281
282    <!-- Bottom padding for the widget pager -->
283    <dimen name="kg_widget_pager_bottom_padding">64dp</dimen>
284
285    <!-- Top margin for the runway lights. We add a negative margin in large
286        devices to account for the widget pager padding -->
287    <dimen name="kg_runway_lights_top_margin">0dp</dimen>
288
289    <!-- Touch slop for the global toggle accessibility gesture -->
290    <dimen name="accessibility_touch_slop">80dip</dimen>
291
292    <!-- Width of the sliding KeyguardSecurityContainer (includes 2x keyguard_security_view_margin) -->
293    <dimen name="keyguard_security_width">320dp</dimen>
294
295    <!-- Height of the sliding KeyguardSecurityContainer (includes 2x keyguard_security_view_margin) -->
296    <dimen name="keyguard_security_height">400dp</dimen>
297
298    <!-- Margin around the various security views -->
299    <dimen name="keyguard_security_view_margin">8dp</dimen>
300
301    <!-- Margin around the various security views -->
302    <dimen name="keyguard_muliuser_selector_margin">8dp</dimen>
303
304    <!-- Stroke width of the frame for the circular avatars. -->
305    <dimen name="keyguard_avatar_frame_stroke_width">2dp</dimen>
306
307    <!-- Shadow radius under the frame for the circular avatars. -->
308    <dimen name="keyguard_avatar_frame_shadow_radius">1dp</dimen>
309
310    <!-- Size of the avator on hte multiuser lockscreen. -->
311    <dimen name="keyguard_avatar_size">66dp</dimen>
312
313    <!-- Size of the text under the avator on the multiuser lockscreen. -->
314    <dimen name="keyguard_avatar_name_size">10sp</dimen>
315
316    <!-- Size of the region along the edge of the screen that will accept
317         swipes to scroll the widget area. -->
318    <dimen name="kg_edge_swipe_region_size">24dp</dimen>
319
320    <!-- If the height if keyguard drops below this threshold (most likely
321    due to the appearance of the IME), then drop the multiuser selector. -->
322    <dimen name="kg_squashed_layout_threshold">600dp</dimen>
323
324    <!-- The height of widgets which do not support vertical resizing. This is only
325    used on tablets; on phones, this size is determined by the space left by the
326    security mode. -->
327    <dimen name="kg_small_widget_height">160dp</dimen>
328
329    <!-- Rounded corner radius for video subtitles. -->
330    <dimen name="subtitle_corner_radius">2dp</dimen>
331
332    <!-- Shadow radius for video subtitles. -->
333    <dimen name="subtitle_shadow_radius">2dp</dimen>
334
335    <!-- Shadow offset for video subtitles. -->
336    <dimen name="subtitle_shadow_offset">2dp</dimen>
337
338    <!-- Outline width for video subtitles. -->
339    <dimen name="subtitle_outline_width">2dp</dimen>
340
341    <!-- New TimePicker dimensions. -->
342    <item name="timepicker_circle_radius_multiplier" format="float" type="string">0.82</item>
343    <item name="timepicker_circle_radius_multiplier_24HourMode" format="float" type="string">0.85</item>
344    <item name="timepicker_selection_radius_multiplier" format="float" type="string">0.16</item>
345    <item name="timepicker_ampm_circle_radius_multiplier" format="float" type="string">0.19</item>
346    <item name="timepicker_numbers_radius_multiplier_normal" format="float" type="string">0.81</item>
347    <item name="timepicker_numbers_radius_multiplier_inner" format="float" type="string">0.60</item>
348    <item name="timepicker_numbers_radius_multiplier_outer" format="float" type="string">0.83</item>
349    <item name="timepicker_text_size_multiplier_normal" format="float" type="string">0.17</item>
350    <item name="timepicker_text_size_multiplier_inner" format="float" type="string">0.14</item>
351    <item name="timepicker_text_size_multiplier_outer" format="float" type="string">0.11</item>
352    <item name="timepicker_transition_mid_radius_multiplier" format="float" type="string">0.95</item>
353    <item name="timepicker_transition_end_radius_multiplier" format="float" type="string">1.3</item>
354
355    <dimen name="timepicker_time_label_size">60sp</dimen>
356    <dimen name="timepicker_extra_time_label_margin">-30dp</dimen>
357    <dimen name="timepicker_ampm_label_size">16sp</dimen>
358    <dimen name="timepicker_done_label_size">14sp</dimen>
359    <dimen name="timepicker_ampm_left_padding">6dip</dimen>
360    <dimen name="timepicker_separator_padding">4dip</dimen>
361    <dimen name="timepicker_header_height">96dip</dimen>
362    <dimen name="timepicker_minimum_margin_sides">48dip</dimen>
363    <dimen name="timepicker_minimum_margin_top_bottom">24dip</dimen>
364    <dimen name="timepicker_radial_picker_dimen">270dip</dimen>
365
366    <!-- width of ImmersiveModeConfirmation (-1 for match_parent) -->
367    <dimen name="immersive_mode_cling_width">-1px</dimen>
368
369    <!-- radius of the corners of the quantum rounded rect background -->
370    <dimen name="notification_quantum_rounded_rect_radius">2dp</dimen>
371
372</resources>
373