OSDN Git Service

Improved collapsed messaging notifications
authorSelim Cinek <cinek@google.com>
Wed, 8 Feb 2017 22:10:03 +0000 (14:10 -0800)
committerSelim Cinek <cinek@google.com>
Wed, 8 Feb 2017 23:00:17 +0000 (15:00 -0800)
commit64aed1a21bfbf0ffbc75b20c67232174995e8803
tree432261da021cb63029ab4860886b400e5b5e6c12
parent1b7ea1813d941c28195804b360811c310a2e0cc4
Improved collapsed messaging notifications

Previously the messaging layout was working on a fixed
Height, which didn't scale well as we were now using it
also in the collapsed version.
For big text notifications, the view would be
clipped ugly, since we were using a fixed number of
lines. Instead we're now calculating this dynamically.

Fixes: 35126759
Test: runtest systemui
Change-Id: Ie3736d807d7a162ee51ad65794bf2f1cfb2248be
core/java/android/app/Notification.java
core/java/com/android/internal/widget/ImageFloatingTextView.java
core/java/com/android/internal/widget/MessagingLinearLayout.java
core/res/res/layout/notification_template_material_big_text.xml
core/res/res/layout/notification_template_material_messaging.xml
core/res/res/values/attrs.xml