1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2009 The Android Open Source Project
3
4     Licensed under the Apache License, Version 2.0 (the "License");
5     you may not use this file except in compliance with the License.
6     You may obtain a copy of the License at
7
8          http://www.apache.org/licenses/LICENSE-2.0
9
10     Unless required by applicable law or agreed to in writing, software
11     distributed under the License is distributed on an "AS IS" BASIS,
12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13     See the License for the specific language governing permissions and
14     limitations under the License.
15-->
16<resources>
17
18    <style name="DetailActivityTheme" parent="@android:style/Theme.Holo.Light">
19        <item name="android:actionBarStyle">@style/ContactsActionBarStyle</item>
20        <item name="android:homeAsUpIndicator">@drawable/ic_menu_back</item>
21        <item name="android:actionOverflowButtonStyle">@style/ContactsActionBarOverflow</item>
22        <item name="android:actionBarItemBackground">@drawable/action_bar_item_background</item>
23        <item name="android:actionBarWidgetTheme">@style/ContactsActionBarTheme</item>
24        <item name="android:textColorPrimary">@color/primary_text_color</item>
25        <item name="android:textColorSecondary">@color/secondary_text_color</item>
26        <item name="android:listViewStyle">@style/ListViewStyle</item>
27    </style>
28
29    <style name="EditorActivityTheme" parent="@style/PeopleTheme">
30        <item name="android:listViewStyle">@style/ListViewStyle</item>
31        <item name="android:actionBarStyle">@style/EditorActionBarStyle</item>
32        <item name="android:colorButtonNormal">@color/background_primary</item>
33    </style>
34
35    <style name="Theme">
36    </style>
37
38    <style name="Theme.QuickContact" parent="@style/PeopleTheme">
39        <item name="android:windowBackground">@android:color/transparent</item>
40        <item name="android:colorBackgroundCacheHint">@null</item>
41        <item name="android:windowFrame">@null</item>
42        <item name="android:windowContentOverlay">@null</item>
43        <item name="android:windowAnimationStyle">@null</item>
44        <item name="android:windowIsFloating">false</item>
45        <item name="android:windowIsTranslucent">true</item>
46        <item name="android:windowNoTitle">true</item>
47        <item name="android:listViewStyle">@style/ListViewStyle</item>
48        <!-- We need to use a light ripple behind ActionBar items in order for them to
49             be visible when using some of the darker ActionBar tints -->
50        <item name="android:actionBarItemBackground">@drawable/item_background_material_borderless_dark</item>
51    </style>
52
53    <style name="PeopleTheme" parent="@android:style/Theme.Material.Light">
54        <item name="android:actionBarStyle">@style/ContactsActionBarStyle</item>
55        <!-- Style for the tab bar (for the divider between tabs) -->
56        <item name="android:actionBarTabBarStyle">@style/ContactsActionBarTabBarStyle</item>
57        <!-- Style for the tab bar text (for text on tabs) -->
58        <item name="android:actionBarTabTextStyle">@style/ContactsActionBarTabTextStyle</item>
59        <!--  Drawable for the back button -->
60        <item name="android:homeAsUpIndicator">@drawable/ic_back_arrow</item>
61        <!-- Style for the overflow button in the actionbar. -->
62        <item name="android:actionOverflowButtonStyle">@style/ContactsActionBarOverflowQP</item>
63        <item name="android:actionModeCloseDrawable">@drawable/ic_close_lt</item>
64        <item name="android:fastScrollThumbDrawable">@drawable/fastscroll_thumb</item>
65        <item name="android:fastScrollTrackDrawable">@null</item>
66        <item name="android:textColorPrimary">@color/primary_text_color</item>
67        <item name="android:textColorSecondary">@color/secondary_text_color</item>
68        <item name="android:icon">@android:color/transparent</item>
69        <item name="android:listViewStyle">@style/ListViewStyle</item>
70        <item name="android:windowBackground">@color/background_primary</item>
71        <item name="android:colorPrimaryDark">@color/primary_color_dark</item>
72        <item name="android:colorPrimary">@color/primary_color</item>
73        <item name="android:colorAccent">@color/primary_color</item>
74        <item name="android:alertDialogTheme">@style/ContactsAlertDialogTheme</item>
75        <item name="list_item_height">?android:attr/listPreferredItemHeight</item>
76        <item name="activated_background">@drawable/list_item_activated_background</item>
77        <item name="section_header_background">@drawable/list_title_holo</item>
78        <item name="list_section_header_height">24dip</item>
79        <item name="list_item_padding_top">
80            @dimen/contact_browser_list_item_padding_top_or_bottom
81        </item>
82        <item name="list_item_padding_right">32dp</item>
83        <item name="list_item_padding_bottom">
84            @dimen/contact_browser_list_item_padding_top_or_bottom
85        </item>
86        <item name="list_item_padding_left">16dip</item>
87        <item name="list_item_gap_between_image_and_text">
88            @dimen/contact_browser_list_item_gap_between_image_and_text
89        </item>
90        <item name="list_item_gap_between_label_and_data">5dip</item>
91        <item name="list_item_presence_icon_margin">4dip</item>
92        <item name="list_item_presence_icon_size">16dip</item>
93        <item name="list_item_photo_size">@dimen/contact_browser_list_item_photo_size</item>
94        <item name="list_item_profile_photo_size">70dip</item>
95        <item name="list_item_prefix_highlight_color">@color/people_app_theme_color</item>
96        <item name="list_item_background_color">@color/list_item_pinned_header_color</item>
97        <item name="list_item_header_text_color">@color/people_app_theme_color</item>
98        <item name="list_item_header_text_size">14sp</item>
99        <item name="list_item_header_height">30dip</item>
100        <item name="list_item_data_width_weight">5</item>
101        <item name="list_item_label_width_weight">3</item>
102        <item name="list_item_header_text_indent">8dip</item>
103        <item name="contact_browser_list_padding_left">0dip</item>
104        <item name="contact_browser_list_padding_right">0dip</item>
105        <item name="contact_browser_background">@color/background_primary</item>
106        <item name="list_item_text_indent">@dimen/contact_browser_list_item_text_indent</item>
107        <!-- Favorites -->
108        <item name="favorites_padding_bottom">0dip</item>
109    </style>
110
111    <style name="ContactsActionBarOverflow" parent="@android:style/Widget.Holo.ActionButton.Overflow">
112        <item name="android:src">@drawable/ic_overflow_menu</item>
113    </style>
114
115    <!-- Use the non-light style so that the up button & icons aren't black. If we use the
116         Light style, then it is impossible to tint the homeAsUp icon anything other than black -->
117    <style name="ContactsActionBarStyle" parent="@android:style/Widget.Material.ActionBar">
118        <item name="android:background">@color/actionbar_background_color</item>
119        <item name="android:titleTextStyle">@style/ContactsActionBarTitleText</item>
120        <item name="android:backgroundStacked">@color/actionbar_background_color</item>
121        <!-- Empty icon -->
122        <item name="android:icon">@android:color/transparent</item>
123    </style>
124
125    <style name="EditorActionBarStyle" parent="@style/ContactsActionBarStyle">
126        <!-- Do not use a contentInsetStart, since we are setting a custom ActionBar view -->
127        <item name="android:contentInsetStart">0dp</item>
128    </style>
129
130    <!-- When this style was added, android:toolbarStyle was private. Therefore, this style
131         must be directly applied to every toolbar -->
132    <style name="ContactsToolbarStyle" parent="@android:style/Widget.Toolbar">
133        <item name="android:titleTextAppearance">@style/ContactsActionBarTitleText</item>
134    </style>
135
136    <style name="ContactsPickerActionBarStyle" parent="@style/ContactsActionBarStyle">
137        <!-- when first loading, don't show title or up button -->
138        <item name="android:displayOptions"></item>
139    </style>
140
141    <style name="ContactPickerSearchTheme" parent="@style/PeopleTheme">
142        <item name="android:textColorPrimary">@android:color/white</item>
143        <item name="android:textColorHint">?android:textColorHintInverse</item>
144        <item name="android:colorControlActivated">?android:textColorHintInverse</item>
145        <item name="android:colorControlNormal">@android:color/white</item>
146    </style>
147
148    <!-- Text in the action bar at the top of the screen -->
149    <style name="ContactsActionBarTitleText"
150           parent="@android:style/TextAppearance.Material.Widget.ActionBar.Title">
151        <item name="android:textColor">@color/actionbar_text_color</item>
152    </style>
153
154    <!-- Styling for the tab bar; handles styling of the divider line. -->
155    <style name="ContactsActionBarTabBarStyle"
156           parent="@android:style/Widget.Material.ActionBar.TabBar">
157        <item name="android:showDividers">none</item>
158    </style>
159
160    <!-- Text style for tabs. -->
161    <style name="ContactsActionBarTabTextStyle"
162           parent="android:style/Widget.Material.Light.ActionBar.TabText">
163        <item name="android:textColor">@color/tab_text_color</item>
164        <item name="android:textSize">@dimen/tab_text_size</item>
165        <item name="android:fontFamily">@string/tab_font_family</item>
166        <item name="android:textStyle">bold</item>
167    </style>
168
169    <!-- Action bar overflow menu icon. -->
170    <style name="ContactsActionBarOverflowQP"
171           parent="@android:style/Widget.Material.Light.ActionButton.Overflow">
172        <item name="android:src">@drawable/ic_menu_overflow_lt</item>
173    </style>
174
175    <style name="ContactsActionBarDropDownStyle" parent="@android:style/Widget.Holo.Light.Spinner">
176        <item name="android:background">@drawable/ab_dropdown_navigation_item_background</item>
177    </style>
178
179    <style name="ContactsActionBarTheme" parent="@android:style/Theme.Holo.Light">
180        <item name="android:textColorHint">#CCCCCC</item>
181        <item name="android:textColor">@android:color/black</item>
182        <item name="android:popupMenuStyle">@android:style/Widget.Holo.Light.PopupMenu</item>
183        <item name="android:dropDownListViewStyle">@style/ListViewDropdownStyle</item>
184    </style>
185
186    <style name="ListViewDropdownStyle" parent="@android:style/Widget.ListView.DropDown">
187        <item name="android:listSelector">?android:attr/listChoiceBackgroundIndicator</item>
188    </style>
189
190    <style name="ContactPickerTheme" parent="@style/PeopleTheme" >
191        <item name="android:actionBarStyle">@style/ContactsPickerActionBarStyle</item>
192    </style>
193
194    <style name="ContactPickerLayout" parent="ContactPickerTheme">
195        <item name="android:layout_width">match_parent</item>
196        <item name="android:layout_height">match_parent</item>
197    </style>
198
199    <style name="ContactsPreferencesTheme" parent="@style/PeopleTheme">
200        <item name="android:listViewStyle">@style/ListViewStyle</item>
201    </style>
202
203    <style name="ContactListFilterTheme" parent="@style/PeopleTheme">
204        <item name="android:listViewStyle">@style/ListViewStyle</item>
205    </style>
206
207    <style name="NonPhoneActivityTheme" parent="@android:Theme.Translucent.NoTitleBar">
208    </style>
209
210    <style name="NonPhoneDialogTheme" parent="@android:Theme.Material.Light.Dialog">
211    </style>
212
213    <style name="ConfirmAddDetailDialogTheme" parent="@android:style/Theme.Material.Light.Dialog.MinWidth">
214        <item name="android:windowCloseOnTouchOutside">true</item>
215    </style>
216
217    <style name="ContactEditorAccountsChangedActivityTheme" parent="@android:style/Theme.Material.Light.Dialog.NoActionBar.MinWidth">
218        <item name="android:windowCloseOnTouchOutside">true</item>
219        <item name="android:textColorPrimary">@color/primary_text_color</item>
220        <item name="android:textColorSecondary">@color/secondary_text_color</item>
221        <item name="android:listViewStyle">@style/ListViewStyle</item>
222    </style>
223
224    <style name="SectionDivider">
225        <item name="android:background">#7e7e87</item>
226        <item name="android:layout_height">1dip</item>
227        <item name="android:layout_width">match_parent</item>
228    </style>
229
230    <style name="ConfirmAddDetailViewStyle">
231        <item name="android:layout_width">match_parent</item>
232        <item name="android:layout_height">wrap_content</item>
233    </style>
234
235    <style name="ConfirmAddDetailHeaderViewStyle">
236        <item name="android:layout_width">match_parent</item>
237        <item name="android:layout_height">150dip</item>
238    </style>
239
240    <style name="SelectableItem" parent="@android:style/Theme.Material.Light">
241        <item name="android:background">?android:attr/selectableItemBackground</item>
242    </style>
243
244    <style name="QuickContactListItemTextWrapperStyle">
245        <item name="android:layout_width">0dip</item>
246        <item name="android:layout_height">wrap_content</item>
247        <item name="android:layout_weight">1</item>
248        <item name="android:paddingLeft">16dip</item>
249        <item name="android:paddingRight">16dip</item>
250        <item name="android:paddingStart">16dip</item>
251        <item name="android:paddingEnd">16dip</item>
252        <item name="android:gravity">center_vertical</item>
253        <item name="android:orientation">vertical</item>
254    </style>
255
256    <style name="Theme.PhotoSelector" parent="@android:style/Theme.Holo.Light">
257        <item name="android:windowBackground">@android:color/transparent</item>
258        <item name="android:windowFrame">@null</item>
259        <item name="android:windowContentOverlay">@null</item>
260        <item name="android:windowAnimationStyle">@null</item>
261        <item name="android:backgroundDimEnabled">false</item>
262        <item name="android:windowIsTranslucent">true</item>
263        <item name="android:windowNoTitle">true</item>
264    </style>
265
266    <style name="GroupMembershipSizeTextAppearance" parent="@android:style/TextAppearance.Small"/>
267
268    <style name="PeopleNavigationDropDownTextAppearance">
269        <item name="android:textColor">@color/primary_text_color</item>
270        <item name="android:textSize">18sp</item>
271    </style>
272
273    <style name="PeopleNavigationDropDownHeaderTextAppearance">
274        <item name="android:textColor">@color/primary_text_color</item>
275        <item name="android:textSize">18sp</item>
276    </style>
277
278    <style name="ExpandingEntryCardStyle">
279        <item name="android:elevation">@dimen/expanding_entry_card_elevation</item>
280        <item name="android:background">@color/expanding_entry_card_background_color</item>
281        <item name="android:layout_marginBottom">@dimen/expanding_entry_card_marginBottom</item>
282        <item name="android:layout_marginEnd">@dimen/expanding_entry_card_marginStartEnd</item>
283        <item name="android:layout_marginStart">@dimen/expanding_entry_card_marginStartEnd</item>
284        <item name="android:orientation">vertical</item>
285        <item name="android:layout_width">match_parent</item>
286        <item name="android:layout_height">wrap_content</item>
287    </style>
288
289    <style name="SpinnerButtonStyle" parent="@android:style/Widget.Material.Spinner.Underlined">
290        <!-- When applying the spinner style to a Button we need to disable the shadow animation
291            on the button since the spinner background is transparent. Otherwise the spinner-button
292            will look ridiculous. -->
293        <item name="android:stateListAnimator">@null</item>
294        <!-- We want our spinner's to use the same gravity as an EditText, so that they look
295            visually consistent with other controls in our forms -->
296        <item name="android:gravity">start|center_vertical</item>
297    </style>
298
299    <style name="EditKindSeparatorTextViewStyle" parent="ContactListSeparatorTextViewStyle">
300        <item name="android:textAppearance">@style/EditKindTextAppearanceStyle</item>
301    </style>
302
303    <style name="EditKindTextAppearanceStyle" parent="@android:style/TextAppearance.Small">
304        <item name="android:textSize">14sp</item>
305        <item name="android:textStyle">bold</item>
306        <item name="android:textAllCaps">true</item>
307        <item name="android:textColor">#363636</item>
308        <item name="android:fontFamily">sans-serif</item>
309    </style>
310
311    <!-- Inherit from Theme.Material.Light.Dialog instead of Theme.Material.Light.Dialog.Alert
312        since the Alert dialog is private. They are identical anyway. -->
313    <style name="ContactsAlertDialogTheme" parent="@android:style/Theme.Material.Light.Dialog">
314        <item name="android:colorAccent">@color/primary_color</item>
315    </style>
316
317    <style name="EditKindIconStyle">
318        <item name="android:layout_width">24dp</item>
319        <item name="android:layout_height">24dp</item>
320        <item name="android:tint">@color/editor_icon_color</item>
321        <item name="android:layout_marginStart">16dp</item>
322        <!-- We want 32dp of padding between these icon's and EditText's. Since EditText's have
323            4dp of starting padding built in, we set this as 28dp. -->
324        <item name="android:layout_marginEnd">28dp</item>
325        <item name="android:layout_marginTop">@dimen/editor_kind_icon_top_margin</item>
326    </style>
327</resources>
328