summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI/res
diff options
context:
space:
mode:
authorJohn Spurlock <jspurlock@google.com>2014-08-07 03:55:07 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-08-05 00:35:13 +0000
commit3f14df5c9df0028f78d930d03d512d969236f0bc (patch)
tree207eb819cc5119ceec1eed92770ae9a9f939bc09 /packages/SystemUI/res
parent8f333f19222ac9415152e31f10e0df2b571b0b77 (diff)
parent7e6809ad643fa4a70cfb647191731c68f07789cd (diff)
downloadframeworks_base-3f14df5c9df0028f78d930d03d512d969236f0bc.zip
frameworks_base-3f14df5c9df0028f78d930d03d512d969236f0bc.tar.gz
frameworks_base-3f14df5c9df0028f78d930d03d512d969236f0bc.tar.bz2
Merge "Common shade width across devices." into lmp-dev
Diffstat (limited to 'packages/SystemUI/res')
-rw-r--r--packages/SystemUI/res/layout/heads_up.xml6
-rw-r--r--packages/SystemUI/res/layout/status_bar_expanded.xml4
-rw-r--r--packages/SystemUI/res/layout/status_bar_expanded_header.xml3
-rw-r--r--packages/SystemUI/res/layout/volume_dialog.xml4
-rw-r--r--packages/SystemUI/res/values-land/config.xml3
-rw-r--r--packages/SystemUI/res/values-land/dimens.xml5
-rw-r--r--packages/SystemUI/res/values-sw600dp/config.xml3
-rw-r--r--packages/SystemUI/res/values-sw600dp/dimens.xml12
-rw-r--r--packages/SystemUI/res/values-sw600dp/styles.xml11
-rw-r--r--packages/SystemUI/res/values-sw720dp/dimens.xml4
-rw-r--r--packages/SystemUI/res/values/dimens.xml12
-rw-r--r--packages/SystemUI/res/values/styles.xml11
12 files changed, 26 insertions, 52 deletions
diff --git a/packages/SystemUI/res/layout/heads_up.xml b/packages/SystemUI/res/layout/heads_up.xml
index 0e2b6d6..650ee5d 100644
--- a/packages/SystemUI/res/layout/heads_up.xml
+++ b/packages/SystemUI/res/layout/heads_up.xml
@@ -14,6 +14,7 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
+<!-- extends FrameLayout -->
<com.android.systemui.statusbar.policy.HeadsUpNotificationView
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="match_parent"
@@ -21,11 +22,12 @@
android:background="@drawable/heads_up_scrim">
<FrameLayout
+ android:layout_width="@dimen/notification_panel_width"
android:layout_height="wrap_content"
+ android:layout_gravity="@integer/notification_panel_layout_gravity"
android:paddingStart="@dimen/notification_side_padding"
android:paddingEnd="@dimen/notification_side_padding"
android:elevation="8dp"
- android:id="@+id/content_holder"
- style="@style/NotificationsQuickSettings" />
+ android:id="@+id/content_holder" />
</com.android.systemui.statusbar.policy.HeadsUpNotificationView> \ No newline at end of file
diff --git a/packages/SystemUI/res/layout/status_bar_expanded.xml b/packages/SystemUI/res/layout/status_bar_expanded.xml
index fa1077b..fc2dc02 100644
--- a/packages/SystemUI/res/layout/status_bar_expanded.xml
+++ b/packages/SystemUI/res/layout/status_bar_expanded.xml
@@ -55,7 +55,9 @@
android:visibility="invisible" />
<com.android.systemui.statusbar.phone.NotificationsQuickSettingsContainer
- style="@style/NotificationsQuickSettings"
+ android:layout_width="@dimen/notification_panel_width"
+ android:layout_height="match_parent"
+ android:layout_gravity="@integer/notification_panel_layout_gravity"
android:id="@+id/notification_container_parent"
android:clipToPadding="false"
android:clipChildren="false">
diff --git a/packages/SystemUI/res/layout/status_bar_expanded_header.xml b/packages/SystemUI/res/layout/status_bar_expanded_header.xml
index 1afde69..688a88c 100644
--- a/packages/SystemUI/res/layout/status_bar_expanded_header.xml
+++ b/packages/SystemUI/res/layout/status_bar_expanded_header.xml
@@ -20,8 +20,9 @@
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui"
android:id="@+id/header"
- style="@style/StatusBarHeader"
+ android:layout_width="@dimen/notification_panel_width"
android:layout_height="@dimen/status_bar_header_height"
+ android:layout_gravity="@integer/notification_panel_layout_gravity"
android:paddingStart="@dimen/notification_side_padding"
android:paddingEnd="@dimen/notification_side_padding"
android:baselineAligned="false"
diff --git a/packages/SystemUI/res/layout/volume_dialog.xml b/packages/SystemUI/res/layout/volume_dialog.xml
index 112f3a9..3765fe8 100644
--- a/packages/SystemUI/res/layout/volume_dialog.xml
+++ b/packages/SystemUI/res/layout/volume_dialog.xml
@@ -15,8 +15,10 @@
limitations under the License.
-->
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_width="@dimen/volume_panel_width"
+ android:layout_width="match_parent"
android:layout_height="wrap_content"
+ android:layout_marginLeft="@dimen/notification_side_padding"
+ android:layout_marginRight="@dimen/notification_side_padding"
android:background="@drawable/qs_background_primary"
android:translationZ="@dimen/volume_panel_z"
android:layout_marginBottom="@dimen/volume_panel_z">
diff --git a/packages/SystemUI/res/values-land/config.xml b/packages/SystemUI/res/values-land/config.xml
index 5755029..2b1a4dc 100644
--- a/packages/SystemUI/res/values-land/config.xml
+++ b/packages/SystemUI/res/values-land/config.xml
@@ -24,9 +24,6 @@
value at runtime for some things) -->
<integer name="status_bar_recents_bg_gradient_degrees">90</integer>
- <!-- The number of columns in the QuickSettings -->
- <integer name="quick_settings_num_columns">4</integer>
-
<!-- The maximum number of rows in the QuickSettings -->
<integer name="quick_settings_max_rows">2</integer>
diff --git a/packages/SystemUI/res/values-land/dimens.xml b/packages/SystemUI/res/values-land/dimens.xml
index 42c4392..9b772bd 100644
--- a/packages/SystemUI/res/values-land/dimens.xml
+++ b/packages/SystemUI/res/values-land/dimens.xml
@@ -41,6 +41,7 @@
<!-- The side padding for the task stack as a percentage of the width. -->
<item name="recents_stack_width_padding_percentage" format="float" type="dimen">0.2229</item>
- <!-- Width of the zen mode interstitial dialog. -->
- <dimen name="zen_mode_dialog_width">384dp</dimen>
+ <!-- Standard notification width + gravity -->
+ <dimen name="notification_panel_width">@dimen/standard_notification_panel_width</dimen>
+ <integer name="notification_panel_layout_gravity">@integer/standard_notification_panel_layout_gravity</integer>
</resources>
diff --git a/packages/SystemUI/res/values-sw600dp/config.xml b/packages/SystemUI/res/values-sw600dp/config.xml
index 9f4c364..4f6d209 100644
--- a/packages/SystemUI/res/values-sw600dp/config.xml
+++ b/packages/SystemUI/res/values-sw600dp/config.xml
@@ -20,9 +20,6 @@
<!-- These resources are around just to allow their values to be customized
for different hardware and product builds. -->
<resources>
- <!-- The number of columns in the QuickSettings -->
- <integer name="quick_settings_num_columns">4</integer>
-
<!-- The maximum number of rows in the QuickSettings -->
<integer name="quick_settings_max_rows">4</integer>
diff --git a/packages/SystemUI/res/values-sw600dp/dimens.xml b/packages/SystemUI/res/values-sw600dp/dimens.xml
index 6beccc5..2d82d6e 100644
--- a/packages/SystemUI/res/values-sw600dp/dimens.xml
+++ b/packages/SystemUI/res/values-sw600dp/dimens.xml
@@ -16,12 +16,9 @@
*/
-->
<resources>
- <!-- The width of the notification panel window: 400 + 16 + 16 (padding in the bg drawable) -->
- <dimen name="notification_panel_width">432dp</dimen>
-
- <!-- Gravity for the notification panel -->
- <!-- 0x31 = top|center_horizontal -->
- <integer name="notification_panel_layout_gravity">0x31</integer>
+ <!-- Standard notification width + gravity -->
+ <dimen name="notification_panel_width">@dimen/standard_notification_panel_width</dimen>
+ <integer name="notification_panel_layout_gravity">@integer/standard_notification_panel_layout_gravity</integer>
<!-- Diameter of outer shape drawable shown in navbar search-->
<dimen name="navbar_search_outerring_diameter">430dip</dimen>
@@ -49,9 +46,6 @@
<!-- The side padding for the task stack as a percentage of the width. -->
<item name="recents_stack_width_padding_percentage" format="float" type="dimen">0.075</item>
- <!-- Width of the zen mode interstitial dialog. -->
- <dimen name="zen_mode_dialog_width">384dp</dimen>
-
<!-- The fraction of the screen height where the clock on the Keyguard has its center. The
max value is used when no notifications are displaying, and the min value is when the
highest possible number of notifications are showing. -->
diff --git a/packages/SystemUI/res/values-sw600dp/styles.xml b/packages/SystemUI/res/values-sw600dp/styles.xml
index 88372bc..5daf08e 100644
--- a/packages/SystemUI/res/values-sw600dp/styles.xml
+++ b/packages/SystemUI/res/values-sw600dp/styles.xml
@@ -19,17 +19,6 @@
<item name="android:layout_width">480dp</item>
</style>
- <style name="NotificationsQuickSettings">
- <item name="android:layout_width">@dimen/notification_panel_width</item>
- <item name="android:layout_height">match_parent</item>
- <item name="android:layout_gravity">top|center_horizontal</item>
- </style>
-
- <style name="StatusBarHeader">
- <item name="android:layout_width">@dimen/notification_panel_width</item>
- <item name="android:layout_gravity">center_horizontal</item>
- </style>
-
<style name="SearchPanelCard">
<item name="android:layout_width">550dp</item>
<item name="android:layout_height">@dimen/search_panel_card_height</item>
diff --git a/packages/SystemUI/res/values-sw720dp/dimens.xml b/packages/SystemUI/res/values-sw720dp/dimens.xml
index 7695b12..3cd5f67 100644
--- a/packages/SystemUI/res/values-sw720dp/dimens.xml
+++ b/packages/SystemUI/res/values-sw720dp/dimens.xml
@@ -22,12 +22,8 @@
be situations where they don't sync up perfectly with PhoneStatusBar. -->
<!-- ======================================== -->
- <!-- The width of the ticker, including the icon -->
- <dimen name="notification_ticker_width">360dp</dimen>
<!-- gap on either side of status bar notification icons -->
<dimen name="status_bar_icon_padding">1dp</dimen>
- <!-- The width of the notification panel window -->
- <dimen name="notification_panel_width">512dp</dimen>
<!-- The minimum height of the notification panel window -->
<dimen name="notification_panel_min_height">770dp</dimen>
<!-- Bottom margin (from display edge) for status bar panels -->
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>
diff --git a/packages/SystemUI/res/values/styles.xml b/packages/SystemUI/res/values/styles.xml
index 197c0f1..fc66730 100644
--- a/packages/SystemUI/res/values/styles.xml
+++ b/packages/SystemUI/res/values/styles.xml
@@ -254,16 +254,7 @@
<item name="android:colorControlActivated">@color/system_accent_color</item>
</style>
- <style name="NotificationsQuickSettings">
- <item name="android:layout_width">match_parent</item>
- <item name="android:layout_height">match_parent</item>
- </style>
-
- <style name="StatusBarHeader">
- <item name="android:layout_width">match_parent</item>
- </style>
-
- <style name="QSBorderlessButton">
+ <style name="QSBorderlessButton">
<item name="android:padding">12dp</item>
<item name="android:background">@drawable/btn_borderless_rect</item>
<item name="android:gravity">center</item>