dimens.xml revision aff1efa6226937c1ea4079dd9933ec953df9d337
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    <!-- 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">13sp</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    <!-- 8dp at the top/bottom of the notification view -->
225    <dimen name="notification_vert_pad">10dp</dimen>
226
227    <!-- Replacement for @dimen/notification_vert_pad when the text is large -->
228    <dimen name="notification_large_font_vert_pad">3dp</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_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    <!-- Used by SimpleMonthView -->
366    <dimen name="datepicker_day_number_size">12sp</dimen>
367    <dimen name="datepicker_month_label_size">16sp</dimen>
368    <dimen name="datepicker_month_day_label_text_size">12sp</dimen>
369    <dimen name="datepicker_month_list_item_header_height">48dp</dimen>
370    <dimen name="datepicker_day_number_select_circle_radius">16dp</dimen>
371    <dimen name="datepicker_view_animator_height">250dp</dimen>
372
373    <dimen name="datepicker_year_picker_padding_top">8dp</dimen>
374    <dimen name="datepicker_year_label_height">64dp</dimen>
375    <dimen name="datepicker_year_label_text_size">22dp</dimen>
376    <dimen name="datepicker_component_width">270dp</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
393     <dimen name="lock_pattern_dot_line_width">3dp</dimen>
394     <dimen name="lock_pattern_dot_size">12dp</dimen>
395     <dimen name="lock_pattern_dot_size_activated">28dp</dimen>
396
397     <dimen name="text_handle_min_size">40dp</dimen>
398
399</resources>
400