1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 ~ Copyright (C) 2017 The Android Open Source Project 4 ~ 5 ~ Licensed under the Apache License, Version 2.0 (the "License"); 6 ~ you may not use this file except in compliance with the License. 7 ~ You may obtain a copy of the License at 8 ~ 9 ~ http://www.apache.org/licenses/LICENSE-2.0 10 ~ 11 ~ Unless required by applicable law or agreed to in writing, software 12 ~ distributed under the License is distributed on an "AS IS" BASIS, 13 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 ~ See the License for the specific language governing permissions and 15 ~ limitations under the License 16 --> 17<resources> 18 19 <!-- Activities should use this theme as their style --> 20 <style name="MainActivityTheme" parent="MainActivityThemeBase"/> 21 22 <style name="MainActivityTheme.Dark" parent="MainActivityTheme.Dark"/> 23 24 <!-- Used as a procy for values-v27/styles.xml --> 25 <style name="MainActivityThemeBase" parent="Dialer.ThemeBase.NoActionBar"> 26 <!-- Required for actionmode/multiselect to render properly. --> 27 <!-- TODO(a bug): Check to see if we can remove this after NewVoicemailFragment launches --> 28 <item name="actionModeStyle">@style/MainActionModeStyle</item> 29 <item name="actionBarTheme">@style/ThemeOverlay.AppCompat.Dark.ActionBar</item> 30 <item name="dialpad_style">@style/Dialpad.Themed</item> 31 </style> 32 33 <style name="MainActivityThemeBase.Dark" parent="Dialer.Dark.ThemeBase.NoActionBar"> 34 <!-- Required for actionmode/multiselect to render properly. --> 35 <!-- TODO(a bug): Check to see if we can remove this after NewVoicemailFragment launches --> 36 <item name="actionModeStyle">@style/MainActionModeStyle</item> 37 <item name="actionBarTheme">@style/ThemeOverlay.AppCompat.Dark.ActionBar</item> 38 <item name="dialpad_style">@style/Dialpad.Themed</item> 39 </style> 40 41 <!-- Colors our actionbar in action mode to dialer theme color. --> 42 <style name="MainActionModeStyle" parent="@style/Widget.AppCompat.ActionMode"> 43 <item name="background">?android:attr/colorPrimary</item> 44 <item name="titleTextStyle">@style/ActionModeTitleTextStyle</item> 45 </style> 46 47 <!-- Colors our actionbar text in action mode to dialer white text color. --> 48 <style name="ActionModeTitleTextStyle" parent="@style/TextAppearance.AppCompat.Widget.ActionMode.Title"> 49 <item name="android:textColor">?android:attr/textColorPrimary</item> 50 </style> 51</resources> 52