diff options
author | Daniel Sandler <dsandler@google.com> | 2011-06-04 00:32:50 -0400 |
---|---|---|
committer | Daniel Sandler <dsandler@google.com> | 2011-06-12 00:11:09 -0400 |
commit | d42497e516521891a9d6ffa0daab75ef016725f5 (patch) | |
tree | 812cff0e56348986695febbcb61630eb3e9bf84d /packages/SystemUI/res/layout | |
parent | 13010be779ba0ff2496709f15f862166d677b547 (diff) | |
download | frameworks_base-d42497e516521891a9d6ffa0daab75ef016725f5.zip frameworks_base-d42497e516521891a9d6ffa0daab75ef016725f5.tar.gz frameworks_base-d42497e516521891a9d6ffa0daab75ef016725f5.tar.bz2 |
Rebuilt notification list using a new custom layout.
This will allow what is currently impossible with
layoutTransition: smoothly animating container bounds.
Current enter animation: alpha fade
Current exit animation: fade + slide right
Change-Id: Ib46b2d3ee982a276ca2142d360e62538e52b0897
Next: replace "X" with swipe-to-cancel.
Diffstat (limited to 'packages/SystemUI/res/layout')
-rw-r--r-- | packages/SystemUI/res/layout/status_bar_expanded.xml | 14 | ||||
-rw-r--r-- | packages/SystemUI/res/layout/status_bar_notification_row.xml | 2 |
2 files changed, 10 insertions, 6 deletions
diff --git a/packages/SystemUI/res/layout/status_bar_expanded.xml b/packages/SystemUI/res/layout/status_bar_expanded.xml index 18e8273..6670eff 100644 --- a/packages/SystemUI/res/layout/status_bar_expanded.xml +++ b/packages/SystemUI/res/layout/status_bar_expanded.xml @@ -18,7 +18,9 @@ */ --> -<com.android.systemui.statusbar.phone.ExpandedView xmlns:android="http://schemas.android.com/apk/res/android" +<com.android.systemui.statusbar.phone.ExpandedView + xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui" android:orientation="vertical" android:focusable="true" android:descendantFocusability="afterDescendants" @@ -97,10 +99,11 @@ android:textAppearance="@style/TextAppearance.StatusBar.Title" android:text="@string/status_bar_ongoing_events_title" /> - <LinearLayout android:id="@+id/ongoingItems" + <com.android.systemui.statusbar.policy.NotificationRowLayout + android:id="@+id/ongoingItems" android:layout_width="match_parent" android:layout_height="wrap_content" - android:orientation="vertical" + systemui:rowHeight="@dimen/notification_height" /> <TextView android:id="@+id/latestTitle" @@ -111,10 +114,11 @@ android:textAppearance="@style/TextAppearance.StatusBar.Title" android:text="@string/status_bar_latest_events_title" /> - <LinearLayout android:id="@+id/latestItems" + <com.android.systemui.statusbar.policy.NotificationRowLayout + android:id="@+id/latestItems" android:layout_width="match_parent" android:layout_height="wrap_content" - android:orientation="vertical" + systemui:rowHeight="@dimen/notification_height" /> </LinearLayout> </ScrollView> diff --git a/packages/SystemUI/res/layout/status_bar_notification_row.xml b/packages/SystemUI/res/layout/status_bar_notification_row.xml index 8e456b2..93085d7 100644 --- a/packages/SystemUI/res/layout/status_bar_notification_row.xml +++ b/packages/SystemUI/res/layout/status_bar_notification_row.xml @@ -1,6 +1,6 @@ <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" - android:layout_height="65dp" + android:layout_height="@dimen/notification_height" > <ImageButton |