blob: 3047f1545efba91b4542c1fe9d7f684b57a4dfb0 [file] [log] [blame]
Joe Onorato503007d2010-04-16 09:20:55 -07001<?xml version="1.0" encoding="utf-8"?>
2<!--
3 * Copyright (c) 2006, The Android Open Source Project
4 *
Jim Miller5fda69c2011-02-16 15:17:11 -08005 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
Joe Onorato503007d2010-04-16 09:20:55 -07008 *
Jim Miller5fda69c2011-02-16 15:17:11 -08009 * http://www.apache.org/licenses/LICENSE-2.0
Joe Onorato503007d2010-04-16 09:20:55 -070010 *
Jim Miller5fda69c2011-02-16 15:17:11 -080011 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
Joe Onorato503007d2010-04-16 09:20:55 -070015 * limitations under the License.
16*/
17-->
18<resources>
19 <!-- Margin at the edge of the screen to ignore touch events for in the windowshade. -->
20 <dimen name="status_bar_edge_ignore">5dp</dimen>
Jim Miller5fda69c2011-02-16 15:17:11 -080021
22 <!-- Recent Applications parameters -->
Jim Miller5fda69c2011-02-16 15:17:11 -080023 <!-- Upper width limit for application icon -->
Peter Ng2d136a82011-10-12 15:49:39 -070024 <dimen name="status_bar_recents_app_icon_max_width">48dp</dimen>
Jim Miller5fda69c2011-02-16 15:17:11 -080025 <!-- Upper height limit for application icon -->
Peter Ng2d136a82011-10-12 15:49:39 -070026 <dimen name="status_bar_recents_app_icon_max_height">48dp</dimen>
Michael Jurka3b1fc472011-06-13 10:54:40 -070027
Peter Ng622a9762011-08-29 10:56:53 -070028 <!-- Size of application thumbnail -->
29 <dimen name="status_bar_recents_thumbnail_width">164dp</dimen>
Michael Jurka9316e7e2011-10-04 13:44:05 -070030 <dimen name="status_bar_recents_thumbnail_height">145dp</dimen>
Michael Jurkacb2522c2012-04-13 09:32:47 -070031 <dimen name="status_bar_recents_thumbnail_bg_padding">4dp</dimen>
Peter Ng622a9762011-08-29 10:56:53 -070032
Jim Miller9f0f0e02011-05-17 20:06:29 -070033 <!-- Size of application label text -->
Peter Ng2d136a82011-10-12 15:49:39 -070034 <dimen name="status_bar_recents_app_label_text_size">14dip</dimen>
Jim Miller9f0f0e02011-05-17 20:06:29 -070035 <!-- Size of application description text -->
Peter Ng2d136a82011-10-12 15:49:39 -070036 <dimen name="status_bar_recents_app_description_text_size">14dip</dimen>
Michael Jurka55a25fa2012-04-02 07:09:10 -070037 <!-- Size of fading edge for text -->
38 <dimen name="status_bar_recents_text_fading_edge_length">20dip</dimen>
39 <!-- Size of fading edge for scrolling -->
40 <dimen name="status_bar_recents_scroll_fading_edge_length">10dip</dimen>
Jim Miller9f0f0e02011-05-17 20:06:29 -070041 <!-- Margin between recents container and glow on the right -->
42 <dimen name="status_bar_recents_right_glow_margin">100dip</dimen>
Daniel Sandlerf6a34122012-08-06 14:31:13 -040043 <!-- How far the thumbnail for a recent app appears from left edge -->
44 <dimen name="status_bar_recents_thumbnail_left_margin">20dp</dimen>
45 <!-- Padding for text descriptions -->
46 <dimen name="status_bar_recents_text_description_padding">8dp</dimen>
47 <!-- Width of application label text -->
48 <dimen name="status_bar_recents_app_label_width">88dip</dimen>
49 <!-- Left margin of application label text -->
50 <dimen name="status_bar_recents_app_label_left_margin">0dip</dimen>
51 <!-- Padding between recents items -->
52 <dimen name="status_bar_recents_item_padding">0dip</dimen>
Michael Jurka9bdaada2012-10-01 13:58:29 +020053 <!-- When recents first appears, how far the icon and label of the primary activity
54 travel -->
Michael Jurka071316e2012-10-10 00:00:21 +020055 <dimen name="status_bar_recents_app_icon_translate_distance">35dip</dimen>
Michael Jurka9bdaada2012-10-01 13:58:29 +020056
Daniel Sandlerf6a34122012-08-06 14:31:13 -040057 <!-- Where to place the app icon over the thumbnail -->
58 <dimen name="status_bar_recents_app_icon_left_margin">0dp</dimen>
59 <dimen name="status_bar_recents_app_icon_top_margin">8dp</dimen>
60
Dianne Hackborn7d049322011-06-14 15:00:32 -070061 <!-- Amount to offset bottom of notification peek window from top of status bar. -->
62 <dimen name="peek_window_y_offset">-12dp</dimen>
Jim Miller5fda69c2011-02-16 15:17:11 -080063
Daniel Sandler8956dbb2011-04-22 07:55:02 -040064 <!-- thickness (height) of the navigation bar on phones that require it -->
Daniel Sandler36412a72011-08-04 09:35:13 -040065 <dimen name="navigation_bar_size">@*android:dimen/navigation_bar_height</dimen>
Daniel Sandler41006aa2011-06-29 15:10:49 -040066
67 <!-- thickness (height) of the dead zone at the top of the navigation bar,
68 reducing false presses on navbar buttons; approx 2mm -->
69 <dimen name="navigation_bar_deadzone_size">12dp</dimen>
Daniel Sandlerc26185b2012-08-29 15:49:53 -040070 <!-- size of the dead zone when touches have recently occurred elsewhere on screen -->
71 <dimen name="navigation_bar_deadzone_size_max">32dp</dimen>
Daniel Sandlerd42497e2011-06-04 00:32:50 -040072
Daniel Sandler26c84b12011-07-27 00:09:40 -040073 <!-- Height of notification icons in the status bar -->
74 <dimen name="status_bar_icon_size">@*android:dimen/status_bar_icon_size</dimen>
75
Chris Wren66757212012-05-14 10:05:42 -040076 <!-- Height of a small notification in the status bar -->
77 <dimen name="notification_min_height">64dp</dimen>
Daniel Sandler6a858c32012-03-12 14:38:58 -040078
Chris Wrenca7b7d02012-05-10 15:01:37 -040079 <!-- Height of a large notification in the status bar -->
80 <dimen name="notification_max_height">256dp</dimen>
Daniel Sandler6a858c32012-03-12 14:38:58 -040081
Chris Wren8fd39ec2014-02-27 17:43:26 -050082 <!-- Height of a medium notification in the status bar -->
83 <dimen name="notification_mid_height">128dp</dimen>
84
Chris Wren66757212012-05-14 10:05:42 -040085 <!-- Height of a small notification in the status bar plus glow, padding, etc -->
Jorim Jaggic5dc0d02014-04-15 15:42:55 +020086 <dimen name="notification_row_min_height">68dp</dimen>
Chris Wren66757212012-05-14 10:05:42 -040087
88 <!-- Height of a large notification in the status bar plus glow, padding, etc -->
89 <dimen name="notification_row_max_height">260dp</dimen>
90
Daniel Sandler26c84b12011-07-27 00:09:40 -040091 <!-- size at which Notification icons will be drawn in the status bar -->
92 <dimen name="status_bar_icon_drawing_size">18dip</dimen>
93
94 <!-- opacity at which Notification icons will be drawn in the status bar -->
John Spurlock21efa9a2013-09-06 18:26:55 -040095 <item type="dimen" name="status_bar_icon_drawing_alpha">75%</item>
Daniel Sandler7c3e39d2011-07-29 16:30:49 -040096
97 <!-- gap on either side of status bar notification icons -->
98 <dimen name="status_bar_icon_padding">0dp</dimen>
Peter Ng6ccd7a52011-08-22 16:58:43 -070099
Daniel Sandlere95658c2012-05-10 00:33:54 -0400100 <!-- half the distance between notifications in the panel -->
Jorim Jaggic5dc0d02014-04-15 15:42:55 +0200101 <dimen name="notification_divider_height">2dp</dimen>
Daniel Sandlerdc940ea2011-08-25 14:35:53 -0700102
103 <!-- Notification drawer tuning parameters (phone UI) -->
104 <!-- Initial velocity of the shade when expanding on its own -->
105 <dimen name="self_expand_velocity">2000dp</dimen>
106 <!-- Initial velocity of the shade when collapsing on its own -->
107 <dimen name="self_collapse_velocity">2000dp</dimen>
108 <!-- Minimum final velocity of gestures interpreted as expand requests -->
Daniel Sandlerdb9a3762012-10-03 14:49:52 -0400109 <dimen name="fling_expand_min_velocity">100dp</dimen>
Daniel Sandlerdc940ea2011-08-25 14:35:53 -0700110 <!-- Minimum final velocity of gestures interpreted as collapse requests -->
Daniel Sandlerdb9a3762012-10-03 14:49:52 -0400111 <dimen name="fling_collapse_min_velocity">100dp</dimen>
Daniel Sandlerdc940ea2011-08-25 14:35:53 -0700112 <!-- Cap on contribution of x dimension of gesture to overall velocity -->
113 <dimen name="fling_gesture_max_x_velocity">200dp</dimen>
Daniel Sandlere5011a32012-06-11 16:07:52 -0400114 <!-- Cap on overall resulting fling speed (s^-1) -->
115 <dimen name="fling_gesture_max_output_velocity">3000dp</dimen>
Daniel Sandlerdc940ea2011-08-25 14:35:53 -0700116
Daniel Sandler173bae22012-09-25 14:37:42 -0400117 <!-- Minimum distance a fling must travel (anti-jitter) -->
Daniel Sandlerdb9a3762012-10-03 14:49:52 -0400118 <dimen name="fling_gesture_min_dist">20dp</dimen>
Daniel Sandler173bae22012-09-25 14:37:42 -0400119
Daniel Sandlerdc940ea2011-08-25 14:35:53 -0700120 <!-- Minimum fraction of the display a gesture must travel, at any velocity, to qualify as a
121 collapse request -->
122 <item type="dimen" name="collapse_min_display_fraction">10%</item>
123 <!-- Minimum fraction of the display a gesture must travel to qualify as an expand request -->
124 <item type="dimen" name="expand_min_display_fraction">50%</item>
125
126 <!-- Initial acceleration of an expand animation after fling -->
127 <dimen name="expand_accel">2000dp</dimen>
128 <!-- Initial acceleration of an collapse animation after fling -->
129 <dimen name="collapse_accel">2000dp</dimen>
130
Winson Chunga63bb842011-10-17 10:26:28 -0700131 <!-- The padding on the global screenshot background image -->
Winson Chung22ca0952011-10-20 19:44:32 -0700132 <dimen name="global_screenshot_bg_padding">20dp</dimen>
Winson Chunga63bb842011-10-17 10:26:28 -0700133
Andrew Flynn1d9af302012-03-07 15:48:51 -0800134 <!-- The width of the view containing non-menu status bar icons -->
135 <dimen name="navigation_key_width">80dip</dimen>
136
137 <!-- The width of the view containing the menu status bar icon -->
138 <dimen name="navigation_menu_key_width">40dip</dimen>
Jim Millere898ac52012-04-06 17:10:57 -0700139
Michael Jurka53f109bf2012-06-13 17:38:14 -0700140 <!-- Default distance beyond which snaps to the matching target -->
141 <dimen name="navbar_search_snap_margin">40dip</dimen>
Jim Millere898ac52012-04-06 17:10:57 -0700142
143 <!-- Diameter of outer shape drawable shown in navbar search-->
Jim Miller20830422012-05-15 20:46:03 -0700144 <dimen name="navbar_search_outerring_diameter">340dp</dimen>
Jim Miller354619c2012-04-27 17:33:44 -0700145
Jim Miller955a0162012-06-11 21:06:13 -0700146 <!-- Diameter of outer shape drawable shown in navbar search. Should be 1/2 of above value -->
147 <dimen name="navbar_search_outerring_radius">170dp</dimen>
148
Jim Miller354619c2012-04-27 17:33:44 -0700149 <!-- Threshold for swipe-up gesture to activate search dialog -->
Jim Miller20830422012-05-15 20:46:03 -0700150 <dimen name="navbar_search_up_threshhold">40dip</dimen>
Jim Miller354619c2012-04-27 17:33:44 -0700151
152 <!-- Height of search panel including navigation bar height -->
153 <dimen name="navbar_search_panel_height">230dip</dimen>
Jim Millere898ac52012-04-06 17:10:57 -0700154
Daniel Sandler1fac1fd2012-04-30 12:07:30 -0400155 <!-- Height of the draggable handle at the bottom of the phone notification panel -->
Daniel Sandler13522a22012-09-27 14:46:58 -0400156 <dimen name="close_handle_height">36dp</dimen>
Daniel Sandlerfc753d22012-05-08 13:56:44 -0400157
Daniel Sandler13522a22012-09-27 14:46:58 -0400158 <!-- Amount of close_handle that will NOT overlap the notification list -->
159 <dimen name="close_handle_underlap">32dp</dimen>
Daniel Sandlerfc753d22012-05-08 13:56:44 -0400160
161 <!-- Height of the notification panel header bar -->
162 <dimen name="notification_panel_header_height">48dp</dimen>
163
Daniel Sandler8e18dc72012-05-17 00:44:59 -0400164 <!-- Extra space above the panel -->
Daniel Sandler3d32a242012-06-05 13:44:14 -0400165 <dimen name="notification_panel_padding_top">0dp</dimen>
Daniel Sandlerfc753d22012-05-08 13:56:44 -0400166
Daniel Sandler8e18dc72012-05-17 00:44:59 -0400167 <!-- Extra space above the clock in the panel -->
Daniel Sandlerfc753d22012-05-08 13:56:44 -0400168 <dimen name="notification_panel_header_padding_top">0dp</dimen>
Daniel Sandler21b274e2012-05-02 15:07:51 -0400169
Adrian Roos9a0a4c92014-04-08 15:52:18 +0200170 <!-- Extra space above the panel holder -->
171 <dimen name="panel_holder_padding_top">0dp</dimen>
172
Jim Miller354619c2012-04-27 17:33:44 -0700173 <!-- Layout parameters for the notification panel -->
174 <dimen name="notification_panel_margin_bottom">0dp</dimen>
Daniel Sandler21b274e2012-05-02 15:07:51 -0400175 <dimen name="notification_panel_margin_left">0dp</dimen>
176
John Spurlock50728832014-04-17 19:05:28 -0400177 <!-- Gravity for the notification panel -->
Daniel Sandler21b274e2012-05-02 15:07:51 -0400178 <!-- 0x37 = fill_horizontal|top -->
179 <integer name="notification_panel_layout_gravity">0x37</integer>
Chris Wrenb8ea2f52012-08-24 11:50:55 -0400180
Daniel Sandler3d32a242012-06-05 13:44:14 -0400181 <!-- Height of the carrier/wifi name label -->
182 <dimen name="carrier_label_height">24dp</dimen>
Chris Wrenb4e2c48b2012-06-15 16:51:54 -0400183
Daniel Sandler4377d1492012-09-11 15:18:47 -0400184 <!-- The distance you can pull a notification before it pops open -->
Chris Wren86d00fb2012-08-01 17:03:07 -0400185 <dimen name="one_finger_pop_limit">32dp</dimen>
Winson Chungd63c59782012-09-05 17:34:41 -0700186
Winson Chungd63c59782012-09-05 17:34:41 -0700187 <!-- The fixed height of each tile -->
188 <dimen name="quick_settings_cell_height">110dp</dimen>
189
190 <!-- The padding between each tile within the QuickSettings layout -->
Winson Chungc86b23b9a2012-09-24 11:24:28 -0700191 <dimen name="quick_settings_cell_gap">4dp</dimen>
Winson Chungd63c59782012-09-05 17:34:41 -0700192
Daniel Sandlere680f542012-09-28 12:22:27 -0400193 <!-- Minimum fraction of the screen that should be taken up by the notification panel.
194 Not used at this screen size. -->
195 <item type="dimen" name="notification_panel_min_height_frac">0%</item>
Daniel Sandler4377d1492012-09-11 15:18:47 -0400196
197 <dimen name="blinds_pop_threshold">32dp</dimen>
198
199 <!-- The size of the gesture span needed to activate the "pull" notification expansion -->
200 <dimen name="pull_span_min">25dp</dimen>
Daniel Sandler3679bf52012-10-16 21:30:28 -0400201
202 <!-- How far to slide the panel out when you touch it -->
203 <!-- For phones, this is close_handle_height + header_height -->
204 <dimen name="peek_height">84dp</dimen>
Daniel Sandlerb5538e62013-04-12 15:16:53 -0400205
206 <!-- Quick Settings tile geometry: top interior margin, above icon -->
207 <dimen name="qs_tile_margin_above_icon">27dp</dimen>
208 <!-- Quick Settings tile geometry: gap between icon and text -->
209 <dimen name="qs_tile_margin_below_icon">17dp</dimen>
210 <!-- Quick Settings tile geometry: icon size -->
211 <dimen name="qs_tile_icon_size">32dp</dimen>
Maggie Benthall68881e42013-09-17 19:23:59 -0400212 <!-- Quick Settings CA Cert Warning tile geometry: gap between icon and text -->
213 <dimen name="qs_cawarn_tile_margin_below_icon">3dp</dimen>
Chris Wren0f2aa682013-08-02 12:03:02 -0400214
215 <!-- The width of the notification panel window: match_parent below sw600dp -->
216 <dimen name="notification_panel_width">-1dp</dimen>
Daniel Sandler8475a742013-09-26 00:24:57 -0400217
218 <!-- used by DessertCase -->
219 <dimen name="dessert_case_cell_size">192dp</dimen>
John Spurlock74d24802013-12-02 17:14:51 -0500220
221 <!-- Default glow radius for GlowPadView -->
222 <dimen name="glowpadview_glow_radius">75dip</dimen>
223
224 <!-- Default distance from each snap target that GlowPadView considers a "hit" -->
225 <dimen name="glowpadview_inner_radius">15dip</dimen>
Winson Chung37c8d8e2014-03-24 14:53:07 -0700226
Winson Chung5e3e5d82014-04-02 15:44:55 -0700227 <!-- The size of the application icon in the recents task view. -->
228 <dimen name="recents_task_view_application_icon_size">60dp</dimen>
229
230 <!-- The size of the activity icon in the recents task view. -->
231 <dimen name="recents_task_view_activity_icon_size">60dp</dimen>
John Spurlockeeb397b2014-03-25 17:45:56 -0400232
Winson Chung14926462014-04-14 18:57:14 -0700233 <!-- The radius of the rounded corners on a task view. -->
234 <dimen name="recents_task_view_rounded_corners_radius">2dp</dimen>
235
Winson Chung9f9679d2014-04-11 16:49:09 -0700236 <!-- The amount of space a user has to scroll to dismiss any info panes. -->
237 <dimen name="recents_task_stack_scroll_dismiss_info_pane_distance">50dp</dimen>
238
Winson Chungecd9b302014-04-16 17:07:18 -0700239 <!-- The height of the search bar space. -->
240 <dimen name="recents_search_bar_space_height">40dp</dimen>
241
242 <!-- The search bar edge margins. -->
243 <dimen name="recents_search_bar_space_edge_margins">12dp</dimen>
244
Winson Chung2f2ca082014-04-03 18:05:29 -0700245 <!-- Used to calculate the translation animation duration, the expected amount of movement
246 in dps over one second of time. -->
247 <dimen name="recents_animation_movement_in_dps_per_second">800dp</dimen>
248
Selim Cinek67b22602014-03-10 15:40:16 +0100249 <!-- Space below the notification stack -->
250 <dimen name="notification_stack_margin_bottom">0dp</dimen>
251
252 <!-- Space reserved for the cards behind the top card in the top stack -->
253 <dimen name="top_stack_peek_amount">24dp</dimen>
254
255 <!-- Space reserved for the cards behind the top card in the bottom stack -->
256 <dimen name="bottom_stack_peek_amount">18dp</dimen>
257
258 <!-- The side padding of the notifications-->
259 <dimen name="notification_side_padding">8dp</dimen>
260
261 <!-- Z distance between notifications if they are in the stack -->
262 <dimen name="z_distance_between_notifications">2dp</dimen>
263
John Spurlock1bdb48e2014-04-01 16:38:05 -0400264 <!-- Width of the zen mode interstitial dialog. -->
265 <dimen name="zen_mode_dialog_width">320dp</dimen>
Adrian Roos5e25caa2014-04-10 04:21:31 +0200266
267 <!-- Camera affordance drag distance -->
268 <dimen name="camera_drag_distance">100dp</dimen>
John Spurlock73203eb2014-04-15 16:14:46 -0400269
270 <dimen name="quick_settings_tmp_scrim_stroke_width">8dp</dimen>
271 <dimen name="quick_settings_tmp_scrim_text_size">30dp</dimen>
Daniel Sandler26c84b12011-07-27 00:09:40 -0400272</resources>