| 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> |
| Peter Ng | 622a976 | 2011-08-29 10:56:53 -0700 | [diff] [blame] | 31 | |
| Jim Miller | 9f0f0e0 | 2011-05-17 20:06:29 -0700 | [diff] [blame] | 32 | <!-- Size of application label text --> |
| Peter Ng | 2d136a8 | 2011-10-12 15:49:39 -0700 | [diff] [blame] | 33 | <dimen name="status_bar_recents_app_label_text_size">14dip</dimen> |
| Jim Miller | 9f0f0e0 | 2011-05-17 20:06:29 -0700 | [diff] [blame] | 34 | <!-- Size of application description text --> |
| Peter Ng | 2d136a8 | 2011-10-12 15:49:39 -0700 | [diff] [blame] | 35 | <dimen name="status_bar_recents_app_description_text_size">14dip</dimen> |
| Michael Jurka | 55a25fa | 2012-04-02 07:09:10 -0700 | [diff] [blame] | 36 | <!-- Size of fading edge for text --> |
| 37 | <dimen name="status_bar_recents_text_fading_edge_length">20dip</dimen> |
| 38 | <!-- Size of fading edge for scrolling --> |
| 39 | <dimen name="status_bar_recents_scroll_fading_edge_length">10dip</dimen> |
| Jim Miller | 9f0f0e0 | 2011-05-17 20:06:29 -0700 | [diff] [blame] | 40 | <!-- Margin between recents container and glow on the right --> |
| 41 | <dimen name="status_bar_recents_right_glow_margin">100dip</dimen> |
| Dianne Hackborn | 7d04932 | 2011-06-14 15:00:32 -0700 | [diff] [blame] | 42 | <!-- Amount to offset bottom of notification peek window from top of status bar. --> |
| 43 | <dimen name="peek_window_y_offset">-12dp</dimen> |
| Jim Miller | 5fda69c | 2011-02-16 15:17:11 -0800 | [diff] [blame] | 44 | |
| Daniel Sandler | 8956dbb | 2011-04-22 07:55:02 -0400 | [diff] [blame] | 45 | <!-- thickness (height) of the navigation bar on phones that require it --> |
| Daniel Sandler | 36412a7 | 2011-08-04 09:35:13 -0400 | [diff] [blame] | 46 | <dimen name="navigation_bar_size">@*android:dimen/navigation_bar_height</dimen> |
| Daniel Sandler | 41006aa | 2011-06-29 15:10:49 -0400 | [diff] [blame] | 47 | |
| 48 | <!-- thickness (height) of the dead zone at the top of the navigation bar, |
| 49 | reducing false presses on navbar buttons; approx 2mm --> |
| 50 | <dimen name="navigation_bar_deadzone_size">12dp</dimen> |
| Daniel Sandler | d42497e | 2011-06-04 00:32:50 -0400 | [diff] [blame] | 51 | |
| 52 | <!-- thickness (height) of each notification row, including any separators or padding --> |
| Chris Wren | 80a7627 | 2012-04-18 10:52:18 -0400 | [diff] [blame] | 53 | <dimen name="notification_height">68dp</dimen> |
| Joe Onorato | 503007d | 2010-04-16 09:20:55 -0700 | [diff] [blame] | 54 | |
| Daniel Sandler | 26c84b1 | 2011-07-27 00:09:40 -0400 | [diff] [blame] | 55 | <!-- Height of notification icons in the status bar --> |
| 56 | <dimen name="status_bar_icon_size">@*android:dimen/status_bar_icon_size</dimen> |
| 57 | |
| Daniel Sandler | 6a858c3 | 2012-03-12 14:38:58 -0400 | [diff] [blame] | 58 | <!-- Height of a small notification in the status bar --> |
| 59 | <dimen name="notification_min_height">@android:dimen/notification_large_icon_height</dimen> |
| 60 | |
| 61 | <!-- Height of a small notification in the status bar --> |
| 62 | <!-- TODO: change this back to 256dp once we deal with actions. --> |
| 63 | <dimen name="notification_max_height">320dp</dimen> |
| 64 | |
| Daniel Sandler | 26c84b1 | 2011-07-27 00:09:40 -0400 | [diff] [blame] | 65 | <!-- size at which Notification icons will be drawn in the status bar --> |
| 66 | <dimen name="status_bar_icon_drawing_size">18dip</dimen> |
| 67 | |
| 68 | <!-- opacity at which Notification icons will be drawn in the status bar --> |
| Justin Ho | 456bb48 | 2011-10-27 16:29:42 -0700 | [diff] [blame] | 69 | <item type="dimen" name="status_bar_icon_drawing_alpha">55%</item> |
| Daniel Sandler | 7c3e39d | 2011-07-29 16:30:49 -0400 | [diff] [blame] | 70 | |
| 71 | <!-- gap on either side of status bar notification icons --> |
| 72 | <dimen name="status_bar_icon_padding">0dp</dimen> |
| Peter Ng | 6ccd7a5 | 2011-08-22 16:58:43 -0700 | [diff] [blame] | 73 | |
| 74 | <!-- thickness (height) of dividers between each notification row --> |
| Chris Wren | 321452d | 2012-04-24 11:41:07 -0400 | [diff] [blame] | 75 | <dimen name="notification_divider_height">2dp</dimen> |
| Daniel Sandler | dc940ea | 2011-08-25 14:35:53 -0700 | [diff] [blame] | 76 | |
| 77 | <!-- Notification drawer tuning parameters (phone UI) --> |
| 78 | <!-- Initial velocity of the shade when expanding on its own --> |
| 79 | <dimen name="self_expand_velocity">2000dp</dimen> |
| 80 | <!-- Initial velocity of the shade when collapsing on its own --> |
| 81 | <dimen name="self_collapse_velocity">2000dp</dimen> |
| 82 | <!-- Minimum final velocity of gestures interpreted as expand requests --> |
| 83 | <dimen name="fling_expand_min_velocity">200dp</dimen> |
| 84 | <!-- Minimum final velocity of gestures interpreted as collapse requests --> |
| 85 | <dimen name="fling_collapse_min_velocity">200dp</dimen> |
| 86 | <!-- Cap on contribution of x dimension of gesture to overall velocity --> |
| 87 | <dimen name="fling_gesture_max_x_velocity">200dp</dimen> |
| 88 | |
| 89 | <!-- Minimum fraction of the display a gesture must travel, at any velocity, to qualify as a |
| 90 | collapse request --> |
| 91 | <item type="dimen" name="collapse_min_display_fraction">10%</item> |
| 92 | <!-- Minimum fraction of the display a gesture must travel to qualify as an expand request --> |
| 93 | <item type="dimen" name="expand_min_display_fraction">50%</item> |
| 94 | |
| 95 | <!-- Initial acceleration of an expand animation after fling --> |
| 96 | <dimen name="expand_accel">2000dp</dimen> |
| 97 | <!-- Initial acceleration of an collapse animation after fling --> |
| 98 | <dimen name="collapse_accel">2000dp</dimen> |
| 99 | |
| Winson Chung | a63bb84 | 2011-10-17 10:26:28 -0700 | [diff] [blame] | 100 | <!-- The padding on the global screenshot background image --> |
| Winson Chung | 22ca095 | 2011-10-20 19:44:32 -0700 | [diff] [blame] | 101 | <dimen name="global_screenshot_bg_padding">20dp</dimen> |
| Winson Chung | a63bb84 | 2011-10-17 10:26:28 -0700 | [diff] [blame] | 102 | |
| Andrew Flynn | 1d9af30 | 2012-03-07 15:48:51 -0800 | [diff] [blame] | 103 | <!-- The width of the view containing non-menu status bar icons --> |
| 104 | <dimen name="navigation_key_width">80dip</dimen> |
| 105 | |
| 106 | <!-- The width of the view containing the menu status bar icon --> |
| 107 | <dimen name="navigation_menu_key_width">40dip</dimen> |
| Jim Miller | e898ac5 | 2012-04-06 17:10:57 -0700 | [diff] [blame] | 108 | |
| 109 | <!-- Default target placement radius for navigation bar search target --> |
| 110 | <dimen name="navbar_search_target_placement_radius">150dip</dimen> |
| 111 | |
| 112 | <!-- Default distance beyond which snaps to the target radius --> |
| 113 | <dimen name="navbar_search_snap_margin">20dip</dimen> |
| 114 | |
| 115 | <!-- Default distance from each snap target considers a "hit" --> |
| 116 | <dimen name="navbar_search_hit_radius">60dip</dimen> |
| 117 | |
| 118 | <!-- Diameter of outer shape drawable shown in navbar search--> |
| 119 | <dimen name="navbar_search_outerring_diameter">300dip</dimen> |
| 120 | |
| Daniel Sandler | 1fac1fd | 2012-04-30 12:07:30 -0400 | [diff] [blame] | 121 | <!-- Height of the draggable handle at the bottom of the phone notification panel --> |
| 122 | <dimen name="close_handle_height">34dp</dimen> |
| Daniel Sandler | 21b274e | 2012-05-02 15:07:51 -0400 | [diff] [blame^] | 123 | |
| 124 | <!-- Layout parameters for the notification panel --> |
| 125 | <dimen name="notification_panel_margin_bottom">0dp</dimen> |
| 126 | <dimen name="notification_panel_margin_left">0dp</dimen> |
| 127 | |
| 128 | <!-- Gravity for the notification panel --> |
| 129 | <!-- 0x37 = fill_horizontal|top --> |
| 130 | <integer name="notification_panel_layout_gravity">0x37</integer> |
| Daniel Sandler | 26c84b1 | 2011-07-27 00:09:40 -0400 | [diff] [blame] | 131 | </resources> |