summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI/res/values/dimens.xml
diff options
context:
space:
mode:
authorJohn Spurlock <jspurlock@google.com>2014-08-06 16:03:14 -0400
committerJohn Spurlock <jspurlock@google.com>2014-08-06 23:33:53 -0400
commit7e6809ad643fa4a70cfb647191731c68f07789cd (patch)
tree22cf7a75674ed5782f409e34cee77257cd1edb03 /packages/SystemUI/res/values/dimens.xml
parent7c7bc7f6917484250974c5da00af9ef756844b0a (diff)
downloadframeworks_base-7e6809ad643fa4a70cfb647191731c68f07789cd.zip
frameworks_base-7e6809ad643fa4a70cfb647191731c68f07789cd.tar.gz
frameworks_base-7e6809ad643fa4a70cfb647191731c68f07789cd.tar.bz2
Common shade width across devices.
Use 400dp as the visual width of the shade across all devices and orientations, except small device portrait. Since the width is now dynamic across orientations, update the necessary views in SystemUI on rotate. Remove obsolete styles + resources. Set max QS columns to 3 on all devices, due to the newer shade width. Bug:16825515 Change-Id: Iff171549a79bc318a4d585a2d9ea2af9bc686922
Diffstat (limited to 'packages/SystemUI/res/values/dimens.xml')
-rw-r--r--packages/SystemUI/res/values/dimens.xml12
1 files changed, 7 insertions, 5 deletions
diff --git a/packages/SystemUI/res/values/dimens.xml b/packages/SystemUI/res/values/dimens.xml
index efddc62..11a8063 100644
--- a/packages/SystemUI/res/values/dimens.xml
+++ b/packages/SystemUI/res/values/dimens.xml
@@ -136,9 +136,14 @@
<!-- Height of the status bar header bar when on Keyguard -->
<dimen name="status_bar_header_height_keyguard">40dp</dimen>
+ <!-- Width for the notification panel and related windows -->
+ <dimen name="match_parent">-1px</dimen>
+ <dimen name="standard_notification_panel_width">416dp</dimen><!-- includes notification_side_padding on each side -->
+ <dimen name="notification_panel_width">@dimen/match_parent</dimen>
+
<!-- Gravity for the notification panel -->
- <!-- 0x37 = fill_horizontal|top -->
- <integer name="notification_panel_layout_gravity">0x37</integer>
+ <integer name="standard_notification_panel_layout_gravity">0x31</integer><!-- top|center_horizontal -->
+ <integer name="notification_panel_layout_gravity">0x37</integer><!-- fill_horizontal|top -->
<!-- Height of the carrier/wifi name label -->
<dimen name="carrier_label_height">24dp</dimen>
@@ -269,9 +274,6 @@
<!-- The height of the speed bump view. -->
<dimen name="speed_bump_height">16dp</dimen>
- <!-- Width of the zen mode interstitial dialog. -->
- <dimen name="zen_mode_dialog_width">320dp</dimen>
-
<!-- Lockscreen affordance drag distance for camera and phone. -->
<dimen name="affordance_drag_distance">100dp</dimen>