dimens.xml revision 6a16098437665c3aab3e9980359e140b8a47858b
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3 * Copyright (c) 2006, The Android Open Source Project
4 *
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
8 *
9 *     http://www.apache.org/licenses/LICENSE-2.0
10 *
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
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>
21
22    <!-- Recent Applications parameters -->
23    <!-- Upper width limit for application icon -->
24    <dimen name="status_bar_recents_app_icon_max_width">48dp</dimen>
25    <!-- Upper height limit for application icon -->
26    <dimen name="status_bar_recents_app_icon_max_height">48dp</dimen>
27
28    <!-- Size of application thumbnail -->
29    <dimen name="status_bar_recents_thumbnail_width">164dp</dimen>
30    <dimen name="status_bar_recents_thumbnail_height">145dp</dimen>
31
32    <!-- Size of application label text -->
33    <dimen name="status_bar_recents_app_label_text_size">14dip</dimen>
34    <!-- Size of application description text -->
35    <dimen name="status_bar_recents_app_description_text_size">14dip</dimen>
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>
40    <!-- Margin between recents container and glow on the right -->
41    <dimen name="status_bar_recents_right_glow_margin">100dip</dimen>
42    <!-- Amount to offset bottom of notification peek window from top of status bar. -->
43    <dimen name="peek_window_y_offset">-12dp</dimen>
44
45    <!-- thickness (height) of the navigation bar on phones that require it -->
46    <dimen name="navigation_bar_size">@*android:dimen/navigation_bar_height</dimen>
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>
51
52    <!-- Height of notification icons in the status bar -->
53    <dimen name="status_bar_icon_size">@*android:dimen/status_bar_icon_size</dimen>
54
55    <!-- Height of a small notification in the status bar -->
56    <dimen name="notification_min_height">64dp</dimen>
57
58    <!-- Height of a large notification in the status bar -->
59    <dimen name="notification_max_height">256dp</dimen>
60
61    <!-- Height of a small notification in the status bar plus glow, padding, etc -->
62    <dimen name="notification_row_min_height">72dp</dimen>
63
64    <!-- Height of a large notification in the status bar plus glow, padding, etc -->
65    <dimen name="notification_row_max_height">260dp</dimen>
66
67    <!-- size at which Notification icons will be drawn in the status bar -->
68    <dimen name="status_bar_icon_drawing_size">18dip</dimen>
69
70    <!-- opacity at which Notification icons will be drawn in the status bar -->
71    <item type="dimen" name="status_bar_icon_drawing_alpha">55%</item>
72
73    <!-- gap on either side of status bar notification icons -->
74    <dimen name="status_bar_icon_padding">0dp</dimen>
75
76    <!-- half the distance between notifications in the panel -->
77    <dimen name="notification_divider_height">4dp</dimen>
78
79    <!-- Notification drawer tuning parameters (phone UI) -->
80    <!-- Initial velocity of the shade when expanding on its own -->
81    <dimen name="self_expand_velocity">2000dp</dimen>
82    <!-- Initial velocity of the shade when collapsing on its own -->
83    <dimen name="self_collapse_velocity">2000dp</dimen>
84    <!-- Minimum final velocity of gestures interpreted as expand requests -->
85    <dimen name="fling_expand_min_velocity">200dp</dimen>
86    <!-- Minimum final velocity of gestures interpreted as collapse requests -->
87    <dimen name="fling_collapse_min_velocity">200dp</dimen>
88    <!-- Cap on contribution of x dimension of gesture to overall velocity -->
89    <dimen name="fling_gesture_max_x_velocity">200dp</dimen>
90
91    <!-- Minimum fraction of the display a gesture must travel, at any velocity, to qualify as a
92         collapse request -->
93    <item type="dimen" name="collapse_min_display_fraction">10%</item>
94    <!-- Minimum fraction of the display a gesture must travel to qualify as an expand request -->
95    <item type="dimen" name="expand_min_display_fraction">50%</item>
96
97    <!-- Initial acceleration of an expand animation after fling -->
98    <dimen name="expand_accel">2000dp</dimen>
99    <!-- Initial acceleration of an collapse animation after fling -->
100    <dimen name="collapse_accel">2000dp</dimen>
101
102    <!-- The padding on the global screenshot background image -->
103    <dimen name="global_screenshot_bg_padding">20dp</dimen>
104
105    <!-- The width of the view containing non-menu status bar icons -->
106    <dimen name="navigation_key_width">80dip</dimen>
107
108    <!-- The width of the view containing the menu status bar icon -->
109    <dimen name="navigation_menu_key_width">40dip</dimen>
110
111    <!-- Default distance beyond which snaps to the target radius -->
112    <dimen name="navbar_search_snap_margin">20dip</dimen>
113
114    <!-- Default distance from each snap target considers a "hit" -->
115    <dimen name="navbar_search_hit_radius">60dip</dimen>
116
117    <!-- Diameter of outer shape drawable shown in navbar search-->
118    <dimen name="navbar_search_outerring_diameter">340dp</dimen>
119
120    <!-- Threshold for swipe-up gesture to activate search dialog -->
121    <dimen name="navbar_search_up_threshhold">40dip</dimen>
122
123    <!-- Height of search panel including navigation bar height -->
124    <dimen name="navbar_search_panel_height">230dip</dimen>
125
126    <!-- Height of the draggable handle at the bottom of the phone notification panel -->
127    <dimen name="close_handle_height">32dp</dimen>
128
129    <!-- Amount of close_handle that will not overlap the notification list -->
130    <dimen name="close_handle_underlap">18dp</dimen>
131
132    <!-- Height of the notification panel header bar -->
133    <dimen name="notification_panel_header_height">48dp</dimen>
134
135    <!-- Extra space above the panel -->
136    <dimen name="notification_panel_padding_top">4dp</dimen>
137
138    <!-- Extra space above the clock in the panel -->
139    <dimen name="notification_panel_header_padding_top">0dp</dimen>
140
141    <!-- Layout parameters for the notification panel -->
142    <dimen name="notification_panel_margin_bottom">0dp</dimen>
143    <dimen name="notification_panel_margin_left">0dp</dimen>
144
145    <!-- Gravity for the notification panel -->
146    <!-- 0x37 = fill_horizontal|top -->
147    <integer name="notification_panel_layout_gravity">0x37</integer>
148</resources>
149