diff options
author | Petr Cermak <petrcermak@google.com> | 2018-01-29 10:36:07 +0000 |
---|---|---|
committer | Petr Cermak <petrcermak@google.com> | 2018-02-16 17:30:45 +0000 |
commit | 102431d5ebb138c1c0c6ebb4f5cae4032f7b41ad (patch) | |
tree | 908e75579dcd1640e3c65a78da5124194202b3cb /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | 1cfc06a1e501f60f2573306f48d6fcff3f85c237 (diff) |
Custom SmartReplyView layout
Implement SmartReplyView#onMeasure and SmartReplyView#onLayout according
to the redlines in go/p-notifications:
* Smart reply buttons can have at most 2 lines of text.
* Squeeze buttons to 2 lines of text when necessary to fit more
buttons.
* Don't show buttons which have more than 2 lines of text or don't fit
within the notification width.
* Update button background and text color.
Screenshot: https://screenshot.googleplex.com/cSM6Ve7qjb3.png
Bug: 67765414
Test: atest SmartReplyViewTest
Change-Id: Ia161c7f5669e7aef1b8c3480a8836784f0bde055
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions