diff options
author | Jorim Jaggi <jjaggi@google.com> | 2014-05-11 15:14:16 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-05-11 15:14:16 +0000 |
commit | 80d0756be2fdc6af3add97792b0ebcf9ec3d93b3 (patch) | |
tree | 95d827c76da55f2b4aaaddee67d775b264f5b011 /packages/SystemUI/res | |
parent | fd7d1ae9c249edccbefc2b4c616f95fa462aa95d (diff) | |
parent | 76aaef537a83486134a8118331b70854fbdecc3e (diff) | |
download | frameworks_base-80d0756be2fdc6af3add97792b0ebcf9ec3d93b3.zip frameworks_base-80d0756be2fdc6af3add97792b0ebcf9ec3d93b3.tar.gz frameworks_base-80d0756be2fdc6af3add97792b0ebcf9ec3d93b3.tar.bz2 |
am 1fc9180b: Fix measure performance of whole status bar window #2.
* commit '1fc9180b3437a028085d165de54d0ff8a15919af':
Fix measure performance of whole status bar window #2.
Diffstat (limited to 'packages/SystemUI/res')
-rw-r--r-- | packages/SystemUI/res/layout/heads_up.xml | 2 | ||||
-rw-r--r-- | packages/SystemUI/res/layout/status_bar_expanded.xml | 4 | ||||
-rw-r--r-- | packages/SystemUI/res/layout/super_status_bar.xml | 4 | ||||
-rw-r--r-- | packages/SystemUI/res/values-sw600dp/styles.xml | 6 | ||||
-rw-r--r-- | packages/SystemUI/res/values/dimens.xml | 3 | ||||
-rw-r--r-- | packages/SystemUI/res/values/styles.xml | 6 |
6 files changed, 16 insertions, 9 deletions
diff --git a/packages/SystemUI/res/layout/heads_up.xml b/packages/SystemUI/res/layout/heads_up.xml index e4954e7..7d9cfa1 100644 --- a/packages/SystemUI/res/layout/heads_up.xml +++ b/packages/SystemUI/res/layout/heads_up.xml @@ -20,7 +20,7 @@ <com.android.systemui.statusbar.policy.HeadsUpNotificationView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_height="wrap_content" - android:layout_width="@dimen/notification_panel_width" + android:layout_width="match_parent" android:id="@+id/content_holder" android:background="@drawable/notification_panel_bg" />
\ 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 d36f692..56c0e10 100644 --- a/packages/SystemUI/res/layout/status_bar_expanded.xml +++ b/packages/SystemUI/res/layout/status_bar_expanded.xml @@ -22,7 +22,7 @@ xmlns:android="http://schemas.android.com/apk/res/android" xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui" android:id="@+id/notification_panel" - android:layout_width="0dp" + android:layout_width="match_parent" android:layout_height="match_parent" > @@ -52,7 +52,7 @@ <com.android.systemui.statusbar.phone.NotificationsQuickSettingsContainer android:id="@+id/notification_container_parent" android:layout_width="match_parent" - android:layout_height="wrap_content" + android:layout_height="match_parent" android:clipToPadding="false" android:clipChildren="false"> diff --git a/packages/SystemUI/res/layout/super_status_bar.xml b/packages/SystemUI/res/layout/super_status_bar.xml index e95f3c3..f7cd37c 100644 --- a/packages/SystemUI/res/layout/super_status_bar.xml +++ b/packages/SystemUI/res/layout/super_status_bar.xml @@ -35,9 +35,7 @@ android:layout_width="match_parent" android:layout_height="match_parent" > <include layout="@layout/status_bar_expanded" - android:layout_width="@dimen/notification_panel_width" - android:layout_height="match_parent" - android:layout_gravity="start|top" + style="@style/StatusBarExpanded" android:visibility="gone" /> </com.android.systemui.statusbar.phone.PanelHolder> diff --git a/packages/SystemUI/res/values-sw600dp/styles.xml b/packages/SystemUI/res/values-sw600dp/styles.xml index b7becac..1ea9442 100644 --- a/packages/SystemUI/res/values-sw600dp/styles.xml +++ b/packages/SystemUI/res/values-sw600dp/styles.xml @@ -18,4 +18,10 @@ <style name="BrightnessDialogContainer" parent="@style/BaseBrightnessDialogContainer"> <item name="android:layout_width">480dp</item> </style> + + <style name="StatusBarExpanded"> + <item name="android:layout_width">@dimen/notification_panel_width</item> + <item name="android:layout_height">match_parent</item> + <item name="android:layout_gravity">start|top</item> + </style> </resources> diff --git a/packages/SystemUI/res/values/dimens.xml b/packages/SystemUI/res/values/dimens.xml index f330b8e..4810575 100644 --- a/packages/SystemUI/res/values/dimens.xml +++ b/packages/SystemUI/res/values/dimens.xml @@ -199,9 +199,6 @@ <!-- Quick Settings CA Cert Warning tile geometry: gap between icon and text --> <dimen name="qs_cawarn_tile_margin_below_icon">3dp</dimen> - <!-- The width of the notification panel window: match_parent below sw600dp --> - <dimen name="notification_panel_width">-1dp</dimen> - <!-- used by DessertCase --> <dimen name="dessert_case_cell_size">192dp</dimen> diff --git a/packages/SystemUI/res/values/styles.xml b/packages/SystemUI/res/values/styles.xml index 8ab646d..6608c5d 100644 --- a/packages/SystemUI/res/values/styles.xml +++ b/packages/SystemUI/res/values/styles.xml @@ -171,4 +171,10 @@ <style name="systemui_theme" parent="@android:style/Theme.DeviceDefault" /> + <style name="StatusBarExpanded"> + <item name="android:layout_width">match_parent</item> + <item name="android:layout_height">match_parent</item> + <item name="android:layout_gravity">start|top</item> + </style> + </resources> |