summaryrefslogtreecommitdiff
path: root/core/java/android/view/NotificationTopLineView.java
Commit message (Collapse)AuthorAgeFilesLines
* New MediaStyle template:Jeff DeCew2021-03-221-45/+120
| | | | | | | | | | | | | | * Remove all media-specific color extraction and colorization logic * Remove all 'large icon' gradienting logic * Simplify base (headerless) style to use a LinearLayout instead of tweaking margins * Make compact media layout a tweak of the base (headerless) layout * Make big_media layout a tweak of the big_base layout * Fix an unnecessary swooping animation that happened on expand * Ensure RTL layout also works Fixes: 172652345 Test: manual testing w/ updated notify2 Change-Id: I11c1494c0ac32aaf3e9d2010560cc8f1d8c50037
* Prioritize ContentTitle over the SubTextJeff DeCew2020-11-201-27/+25
| | | | | | | | Previously, we shrunk the title to a minimum width, then showed the subtext with the remaining space. This felt like a poor balance, where we'd rather get as much of the title as possible. Bug: 163626038 Test: manual - using Notify's drag resizing was really helpful Change-Id: I8045cb473cbb42f04e3054fb40bda2ac427e693e
* Fix the placement of the work profile and feedback badges.Jeff DeCew2020-11-131-34/+8
| | | | | | | | | | | | | * Removed some dead code from NotificationTopLineView * Icons appear left-aligned, as they do with conversations * Fixed the order (also with conversations) to ensure that the 'alerted' icon disappearing doesn't cause movement (at least when the header text fits; otherwise some amount of movement is unavoidable). Bug: 163626038 Test: manual Change-Id: I8e19dd504f8c861f752cd2705048f015ab0e3106
* Notification template redesign; part 1.Jeff DeCew2020-11-131-4/+21
| | | | | | | | | | | | | | | | Known issues: * Sub-par dyson animation * Sub-par animation of text in the title * Notification height limits not yet adjusted * Decorated custom view height limits not yet updated * HUNs may need to get their own headerless template * Messaging style notifications are not yet headerless * Possible [de]colorization bug for grouped icons * Some notifications still not always expandable Bug: 163626038 Test: Manual, visual testing Change-Id: I9e7e2fd689938a13e042c8f6319bd7d0d2252781
* NotificationTopLineView supports layout_height="wrap_content"Jeff DeCew2020-10-281-2/+6
| | | | | | Test: atest SystemUITests Test: manually tested within my branch which does this Change-Id: I78412489be7723697d8dc3106dbb4d67fd72a3a0
* Respect the gravity of the NotificationTopLineView.Jeff DeCew2020-10-281-4/+70
| | | | | | Test: atest SystemUITests Test: manually tested within my branch with new templates Change-Id: I57a12287f1ce712914f985cc0de4df7613c18164
* Split NotificationHeaderView's text content into NotificationTopLineViewJeff DeCew2020-10-231-0/+344
Test: atest SystemUITests Test: manual testing of various notification types Change-Id: I80173501b2c5902bab83c2f620daabbd943fc473