diff options
| author | 2024-01-25 13:40:31 -0500 | |
|---|---|---|
| committer | 2024-01-31 13:45:26 -0500 | |
| commit | 4c7ac16f4d28e65cd01b674fd363c756d0e7d5da (patch) | |
| tree | cf7c9c4c17f595304aa71691a431b3ef7bee2ee4 /libs/androidfw/StringPool.cpp | |
| parent | bc8b60435b61b517ead6111ad8818941ec79e445 (diff) | |
CallStyle: Center icon with label on action buttons
When NotificationActionListLayout stretches action buttons to fit their
share of the available width, TextView centers the *label* but leaves
the *icon* at the start edge of the button.
We'd like the icon and the label to be centered together, so add a
"glue" method that will include the icon in the label as an ImageSpan.
Use it in Notification.CallStyle to fulfill the new CallStyle action
button layout.
Bug: 268733030
Test: manual; sUseNewActionLayout = true, post CallStyle with Notify2
Change-Id: Idb3fdff9a968cd9d95baafc6ca43f3aacba84d24
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions