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 <item name="android:contentInsetStart">72dp</item> 127 </style> 128 129 <!-- When this style was added, android:toolbarStyle was private. Therefore, this style 130 must be directly applied to every toolbar --> 131 <style name="ContactsToolbarStyle" parent="@android:style/Widget.Toolbar"> 132 <item name="android:titleTextAppearance">@style/ContactsActionBarTitleText</item> 133 </style> 134 135 <style name="ContactsPickerActionBarStyle" parent="@style/ContactsActionBarStyle"> 136 <!-- when first loading, don't show title or up button --> 137 <item name="android:displayOptions"></item> 138 </style> 139 140 <style name="ContactPickerSearchTheme" parent="@style/PeopleTheme"> 141 <item name="android:textColorPrimary">@android:color/white</item> 142 <item name="android:textColorHint">?android:textColorHintInverse</item> 143 <item name="android:colorControlActivated">?android:textColorHintInverse</item> 144 <item name="android:colorControlNormal">@android:color/white</item> 145 </style> 146 147 <!-- Text in the action bar at the top of the screen --> 148 <style name="ContactsActionBarTitleText" 149 parent="@android:style/TextAppearance.Material.Widget.ActionBar.Title"> 150 <item name="android:textColor">@color/actionbar_text_color</item> 151 </style> 152 153 <!-- Styling for the tab bar; handles styling of the divider line. --> 154 <style name="ContactsActionBarTabBarStyle" 155 parent="@android:style/Widget.Material.ActionBar.TabBar"> 156 <item name="android:showDividers">none</item> 157 </style> 158 159 <!-- Text style for tabs. --> 160 <style name="ContactsActionBarTabTextStyle" 161 parent="android:style/Widget.Material.Light.ActionBar.TabText"> 162 <item name="android:textColor">@color/tab_text_color</item> 163 <item name="android:textSize">@dimen/tab_text_size</item> 164 <item name="android:fontFamily">@string/tab_font_family</item> 165 <item name="android:elevation">0dp</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_more_vert</item> 173 <item name="android:tint">@color/action_bar_button_text_color</item> 174 </style> 175 176 <style name="ContactsActionBarDropDownStyle" parent="@android:style/Widget.Holo.Light.Spinner"> 177 <item name="android:background">@drawable/ab_dropdown_navigation_item_background</item> 178 </style> 179 180 <style name="ContactsActionBarTheme" parent="@android:style/Theme.Holo.Light"> 181 <item name="android:textColorHint">#CCCCCC</item> 182 <item name="android:textColor">@android:color/black</item> 183 <item name="android:popupMenuStyle">@android:style/Widget.Holo.Light.PopupMenu</item> 184 <item name="android:dropDownListViewStyle">@style/ListViewDropdownStyle</item> 185 </style> 186 187 <style name="ListViewDropdownStyle" parent="@android:style/Widget.ListView.DropDown"> 188 <item name="android:listSelector">?android:attr/listChoiceBackgroundIndicator</item> 189 </style> 190 191 <style name="ContactPickerTheme" parent="@style/PeopleTheme" > 192 <item name="android:actionBarStyle">@style/ContactsPickerActionBarStyle</item> 193 </style> 194 195 <style name="ContactPickerLayout" parent="ContactPickerTheme"> 196 <item name="android:layout_width">match_parent</item> 197 <item name="android:layout_height">match_parent</item> 198 </style> 199 200 <style name="ContactsPreferencesTheme" parent="@style/PeopleTheme"> 201 <item name="android:listViewStyle">@style/ListViewStyle</item> 202 </style> 203 204 <style name="ContactListFilterTheme" parent="@style/PeopleTheme"> 205 <item name="android:listViewStyle">@style/ListViewStyle</item> 206 </style> 207 208 <style name="NonPhoneActivityTheme" parent="@android:Theme.Translucent.NoTitleBar"> 209 </style> 210 211 <style name="NonPhoneDialogTheme" parent="@android:Theme.Material.Light.Dialog"> 212 </style> 213 214 <style name="ConfirmAddDetailDialogTheme" parent="@android:style/Theme.Material.Light.Dialog.MinWidth"> 215 <item name="android:windowCloseOnTouchOutside">true</item> 216 </style> 217 218 <style name="ContactEditorAccountsChangedActivityTheme" parent="@android:style/Theme.Material.Light.Dialog.NoActionBar.MinWidth"> 219 <item name="android:windowCloseOnTouchOutside">true</item> 220 <item name="android:textColorPrimary">@color/primary_text_color</item> 221 <item name="android:textColorSecondary">@color/secondary_text_color</item> 222 <item name="android:listViewStyle">@style/ListViewStyle</item> 223 <item name="android:colorAccent">@color/primary_color</item> 224 </style> 225 226 <style name="SectionDivider"> 227 <item name="android:background">#7e7e87</item> 228 <item name="android:layout_height">1dip</item> 229 <item name="android:layout_width">match_parent</item> 230 </style> 231 232 <style name="ConfirmAddDetailViewStyle"> 233 <item name="android:layout_width">match_parent</item> 234 <item name="android:layout_height">wrap_content</item> 235 </style> 236 237 <style name="ConfirmAddDetailHeaderViewStyle"> 238 <item name="android:layout_width">match_parent</item> 239 <item name="android:layout_height">150dip</item> 240 </style> 241 242 <style name="SelectableItem" parent="@android:style/Theme.Material.Light"> 243 <item name="android:background">?android:attr/selectableItemBackground</item> 244 </style> 245 246 <style name="QuickContactListItemTextWrapperStyle"> 247 <item name="android:layout_width">0dip</item> 248 <item name="android:layout_height">wrap_content</item> 249 <item name="android:layout_weight">1</item> 250 <item name="android:paddingLeft">16dip</item> 251 <item name="android:paddingRight">16dip</item> 252 <item name="android:paddingStart">16dip</item> 253 <item name="android:paddingEnd">16dip</item> 254 <item name="android:gravity">center_vertical</item> 255 <item name="android:orientation">vertical</item> 256 </style> 257 258 <style name="Theme.PhotoSelector" parent="@android:style/Theme.Holo.Light"> 259 <item name="android:windowBackground">@android:color/transparent</item> 260 <item name="android:windowFrame">@null</item> 261 <item name="android:windowContentOverlay">@null</item> 262 <item name="android:windowAnimationStyle">@null</item> 263 <item name="android:backgroundDimEnabled">false</item> 264 <item name="android:windowIsTranslucent">true</item> 265 <item name="android:windowNoTitle">true</item> 266 </style> 267 268 <style name="GroupMembershipSizeTextAppearance" parent="@android:style/TextAppearance.Small"/> 269 270 <style name="PeopleNavigationDropDownTextAppearance"> 271 <item name="android:textColor">@color/primary_text_color</item> 272 <item name="android:textSize">18sp</item> 273 </style> 274 275 <style name="PeopleNavigationDropDownHeaderTextAppearance"> 276 <item name="android:textColor">@color/primary_text_color</item> 277 <item name="android:textSize">18sp</item> 278 </style> 279 280 <style name="ExpandingEntryCardStyle"> 281 <item name="android:elevation">@dimen/expanding_entry_card_elevation</item> 282 <item name="android:background">@color/expanding_entry_card_background_color</item> 283 <item name="android:layout_marginBottom">@dimen/expanding_entry_card_marginBottom</item> 284 <item name="android:layout_marginEnd">@dimen/expanding_entry_card_marginStartEnd</item> 285 <item name="android:layout_marginStart">@dimen/expanding_entry_card_marginStartEnd</item> 286 <item name="android:orientation">vertical</item> 287 <item name="android:layout_width">match_parent</item> 288 <item name="android:layout_height">wrap_content</item> 289 </style> 290 291 <style name="SpinnerButtonStyle" parent="@android:style/Widget.Material.Spinner.Underlined"> 292 <!-- When applying the spinner style to a Button we need to disable the shadow animation 293 on the button since the spinner background is transparent. Otherwise the spinner-button 294 will look ridiculous. --> 295 <item name="android:stateListAnimator">@null</item> 296 <!-- We want our spinner's to use the same gravity as an EditText, so that they look 297 visually consistent with other controls in our forms --> 298 <item name="android:gravity">start|center_vertical</item> 299 </style> 300 301 <style name="EditKindSeparatorTextViewStyle" parent="ContactListSeparatorTextViewStyle"> 302 <item name="android:textAppearance">@style/EditKindTextAppearanceStyle</item> 303 </style> 304 305 <style name="EditKindTextAppearanceStyle" parent="@android:style/TextAppearance.Small"> 306 <item name="android:textSize">14sp</item> 307 <item name="android:textStyle">bold</item> 308 <item name="android:textAllCaps">true</item> 309 <item name="android:textColor">#363636</item> 310 <item name="android:fontFamily">sans-serif</item> 311 </style> 312 313 <!-- Inherit from Theme.Material.Light.Dialog instead of Theme.Material.Light.Dialog.Alert 314 since the Alert dialog is private. They are identical anyway. --> 315 <style name="ContactsAlertDialogTheme" parent="@android:style/Theme.Material.Light.Dialog"> 316 <item name="android:colorAccent">@color/primary_color</item> 317 </style> 318 319 <style name="EditKindIconStyle"> 320 <item name="android:layout_width">24dp</item> 321 <item name="android:layout_height">24dp</item> 322 <item name="android:tint">@color/editor_icon_color</item> 323 <item name="android:layout_marginStart">16dp</item> 324 <!-- We want 32dp of padding between these icon's and EditText's. Since EditText's have 325 4dp of starting padding built in, we set this as 28dp. --> 326 <item name="android:layout_marginEnd">28dp</item> 327 <item name="android:layout_marginTop">@dimen/editor_kind_icon_top_margin</item> 328 </style> 329 330 <style name="EditSelectorIconStyle"> 331 <item name="android:layout_width">24dp</item> 332 <item name="android:layout_height">24dp</item> 333 <item name="android:layout_marginStart">16dp</item> 334 <!-- We want 32dp of padding between these icon's and EditText's. Since EditText's have 335 4dp of starting padding built in, we set this as 28dp. --> 336 <item name="android:layout_marginEnd">28dp</item> 337 <item name="android:layout_marginTop">@dimen/editor_kind_icon_top_margin</item> 338 </style> 339 340 <style name="AccountTypeIconStyle"> 341 <item name="android:layout_width">12dp</item> 342 <item name="android:layout_height">12dp</item> 343 <item name="android:layout_marginStart">4dp</item> 344 <item name="android:layout_marginEnd">4dp</item> 345 </style> 346 347 <style name="AccountTypeNameStyle"> 348 <item name="android:textSize">10sp</item> 349 <item name="android:textColor">#363636</item> 350 <item name="android:fontFamily">sans-serif</item> 351 </style> 352</resources> 353