| Joe Onorato | 503007d | 2010-04-16 09:20:55 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- |
| 3 | * Copyright (c) 2006, The Android Open Source Project |
| 4 | * |
| Jim Miller | 5fda69c | 2011-02-16 15:17:11 -0800 | [diff] [blame] | 5 | * 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 Onorato | 503007d | 2010-04-16 09:20:55 -0700 | [diff] [blame] | 8 | * |
| Jim Miller | 5fda69c | 2011-02-16 15:17:11 -0800 | [diff] [blame] | 9 | * http://www.apache.org/licenses/LICENSE-2.0 |
| Joe Onorato | 503007d | 2010-04-16 09:20:55 -0700 | [diff] [blame] | 10 | * |
| Jim Miller | 5fda69c | 2011-02-16 15:17:11 -0800 | [diff] [blame] | 11 | * 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 Onorato | 503007d | 2010-04-16 09:20:55 -0700 | [diff] [blame] | 15 | * 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 Miller | 5fda69c | 2011-02-16 15:17:11 -0800 | [diff] [blame] | 21 | |
| 22 | <!-- Recent Applications parameters --> |
| Jim Miller | 5fda69c | 2011-02-16 15:17:11 -0800 | [diff] [blame] | 23 | <!-- Upper width limit for application icon --> |
| Peter Ng | 2d136a8 | 2011-10-12 15:49:39 -0700 | [diff] [blame] | 24 | <dimen name="status_bar_recents_app_icon_max_width">48dp</dimen> |
| Jim Miller | 5fda69c | 2011-02-16 15:17:11 -0800 | [diff] [blame] | 25 | <!-- Upper height limit for application icon --> |
| Peter Ng | 2d136a8 | 2011-10-12 15:49:39 -0700 | [diff] [blame] | 26 | <dimen name="status_bar_recents_app_icon_max_height">48dp</dimen> |
| Michael Jurka | 3b1fc47 | 2011-06-13 10:54:40 -0700 | [diff] [blame] | 27 | |
| Peter Ng | 622a976 | 2011-08-29 10:56:53 -0700 | [diff] [blame] | 28 | <!-- Size of application thumbnail --> |
| 29 | <dimen name="status_bar_recents_thumbnail_width">164dp</dimen> |
| Michael Jurka | 9316e7e | 2011-10-04 13:44:05 -0700 | [diff] [blame] | 30 | <dimen name="status_bar_recents_thumbnail_height">145dp</dimen> |
| Michael Jurka | cb2522c | 2012-04-13 09:32:47 -0700 | [diff] [blame] | 31 | <dimen name="status_bar_recents_thumbnail_bg_padding">4dp</dimen> |
| Peter Ng | 622a976 | 2011-08-29 10:56:53 -0700 | [diff] [blame] | 32 | |
| Jim Miller | 9f0f0e0 | 2011-05-17 20:06:29 -0700 | [diff] [blame] | 33 | <!-- Size of application label text --> |
| Peter Ng | 2d136a8 | 2011-10-12 15:49:39 -0700 | [diff] [blame] | 34 | <dimen name="status_bar_recents_app_label_text_size">14dip</dimen> |
| Jim Miller | 9f0f0e0 | 2011-05-17 20:06:29 -0700 | [diff] [blame] | 35 | <!-- Size of application description text --> |
| Peter Ng | 2d136a8 | 2011-10-12 15:49:39 -0700 | [diff] [blame] | 36 | <dimen name="status_bar_recents_app_description_text_size">14dip</dimen> |
| Michael Jurka | 55a25fa | 2012-04-02 07:09:10 -0700 | [diff] [blame] | 37 | <!-- 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 Miller | 9f0f0e0 | 2011-05-17 20:06:29 -0700 | [diff] [blame] | 41 | <!-- Margin between recents container and glow on the right --> |
| 42 | <dimen name="status_bar_recents_right_glow_margin">100dip</dimen> |
| Daniel Sandler | f6a3412 | 2012-08-06 14:31:13 -0400 | [diff] [blame] | 43 | <!-- 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> |
| 53 | <!-- Where to place the app icon over the thumbnail --> |
| 54 | <dimen name="status_bar_recents_app_icon_left_margin">0dp</dimen> |
| 55 | <dimen name="status_bar_recents_app_icon_top_margin">8dp</dimen> |
| 56 | |
| Dianne Hackborn | 7d04932 | 2011-06-14 15:00:32 -0700 | [diff] [blame] | 57 | <!-- Amount to offset bottom of notification peek window from top of status bar. --> |
| 58 | <dimen name="peek_window_y_offset">-12dp</dimen> |
| Jim Miller | 5fda69c | 2011-02-16 15:17:11 -0800 | [diff] [blame] | 59 | |
| Daniel Sandler | 8956dbb | 2011-04-22 07:55:02 -0400 | [diff] [blame] | 60 | <!-- thickness (height) of the navigation bar on phones that require it --> |
| Daniel Sandler | 36412a7 | 2011-08-04 09:35:13 -0400 | [diff] [blame] | 61 | <dimen name="navigation_bar_size">@*android:dimen/navigation_bar_height</dimen> |
| Daniel Sandler | 41006aa | 2011-06-29 15:10:49 -0400 | [diff] [blame] | 62 | |
| 63 | <!-- thickness (height) of the dead zone at the top of the navigation bar, |
| 64 | reducing false presses on navbar buttons; approx 2mm --> |
| 65 | <dimen name="navigation_bar_deadzone_size">12dp</dimen> |
| Daniel Sandler | c26185b | 2012-08-29 15:49:53 -0400 | [diff] [blame] | 66 | <!-- size of the dead zone when touches have recently occurred elsewhere on screen --> |
| 67 | <dimen name="navigation_bar_deadzone_size_max">32dp</dimen> |
| Daniel Sandler | d42497e | 2011-06-04 00:32:50 -0400 | [diff] [blame] | 68 | |
| Daniel Sandler | 26c84b1 | 2011-07-27 00:09:40 -0400 | [diff] [blame] | 69 | <!-- Height of notification icons in the status bar --> |
| 70 | <dimen name="status_bar_icon_size">@*android:dimen/status_bar_icon_size</dimen> |
| 71 | |
| Chris Wren | 6675721 | 2012-05-14 10:05:42 -0400 | [diff] [blame] | 72 | <!-- Height of a small notification in the status bar --> |
| 73 | <dimen name="notification_min_height">64dp</dimen> |
| Daniel Sandler | 6a858c3 | 2012-03-12 14:38:58 -0400 | [diff] [blame] | 74 | |
| Chris Wren | ca7b7d0 | 2012-05-10 15:01:37 -0400 | [diff] [blame] | 75 | <!-- Height of a large notification in the status bar --> |
| 76 | <dimen name="notification_max_height">256dp</dimen> |
| Daniel Sandler | 6a858c3 | 2012-03-12 14:38:58 -0400 | [diff] [blame] | 77 | |
| Chris Wren | 6675721 | 2012-05-14 10:05:42 -0400 | [diff] [blame] | 78 | <!-- Height of a small notification in the status bar plus glow, padding, etc --> |
| Chris Wren | 956beaf | 2012-05-23 11:14:19 -0400 | [diff] [blame] | 79 | <dimen name="notification_row_min_height">70dp</dimen> |
| Chris Wren | 6675721 | 2012-05-14 10:05:42 -0400 | [diff] [blame] | 80 | |
| 81 | <!-- Height of a large notification in the status bar plus glow, padding, etc --> |
| 82 | <dimen name="notification_row_max_height">260dp</dimen> |
| 83 | |
| Daniel Sandler | 26c84b1 | 2011-07-27 00:09:40 -0400 | [diff] [blame] | 84 | <!-- size at which Notification icons will be drawn in the status bar --> |
| 85 | <dimen name="status_bar_icon_drawing_size">18dip</dimen> |
| 86 | |
| 87 | <!-- opacity at which Notification icons will be drawn in the status bar --> |
| Christian Robertson | 9345b12 | 2012-06-15 19:36:30 -0700 | [diff] [blame] | 88 | <item type="dimen" name="status_bar_icon_drawing_alpha">65%</item> |
| Daniel Sandler | 7c3e39d | 2011-07-29 16:30:49 -0400 | [diff] [blame] | 89 | |
| 90 | <!-- gap on either side of status bar notification icons --> |
| 91 | <dimen name="status_bar_icon_padding">0dp</dimen> |
| Peter Ng | 6ccd7a5 | 2011-08-22 16:58:43 -0700 | [diff] [blame] | 92 | |
| Daniel Sandler | e95658c | 2012-05-10 00:33:54 -0400 | [diff] [blame] | 93 | <!-- half the distance between notifications in the panel --> |
| Chris Wren | 956beaf | 2012-05-23 11:14:19 -0400 | [diff] [blame] | 94 | <dimen name="notification_divider_height">3dp</dimen> |
| Daniel Sandler | dc940ea | 2011-08-25 14:35:53 -0700 | [diff] [blame] | 95 | |
| 96 | <!-- Notification drawer tuning parameters (phone UI) --> |
| 97 | <!-- Initial velocity of the shade when expanding on its own --> |
| 98 | <dimen name="self_expand_velocity">2000dp</dimen> |
| 99 | <!-- Initial velocity of the shade when collapsing on its own --> |
| 100 | <dimen name="self_collapse_velocity">2000dp</dimen> |
| 101 | <!-- Minimum final velocity of gestures interpreted as expand requests --> |
| 102 | <dimen name="fling_expand_min_velocity">200dp</dimen> |
| 103 | <!-- Minimum final velocity of gestures interpreted as collapse requests --> |
| 104 | <dimen name="fling_collapse_min_velocity">200dp</dimen> |
| 105 | <!-- Cap on contribution of x dimension of gesture to overall velocity --> |
| 106 | <dimen name="fling_gesture_max_x_velocity">200dp</dimen> |
| Daniel Sandler | e5011a3 | 2012-06-11 16:07:52 -0400 | [diff] [blame] | 107 | <!-- Cap on overall resulting fling speed (s^-1) --> |
| 108 | <dimen name="fling_gesture_max_output_velocity">3000dp</dimen> |
| Daniel Sandler | dc940ea | 2011-08-25 14:35:53 -0700 | [diff] [blame] | 109 | |
| Daniel Sandler | 173bae2 | 2012-09-25 14:37:42 -0400 | [diff] [blame] | 110 | <!-- Minimum distance a fling must travel (anti-jitter) --> |
| 111 | <dimen name="fling_gesture_min_dist">10dp</dimen> |
| 112 | |
| Daniel Sandler | dc940ea | 2011-08-25 14:35:53 -0700 | [diff] [blame] | 113 | <!-- Minimum fraction of the display a gesture must travel, at any velocity, to qualify as a |
| 114 | collapse request --> |
| 115 | <item type="dimen" name="collapse_min_display_fraction">10%</item> |
| 116 | <!-- Minimum fraction of the display a gesture must travel to qualify as an expand request --> |
| 117 | <item type="dimen" name="expand_min_display_fraction">50%</item> |
| 118 | |
| 119 | <!-- Initial acceleration of an expand animation after fling --> |
| 120 | <dimen name="expand_accel">2000dp</dimen> |
| 121 | <!-- Initial acceleration of an collapse animation after fling --> |
| 122 | <dimen name="collapse_accel">2000dp</dimen> |
| 123 | |
| Winson Chung | a63bb84 | 2011-10-17 10:26:28 -0700 | [diff] [blame] | 124 | <!-- The padding on the global screenshot background image --> |
| Winson Chung | 22ca095 | 2011-10-20 19:44:32 -0700 | [diff] [blame] | 125 | <dimen name="global_screenshot_bg_padding">20dp</dimen> |
| Winson Chung | a63bb84 | 2011-10-17 10:26:28 -0700 | [diff] [blame] | 126 | |
| Andrew Flynn | 1d9af30 | 2012-03-07 15:48:51 -0800 | [diff] [blame] | 127 | <!-- The width of the view containing non-menu status bar icons --> |
| 128 | <dimen name="navigation_key_width">80dip</dimen> |
| 129 | |
| 130 | <!-- The width of the view containing the menu status bar icon --> |
| 131 | <dimen name="navigation_menu_key_width">40dip</dimen> |
| Jim Miller | e898ac5 | 2012-04-06 17:10:57 -0700 | [diff] [blame] | 132 | |
| Michael Jurka | 53f109bf | 2012-06-13 17:38:14 -0700 | [diff] [blame] | 133 | <!-- Default distance beyond which snaps to the matching target --> |
| 134 | <dimen name="navbar_search_snap_margin">40dip</dimen> |
| Jim Miller | e898ac5 | 2012-04-06 17:10:57 -0700 | [diff] [blame] | 135 | |
| 136 | <!-- Diameter of outer shape drawable shown in navbar search--> |
| Jim Miller | 2083042 | 2012-05-15 20:46:03 -0700 | [diff] [blame] | 137 | <dimen name="navbar_search_outerring_diameter">340dp</dimen> |
| Jim Miller | 354619c | 2012-04-27 17:33:44 -0700 | [diff] [blame] | 138 | |
| Jim Miller | 955a016 | 2012-06-11 21:06:13 -0700 | [diff] [blame] | 139 | <!-- Diameter of outer shape drawable shown in navbar search. Should be 1/2 of above value --> |
| 140 | <dimen name="navbar_search_outerring_radius">170dp</dimen> |
| 141 | |
| Jim Miller | 354619c | 2012-04-27 17:33:44 -0700 | [diff] [blame] | 142 | <!-- Threshold for swipe-up gesture to activate search dialog --> |
| Jim Miller | 2083042 | 2012-05-15 20:46:03 -0700 | [diff] [blame] | 143 | <dimen name="navbar_search_up_threshhold">40dip</dimen> |
| Jim Miller | 354619c | 2012-04-27 17:33:44 -0700 | [diff] [blame] | 144 | |
| 145 | <!-- Height of search panel including navigation bar height --> |
| 146 | <dimen name="navbar_search_panel_height">230dip</dimen> |
| Jim Miller | e898ac5 | 2012-04-06 17:10:57 -0700 | [diff] [blame] | 147 | |
| Daniel Sandler | 1fac1fd | 2012-04-30 12:07:30 -0400 | [diff] [blame] | 148 | <!-- Height of the draggable handle at the bottom of the phone notification panel --> |
| Daniel Sandler | 13522a2 | 2012-09-27 14:46:58 -0400 | [diff] [blame^] | 149 | <dimen name="close_handle_height">36dp</dimen> |
| Daniel Sandler | fc753d2 | 2012-05-08 13:56:44 -0400 | [diff] [blame] | 150 | |
| Daniel Sandler | 13522a2 | 2012-09-27 14:46:58 -0400 | [diff] [blame^] | 151 | <!-- Amount of close_handle that will NOT overlap the notification list --> |
| 152 | <dimen name="close_handle_underlap">32dp</dimen> |
| Daniel Sandler | fc753d2 | 2012-05-08 13:56:44 -0400 | [diff] [blame] | 153 | |
| 154 | <!-- Height of the notification panel header bar --> |
| 155 | <dimen name="notification_panel_header_height">48dp</dimen> |
| 156 | |
| Daniel Sandler | 8e18dc7 | 2012-05-17 00:44:59 -0400 | [diff] [blame] | 157 | <!-- Extra space above the panel --> |
| Daniel Sandler | 3d32a24 | 2012-06-05 13:44:14 -0400 | [diff] [blame] | 158 | <dimen name="notification_panel_padding_top">0dp</dimen> |
| Daniel Sandler | fc753d2 | 2012-05-08 13:56:44 -0400 | [diff] [blame] | 159 | |
| Daniel Sandler | 8e18dc7 | 2012-05-17 00:44:59 -0400 | [diff] [blame] | 160 | <!-- Extra space above the clock in the panel --> |
| Daniel Sandler | fc753d2 | 2012-05-08 13:56:44 -0400 | [diff] [blame] | 161 | <dimen name="notification_panel_header_padding_top">0dp</dimen> |
| Daniel Sandler | 21b274e | 2012-05-02 15:07:51 -0400 | [diff] [blame] | 162 | |
| Jim Miller | 354619c | 2012-04-27 17:33:44 -0700 | [diff] [blame] | 163 | <!-- Layout parameters for the notification panel --> |
| 164 | <dimen name="notification_panel_margin_bottom">0dp</dimen> |
| Daniel Sandler | 21b274e | 2012-05-02 15:07:51 -0400 | [diff] [blame] | 165 | <dimen name="notification_panel_margin_left">0dp</dimen> |
| 166 | |
| Daniel Sandler | 8e72c9e | 2012-08-15 00:09:26 -0400 | [diff] [blame] | 167 | <!-- Gravity for the notification & quick settings panels --> |
| Daniel Sandler | 21b274e | 2012-05-02 15:07:51 -0400 | [diff] [blame] | 168 | <!-- 0x37 = fill_horizontal|top --> |
| 169 | <integer name="notification_panel_layout_gravity">0x37</integer> |
| Daniel Sandler | 8e72c9e | 2012-08-15 00:09:26 -0400 | [diff] [blame] | 170 | <integer name="settings_panel_layout_gravity">0x37</integer> |
| Daniel Sandler | 3d32a24 | 2012-06-05 13:44:14 -0400 | [diff] [blame] | 171 | |
| Daniel Sandler | 5a8aefa | 2012-09-25 01:21:12 -0400 | [diff] [blame] | 172 | <!-- Fraction of the status bar that, when dragged, will produce the quick settings panel |
| 173 | instead of the notification panel. See also @dimen/settings_panel_dragzone_min. |
| 174 | If zero, the settings panel will not be directly draggable from the status bar. --> |
| 175 | <item type="dimen" name="settings_panel_dragzone_fraction">0%</item> |
| 176 | |
| 177 | <!-- Quick settings dragzone, if used, should be at least this big (may be zero). --> |
| 178 | <dimen name="settings_panel_dragzone_min">100dp</dimen> |
| Chris Wren | b8ea2f5 | 2012-08-24 11:50:55 -0400 | [diff] [blame] | 179 | |
| Daniel Sandler | 3d32a24 | 2012-06-05 13:44:14 -0400 | [diff] [blame] | 180 | <!-- Height of the carrier/wifi name label --> |
| 181 | <dimen name="carrier_label_height">24dp</dimen> |
| Chris Wren | b4e2c48b | 2012-06-15 16:51:54 -0400 | [diff] [blame] | 182 | |
| 183 | <!-- The distance you can pull a notificaiton before it pops open --> |
| Chris Wren | 86d00fb | 2012-08-01 17:03:07 -0400 | [diff] [blame] | 184 | <dimen name="one_finger_pop_limit">32dp</dimen> |
| Winson Chung | d63c5978 | 2012-09-05 17:34:41 -0700 | [diff] [blame] | 185 | |
| Winson Chung | d63c5978 | 2012-09-05 17:34:41 -0700 | [diff] [blame] | 186 | <!-- The fixed height of each tile --> |
| 187 | <dimen name="quick_settings_cell_height">110dp</dimen> |
| 188 | |
| 189 | <!-- The padding between each tile within the QuickSettings layout --> |
| Winson Chung | c86b23b9a | 2012-09-24 11:24:28 -0700 | [diff] [blame] | 190 | <dimen name="quick_settings_cell_gap">4dp</dimen> |
| Winson Chung | d63c5978 | 2012-09-05 17:34:41 -0700 | [diff] [blame] | 191 | |
| Daniel Sandler | 26c84b1 | 2011-07-27 00:09:40 -0400 | [diff] [blame] | 192 | </resources> |