diff options
author | calderwoodra <calderwoodra@google.com> | 2018-02-02 15:25:37 -0800 |
---|---|---|
committer | Copybara-Service <copybara-piper@google.com> | 2018-02-02 17:26:03 -0800 |
commit | 4144a8fa37856a339c52f0fa52246b88755656ad (patch) | |
tree | 773966fcdd18e4cdbae8ffeb76342750f3fa55ff /java/com/android/dialer/main/impl/res/values | |
parent | a0bd92e4873b22353d96b0752a29562fd243634e (diff) |
Implemented multiselect in NUI for VisualVoicemailFragment.
This solution has a couple hacks in it because the DialtactsActivity has a
non-support ActionBar and MainActivity has a support Toolbar. When multiselect
is implemented for NewVoicemailFragment, we should be careful to use support
action mode instead of non-support action mode so that the transitions and
styling are seamless and consistent.
Bug: 72722083
Test: manual
PiperOrigin-RevId: 184343414
Change-Id: Id16652de2d0add7b7c304d1cedb429fe9b1cf338
Diffstat (limited to 'java/com/android/dialer/main/impl/res/values')
-rw-r--r-- | java/com/android/dialer/main/impl/res/values/styles.xml | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/java/com/android/dialer/main/impl/res/values/styles.xml b/java/com/android/dialer/main/impl/res/values/styles.xml index 26f880dc4..2865f2587 100644 --- a/java/com/android/dialer/main/impl/res/values/styles.xml +++ b/java/com/android/dialer/main/impl/res/values/styles.xml @@ -22,5 +22,21 @@ <!-- Theme needed for DialpadFragment --> <item name="dialpad_style">@style/Dialpad.Light</item> + + <!-- Required for actionmode/multiselect to render properly. --> + <!-- TODO(calderwoodra): Check to see if we can remove this after NewVoicemailFragment launches --> + <item name="actionModeStyle">@style/ActionModeStyle</item> + <item name="actionBarTheme">@style/ThemeOverlay.AppCompat.Dark.ActionBar</item> + </style> + + <!-- Colors our actionbar in action mode to dialer theme color. --> + <style name="ActionModeStyle" parent="@style/Widget.AppCompat.ActionMode"> + <item name="background">@color/dialer_theme_color</item> + <item name="titleTextStyle">@style/ActionModeTitleTextStyle</item> + </style> + + <!-- Colors our actionbar text in action mode to dialer white text color. --> + <style name="ActionModeTitleTextStyle" parent="@style/TextAppearance.AppCompat.Widget.ActionMode.Title"> + <item name="android:textColor">@color/dialer_primary_text_color_white</item> </style> </resources> |