OSDN Git Service

Refactored the layout of a notifications
authorJorim Jaggi <jjaggi@google.com>
Mon, 28 Apr 2014 15:51:23 +0000 (17:51 +0200)
committerSelim Cinek <cinek@google.com>
Tue, 29 Apr 2014 20:42:55 +0000 (22:42 +0200)
commitbe565dfc1c17b7ddafa9753851b8f82849fd3f42
tree7e2724d918f03c282a8f75841e2b93030bc779ad
parent2e9c300b91d0da5e43e1ce8817fa6a41cbf27321
Refactored the layout of a notifications

Notifications now consist of ExpandableViews instead of SizeAdaptiveLayouts
to avoid layout passes during the resizing. The StackScrollAlgorithm and its
States are also refactored in order to support the new behaviour. In addition,
the generation of the outline is moved to the notification views instead of
the container which contains them.

Change-Id: I1ac1292a6520f5951610039bfa204c204be9d640
14 files changed:
packages/SystemUI/res/layout/status_bar_notification_keyguard_overflow.xml
packages/SystemUI/res/layout/status_bar_notification_row.xml
packages/SystemUI/src/com/android/systemui/ExpandHelper.java
packages/SystemUI/src/com/android/systemui/statusbar/ActivatableNotificationView.java
packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
packages/SystemUI/src/com/android/systemui/statusbar/ExpandableOutlineView.java [new file with mode: 0644]
packages/SystemUI/src/com/android/systemui/statusbar/ExpandableView.java [new file with mode: 0644]
packages/SystemUI/src/com/android/systemui/statusbar/NotificationContentView.java [new file with mode: 0644]
packages/SystemUI/src/com/android/systemui/statusbar/NotificationOverflowContainer.java
packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java
packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java
packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java
packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollState.java