2010-04-16 09:20:55 -07:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<!--
|
|
|
|
* Copyright (c) 2006, The Android Open Source Project
|
|
|
|
*
|
2011-02-16 15:17:11 -08:00
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
2010-04-16 09:20:55 -07:00
|
|
|
*
|
2011-02-16 15:17:11 -08:00
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
2010-04-16 09:20:55 -07:00
|
|
|
*
|
2011-02-16 15:17:11 -08:00
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
2010-04-16 09:20:55 -07:00
|
|
|
* limitations under the License.
|
|
|
|
*/
|
|
|
|
-->
|
|
|
|
<resources>
|
|
|
|
<!-- Margin at the edge of the screen to ignore touch events for in the windowshade. -->
|
|
|
|
<dimen name="status_bar_edge_ignore">5dp</dimen>
|
2011-02-16 15:17:11 -08:00
|
|
|
|
|
|
|
<!-- Recent Applications parameters -->
|
|
|
|
<!-- Upper width limit for application icon -->
|
2011-10-12 15:49:39 -07:00
|
|
|
<dimen name="status_bar_recents_app_icon_max_width">48dp</dimen>
|
2011-02-16 15:17:11 -08:00
|
|
|
<!-- Upper height limit for application icon -->
|
2011-10-12 15:49:39 -07:00
|
|
|
<dimen name="status_bar_recents_app_icon_max_height">48dp</dimen>
|
2011-06-13 10:54:40 -07:00
|
|
|
|
2011-08-29 10:56:53 -07:00
|
|
|
<!-- Size of application thumbnail -->
|
|
|
|
<dimen name="status_bar_recents_thumbnail_width">164dp</dimen>
|
2011-10-04 13:44:05 -07:00
|
|
|
<dimen name="status_bar_recents_thumbnail_height">145dp</dimen>
|
2012-04-13 09:32:47 -07:00
|
|
|
<dimen name="status_bar_recents_thumbnail_bg_padding">4dp</dimen>
|
2011-08-29 10:56:53 -07:00
|
|
|
|
2011-05-17 20:06:29 -07:00
|
|
|
<!-- Size of application label text -->
|
2011-10-12 15:49:39 -07:00
|
|
|
<dimen name="status_bar_recents_app_label_text_size">14dip</dimen>
|
2011-05-17 20:06:29 -07:00
|
|
|
<!-- Size of application description text -->
|
2011-10-12 15:49:39 -07:00
|
|
|
<dimen name="status_bar_recents_app_description_text_size">14dip</dimen>
|
2012-04-02 07:09:10 -07:00
|
|
|
<!-- Size of fading edge for text -->
|
|
|
|
<dimen name="status_bar_recents_text_fading_edge_length">20dip</dimen>
|
|
|
|
<!-- Size of fading edge for scrolling -->
|
|
|
|
<dimen name="status_bar_recents_scroll_fading_edge_length">10dip</dimen>
|
2011-05-17 20:06:29 -07:00
|
|
|
<!-- Margin between recents container and glow on the right -->
|
|
|
|
<dimen name="status_bar_recents_right_glow_margin">100dip</dimen>
|
2012-08-06 14:31:13 -04:00
|
|
|
<!-- How far the thumbnail for a recent app appears from left edge -->
|
|
|
|
<dimen name="status_bar_recents_thumbnail_left_margin">20dp</dimen>
|
|
|
|
<!-- Padding for text descriptions -->
|
|
|
|
<dimen name="status_bar_recents_text_description_padding">8dp</dimen>
|
|
|
|
<!-- Width of application label text -->
|
|
|
|
<dimen name="status_bar_recents_app_label_width">88dip</dimen>
|
|
|
|
<!-- Left margin of application label text -->
|
|
|
|
<dimen name="status_bar_recents_app_label_left_margin">0dip</dimen>
|
|
|
|
<!-- Padding between recents items -->
|
|
|
|
<dimen name="status_bar_recents_item_padding">0dip</dimen>
|
2012-10-01 13:58:29 +02:00
|
|
|
<!-- When recents first appears, how far the icon and label of the primary activity
|
|
|
|
travel -->
|
2012-10-10 00:00:21 +02:00
|
|
|
<dimen name="status_bar_recents_app_icon_translate_distance">35dip</dimen>
|
2012-10-01 13:58:29 +02:00
|
|
|
|
2012-08-06 14:31:13 -04:00
|
|
|
<!-- Where to place the app icon over the thumbnail -->
|
|
|
|
<dimen name="status_bar_recents_app_icon_left_margin">0dp</dimen>
|
|
|
|
<dimen name="status_bar_recents_app_icon_top_margin">8dp</dimen>
|
|
|
|
|
2011-06-14 15:00:32 -07:00
|
|
|
<!-- Amount to offset bottom of notification peek window from top of status bar. -->
|
|
|
|
<dimen name="peek_window_y_offset">-12dp</dimen>
|
2011-02-16 15:17:11 -08:00
|
|
|
|
On-screen navigation bar (separate from the status bar).
In Honeycomb we introduced navigation controls in the status
bar, for xlarge devices without physical buttons. What about
phones? The status bar is pretty cramped already, and
besides, it's at the top of the display most of the time,
not at the bottom where your thumb is likely to be.
Enter the navigation bar. It's a new window type that
appears atop almost everything (including the keyguard); the
window manager subtracts its rectangle from the default
visible rectangle of other windows (including the status bar
and notification shade).
However, it behaves (on phones) like the status bar in that
applications that request fullscreen windows can get access
to those pixels. Well, almost; they need cooperation from
the navigation bar implementation to make the navbar
disappear, just like the status bar.
The current SystemUI implementation of the navigation bar on
phones is still rough, but it has the basics:
+ back, home, and menu keys (NB: we're showing menu all the
time right now because checking the api level of the
package owning the top window is currently a poor
indicator of whether the app requires the menu key)
+ it tries to stick to the same physical end of the device,
regardless of device orientation (on a phone, this is
the strip of land closest to the microphone)
Change-Id: Ic613a3351220af0bbfbdef63e1d99cbefd5ed1c2
2011-04-22 07:55:02 -04:00
|
|
|
<!-- thickness (height) of the navigation bar on phones that require it -->
|
2011-08-04 09:35:13 -04:00
|
|
|
<dimen name="navigation_bar_size">@*android:dimen/navigation_bar_height</dimen>
|
2011-06-29 15:10:49 -04:00
|
|
|
|
|
|
|
<!-- thickness (height) of the dead zone at the top of the navigation bar,
|
|
|
|
reducing false presses on navbar buttons; approx 2mm -->
|
|
|
|
<dimen name="navigation_bar_deadzone_size">12dp</dimen>
|
2012-08-29 15:49:53 -04:00
|
|
|
<!-- size of the dead zone when touches have recently occurred elsewhere on screen -->
|
|
|
|
<dimen name="navigation_bar_deadzone_size_max">32dp</dimen>
|
2011-06-04 00:32:50 -04:00
|
|
|
|
2011-07-27 00:09:40 -04:00
|
|
|
<!-- Height of notification icons in the status bar -->
|
|
|
|
<dimen name="status_bar_icon_size">@*android:dimen/status_bar_icon_size</dimen>
|
|
|
|
|
2012-05-14 10:05:42 -04:00
|
|
|
<!-- Height of a small notification in the status bar -->
|
|
|
|
<dimen name="notification_min_height">64dp</dimen>
|
2012-03-12 14:38:58 -04:00
|
|
|
|
2012-05-10 15:01:37 -04:00
|
|
|
<!-- Height of a large notification in the status bar -->
|
|
|
|
<dimen name="notification_max_height">256dp</dimen>
|
2012-03-12 14:38:58 -04:00
|
|
|
|
2012-05-14 10:05:42 -04:00
|
|
|
<!-- Height of a small notification in the status bar plus glow, padding, etc -->
|
2012-05-23 11:14:19 -04:00
|
|
|
<dimen name="notification_row_min_height">70dp</dimen>
|
2012-05-14 10:05:42 -04:00
|
|
|
|
|
|
|
<!-- Height of a large notification in the status bar plus glow, padding, etc -->
|
|
|
|
<dimen name="notification_row_max_height">260dp</dimen>
|
|
|
|
|
2011-07-27 00:09:40 -04:00
|
|
|
<!-- size at which Notification icons will be drawn in the status bar -->
|
|
|
|
<dimen name="status_bar_icon_drawing_size">18dip</dimen>
|
|
|
|
|
|
|
|
<!-- opacity at which Notification icons will be drawn in the status bar -->
|
2013-09-06 18:26:55 -04:00
|
|
|
<item type="dimen" name="status_bar_icon_drawing_alpha">75%</item>
|
2011-07-29 16:30:49 -04:00
|
|
|
|
|
|
|
<!-- gap on either side of status bar notification icons -->
|
|
|
|
<dimen name="status_bar_icon_padding">0dp</dimen>
|
2011-08-22 16:58:43 -07:00
|
|
|
|
2012-05-10 00:33:54 -04:00
|
|
|
<!-- half the distance between notifications in the panel -->
|
2012-05-23 11:14:19 -04:00
|
|
|
<dimen name="notification_divider_height">3dp</dimen>
|
2011-08-25 14:35:53 -07:00
|
|
|
|
|
|
|
<!-- Notification drawer tuning parameters (phone UI) -->
|
|
|
|
<!-- Initial velocity of the shade when expanding on its own -->
|
|
|
|
<dimen name="self_expand_velocity">2000dp</dimen>
|
|
|
|
<!-- Initial velocity of the shade when collapsing on its own -->
|
|
|
|
<dimen name="self_collapse_velocity">2000dp</dimen>
|
|
|
|
<!-- Minimum final velocity of gestures interpreted as expand requests -->
|
2012-10-03 14:49:52 -04:00
|
|
|
<dimen name="fling_expand_min_velocity">100dp</dimen>
|
2011-08-25 14:35:53 -07:00
|
|
|
<!-- Minimum final velocity of gestures interpreted as collapse requests -->
|
2012-10-03 14:49:52 -04:00
|
|
|
<dimen name="fling_collapse_min_velocity">100dp</dimen>
|
2011-08-25 14:35:53 -07:00
|
|
|
<!-- Cap on contribution of x dimension of gesture to overall velocity -->
|
|
|
|
<dimen name="fling_gesture_max_x_velocity">200dp</dimen>
|
2012-06-11 16:07:52 -04:00
|
|
|
<!-- Cap on overall resulting fling speed (s^-1) -->
|
|
|
|
<dimen name="fling_gesture_max_output_velocity">3000dp</dimen>
|
2011-08-25 14:35:53 -07:00
|
|
|
|
2012-09-25 14:37:42 -04:00
|
|
|
<!-- Minimum distance a fling must travel (anti-jitter) -->
|
2012-10-03 14:49:52 -04:00
|
|
|
<dimen name="fling_gesture_min_dist">20dp</dimen>
|
2012-09-25 14:37:42 -04:00
|
|
|
|
2011-08-25 14:35:53 -07:00
|
|
|
<!-- Minimum fraction of the display a gesture must travel, at any velocity, to qualify as a
|
|
|
|
collapse request -->
|
|
|
|
<item type="dimen" name="collapse_min_display_fraction">10%</item>
|
|
|
|
<!-- Minimum fraction of the display a gesture must travel to qualify as an expand request -->
|
|
|
|
<item type="dimen" name="expand_min_display_fraction">50%</item>
|
|
|
|
|
|
|
|
<!-- Initial acceleration of an expand animation after fling -->
|
|
|
|
<dimen name="expand_accel">2000dp</dimen>
|
|
|
|
<!-- Initial acceleration of an collapse animation after fling -->
|
|
|
|
<dimen name="collapse_accel">2000dp</dimen>
|
|
|
|
|
2011-10-17 10:26:28 -07:00
|
|
|
<!-- The padding on the global screenshot background image -->
|
2011-10-20 19:44:32 -07:00
|
|
|
<dimen name="global_screenshot_bg_padding">20dp</dimen>
|
2011-10-17 10:26:28 -07:00
|
|
|
|
2012-03-07 15:48:51 -08:00
|
|
|
<!-- The width of the view containing non-menu status bar icons -->
|
|
|
|
<dimen name="navigation_key_width">80dip</dimen>
|
|
|
|
|
|
|
|
<!-- The width of the view containing the menu status bar icon -->
|
|
|
|
<dimen name="navigation_menu_key_width">40dip</dimen>
|
2012-04-06 17:10:57 -07:00
|
|
|
|
2012-06-13 17:38:14 -07:00
|
|
|
<!-- Default distance beyond which snaps to the matching target -->
|
|
|
|
<dimen name="navbar_search_snap_margin">40dip</dimen>
|
2012-04-06 17:10:57 -07:00
|
|
|
|
|
|
|
<!-- Diameter of outer shape drawable shown in navbar search-->
|
2012-05-15 20:46:03 -07:00
|
|
|
<dimen name="navbar_search_outerring_diameter">340dp</dimen>
|
2012-04-27 17:33:44 -07:00
|
|
|
|
2012-06-11 21:06:13 -07:00
|
|
|
<!-- Diameter of outer shape drawable shown in navbar search. Should be 1/2 of above value -->
|
|
|
|
<dimen name="navbar_search_outerring_radius">170dp</dimen>
|
|
|
|
|
2012-04-27 17:33:44 -07:00
|
|
|
<!-- Threshold for swipe-up gesture to activate search dialog -->
|
2012-05-15 20:46:03 -07:00
|
|
|
<dimen name="navbar_search_up_threshhold">40dip</dimen>
|
2012-04-27 17:33:44 -07:00
|
|
|
|
|
|
|
<!-- Height of search panel including navigation bar height -->
|
|
|
|
<dimen name="navbar_search_panel_height">230dip</dimen>
|
2012-04-06 17:10:57 -07:00
|
|
|
|
2012-04-30 12:07:30 -04:00
|
|
|
<!-- Height of the draggable handle at the bottom of the phone notification panel -->
|
2012-09-27 14:46:58 -04:00
|
|
|
<dimen name="close_handle_height">36dp</dimen>
|
2012-05-08 13:56:44 -04:00
|
|
|
|
2012-09-27 14:46:58 -04:00
|
|
|
<!-- Amount of close_handle that will NOT overlap the notification list -->
|
|
|
|
<dimen name="close_handle_underlap">32dp</dimen>
|
2012-05-08 13:56:44 -04:00
|
|
|
|
|
|
|
<!-- Height of the notification panel header bar -->
|
|
|
|
<dimen name="notification_panel_header_height">48dp</dimen>
|
|
|
|
|
2012-05-17 00:44:59 -04:00
|
|
|
<!-- Extra space above the panel -->
|
2012-06-05 13:44:14 -04:00
|
|
|
<dimen name="notification_panel_padding_top">0dp</dimen>
|
2012-05-08 13:56:44 -04:00
|
|
|
|
2012-05-17 00:44:59 -04:00
|
|
|
<!-- Extra space above the clock in the panel -->
|
2012-05-08 13:56:44 -04:00
|
|
|
<dimen name="notification_panel_header_padding_top">0dp</dimen>
|
2012-05-02 15:07:51 -04:00
|
|
|
|
2012-04-27 17:33:44 -07:00
|
|
|
<!-- Layout parameters for the notification panel -->
|
|
|
|
<dimen name="notification_panel_margin_bottom">0dp</dimen>
|
2012-05-02 15:07:51 -04:00
|
|
|
<dimen name="notification_panel_margin_left">0dp</dimen>
|
|
|
|
|
2012-08-15 00:09:26 -04:00
|
|
|
<!-- Gravity for the notification & quick settings panels -->
|
2012-05-02 15:07:51 -04:00
|
|
|
<!-- 0x37 = fill_horizontal|top -->
|
|
|
|
<integer name="notification_panel_layout_gravity">0x37</integer>
|
2012-08-15 00:09:26 -04:00
|
|
|
<integer name="settings_panel_layout_gravity">0x37</integer>
|
2012-06-05 13:44:14 -04:00
|
|
|
|
2012-09-25 01:21:12 -04:00
|
|
|
<!-- Fraction of the status bar that, when dragged, will produce the quick settings panel
|
|
|
|
instead of the notification panel. See also @dimen/settings_panel_dragzone_min.
|
|
|
|
If zero, the settings panel will not be directly draggable from the status bar. -->
|
|
|
|
<item type="dimen" name="settings_panel_dragzone_fraction">0%</item>
|
|
|
|
|
|
|
|
<!-- Quick settings dragzone, if used, should be at least this big (may be zero). -->
|
|
|
|
<dimen name="settings_panel_dragzone_min">100dp</dimen>
|
2012-08-24 11:50:55 -04:00
|
|
|
|
2012-06-05 13:44:14 -04:00
|
|
|
<!-- Height of the carrier/wifi name label -->
|
|
|
|
<dimen name="carrier_label_height">24dp</dimen>
|
2012-06-15 16:51:54 -04:00
|
|
|
|
2012-09-11 15:18:47 -04:00
|
|
|
<!-- The distance you can pull a notification before it pops open -->
|
2012-08-01 17:03:07 -04:00
|
|
|
<dimen name="one_finger_pop_limit">32dp</dimen>
|
2012-09-05 17:34:41 -07:00
|
|
|
|
|
|
|
<!-- The fixed height of each tile -->
|
|
|
|
<dimen name="quick_settings_cell_height">110dp</dimen>
|
|
|
|
|
|
|
|
<!-- The padding between each tile within the QuickSettings layout -->
|
2012-09-24 11:24:28 -07:00
|
|
|
<dimen name="quick_settings_cell_gap">4dp</dimen>
|
2012-09-05 17:34:41 -07:00
|
|
|
|
2012-09-28 12:22:27 -04:00
|
|
|
<!-- Minimum fraction of the screen that should be taken up by the notification panel.
|
|
|
|
Not used at this screen size. -->
|
|
|
|
<item type="dimen" name="notification_panel_min_height_frac">0%</item>
|
2012-09-11 15:18:47 -04:00
|
|
|
|
|
|
|
<dimen name="blinds_pop_threshold">32dp</dimen>
|
|
|
|
|
|
|
|
<!-- The size of the gesture span needed to activate the "pull" notification expansion -->
|
|
|
|
<dimen name="pull_span_min">25dp</dimen>
|
2012-10-16 21:30:28 -04:00
|
|
|
|
|
|
|
<!-- How far to slide the panel out when you touch it -->
|
|
|
|
<!-- For phones, this is close_handle_height + header_height -->
|
|
|
|
<dimen name="peek_height">84dp</dimen>
|
2013-04-12 15:16:53 -04:00
|
|
|
|
|
|
|
<!-- Quick Settings tile geometry: top interior margin, above icon -->
|
|
|
|
<dimen name="qs_tile_margin_above_icon">27dp</dimen>
|
|
|
|
<!-- Quick Settings tile geometry: gap between icon and text -->
|
|
|
|
<dimen name="qs_tile_margin_below_icon">17dp</dimen>
|
|
|
|
<!-- Quick Settings tile geometry: icon size -->
|
|
|
|
<dimen name="qs_tile_icon_size">32dp</dimen>
|
2013-09-17 19:23:59 -04:00
|
|
|
<!-- Quick Settings CA Cert Warning tile geometry: gap between icon and text -->
|
|
|
|
<dimen name="qs_cawarn_tile_margin_below_icon">3dp</dimen>
|
2013-08-02 12:03:02 -04:00
|
|
|
|
|
|
|
<!-- The width of the notification panel window: match_parent below sw600dp -->
|
|
|
|
<dimen name="notification_panel_width">-1dp</dimen>
|
2011-07-27 00:09:40 -04:00
|
|
|
</resources>
|