1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- Copyright (C) 2012 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 17 <resources> 18 19 <!-- Like in themes_base.xml, the namespace "Base.AppCompat.*" is used to 20 define base styles for the platform version. The "*.AppCompat" 21 variants are for direct use or use as parent styles by the app. --> 22 <eat-comment/> 23 24 <style name="Base.Widget.AppCompat.ActionBar" parent=""> 25 <item name="displayOptions">showTitle</item> 26 <item name="divider">?attr/dividerVertical</item> 27 <item name="height">?attr/actionBarSize</item> 28 29 <item name="titleTextStyle">@style/TextAppearance.AppCompat.Widget.ActionBar.Title</item> 30 <item name="subtitleTextStyle">@style/TextAppearance.AppCompat.Widget.ActionBar.Subtitle</item> 31 32 <item name="background">@null</item> 33 <item name="backgroundStacked">@null</item> 34 <item name="backgroundSplit">@null</item> 35 36 <item name="actionButtonStyle">@style/Widget.AppCompat.ActionButton</item> 37 <item name="actionOverflowButtonStyle">@style/Widget.AppCompat.ActionButton.Overflow</item> 38 39 <item name="progressBarStyle">@style/Widget.AppCompat.ProgressBar.Horizontal</item> 40 <item name="indeterminateProgressStyle">@style/Widget.AppCompat.ProgressBar</item> 41 42 <item name="android:gravity">center_vertical</item> 43 <item name="elevation">8dp</item> 44 <item name="popupTheme">?attr/actionBarPopupTheme</item> 45 </style> 46 47 <style name="Base.Widget.AppCompat.Light.ActionBar" parent="Base.Widget.AppCompat.ActionBar"> 48 <item name="actionButtonStyle">@style/Widget.AppCompat.Light.ActionButton</item> 49 <item name="actionOverflowButtonStyle">@style/Widget.AppCompat.Light.ActionButton.Overflow</item> 50 </style> 51 52 <style name="Base.Widget.AppCompat.ActionBar.Solid"> 53 <item name="background">?attr/colorPrimary</item> 54 <item name="backgroundStacked">?attr/colorPrimary</item> 55 <item name="backgroundSplit">?attr/colorPrimary</item> 56 </style> 57 58 <style name="Base.Widget.AppCompat.Light.ActionBar.Solid"> 59 <item name="background">?attr/colorPrimary</item> 60 <item name="backgroundStacked">?attr/colorPrimary</item> 61 <item name="backgroundSplit">?attr/colorPrimary</item> 62 </style> 63 64 <style name="Base.Widget.AppCompat.ActionButton" parent=""> 65 <item name="android:background">?attr/actionBarItemBackground</item> 66 <item name="android:paddingLeft">12dip</item> 67 <item name="android:paddingRight">12dip</item> 68 <item name="android:minWidth">@dimen/abc_action_button_min_width_material</item> 69 <item name="android:minHeight">@dimen/abc_action_button_min_height_material</item> 70 <item name="android:scaleType">center</item> 71 <item name="android:gravity">center</item> 72 <item name="android:maxLines">2</item> 73 <item name="textAllCaps">@bool/abc_config_actionMenuItemAllCaps</item> 74 </style> 75 76 <style name="Base.Widget.AppCompat.ActionButton.CloseMode"> 77 <item name="android:background">?attr/selectableItemBackgroundBorderless</item> 78 </style> 79 80 <style name="Base.Widget.AppCompat.ActionButton.Overflow"> 81 <item name="android:src">@drawable/abc_ic_menu_moreoverflow_mtrl_alpha</item> 82 <item name="android:background">?attr/actionBarItemBackground</item> 83 <item name="android:contentDescription">@string/abc_action_menu_overflow_description</item> 84 <item name="android:minWidth">@dimen/abc_action_button_min_width_overflow_material</item> 85 <item name="android:minHeight">@dimen/abc_action_button_min_height_material</item> 86 </style> 87 88 <style name="Base.Widget.AppCompat.ActionBar.TabBar" parent=""> 89 <item name="divider">?attr/actionBarDivider</item> 90 <item name="showDividers">middle</item> 91 <item name="dividerPadding">8dip</item> 92 </style> 93 94 <style name="Base.Widget.AppCompat.Light.ActionBar.TabBar" 95 parent="Base.Widget.AppCompat.ActionBar.TabBar"> 96 </style> 97 98 <style name="Base.Widget.AppCompat.ActionBar.TabView" parent=""> 99 <item name="android:background">@drawable/abc_tab_indicator_material</item> 100 <item name="android:gravity">center_horizontal</item> 101 <item name="android:paddingLeft">16dip</item> 102 <item name="android:paddingRight">16dip</item> 103 <item name="android:layout_width">0dip</item> 104 <item name="android:layout_weight">1</item> 105 <item name="android:minWidth">80dip</item> 106 </style> 107 108 <style name="Base.Widget.AppCompat.Light.ActionBar.TabView" parent="Base.Widget.AppCompat.ActionBar.TabView"> 109 <item name="android:background">@drawable/abc_tab_indicator_material</item> 110 </style> 111 112 <style name="Base.Widget.AppCompat.ActionBar.TabText" parent=""> 113 <item name="android:textAppearance">@style/TextAppearance.AppCompat.Medium</item> 114 <item name="android:textColor">?android:attr/textColorPrimary</item> 115 <item name="android:textSize">12sp</item> 116 <item name="android:textStyle">bold</item> 117 <item name="android:ellipsize">marquee</item> 118 <item name="android:maxLines">2</item> 119 <item name="android:maxWidth">180dp</item> 120 <item name="textAllCaps">true</item> 121 </style> 122 123 <style name="Base.Widget.AppCompat.Light.ActionBar.TabText" 124 parent="Base.Widget.AppCompat.ActionBar.TabText"> 125 </style> 126 127 <style name="Base.Widget.AppCompat.Light.ActionBar.TabText.Inverse" 128 parent="Base.Widget.AppCompat.Light.ActionBar.TabText"> 129 <item name="android:textAppearance">@style/TextAppearance.AppCompat.Medium.Inverse</item> 130 </style> 131 132 <style name="Base.Widget.AppCompat.ActionMode" parent=""> 133 <item name="background">?attr/actionModeBackground</item> 134 <item name="backgroundSplit">?attr/actionModeSplitBackground</item> 135 <item name="height">?attr/actionBarSize</item> 136 <item name="titleTextStyle">@style/TextAppearance.AppCompat.Widget.ActionMode.Title</item> 137 <item name="subtitleTextStyle">@style/TextAppearance.AppCompat.Widget.ActionMode.Subtitle</item> 138 <item name="closeItemLayout">@layout/abc_action_mode_close_item_material</item> 139 </style> 140 141 <style name="Base.TextAppearance.AppCompat.Widget.ActionMode.Title" parent="TextAppearance.AppCompat.Title"> 142 <item name="android:textSize">@dimen/abc_text_size_title_material_toolbar</item> 143 </style> 144 145 <style name="Base.TextAppearance.AppCompat.Widget.ActionMode.Subtitle" parent="TextAppearance.AppCompat.Subhead"> 146 <item name="android:textSize">@dimen/abc_text_size_subtitle_material_toolbar</item> 147 </style> 148 149 <style name="Base.TextAppearance.AppCompat.Widget.ActionBar.Menu" parent="android:TextAppearance.Small"> 150 <item name="android:textSize">12sp</item> 151 <item name="android:textStyle">bold</item> 152 <item name="android:textColor">?attr/actionMenuTextColor</item> 153 </style> 154 155 <style name="Base.TextAppearance.AppCompat.Widget.ActionBar.Title" parent="TextAppearance.AppCompat.Title"> 156 <item name="android:textSize">@dimen/abc_text_size_title_material_toolbar</item> 157 </style> 158 159 <style name="Base.TextAppearance.AppCompat.Widget.ActionBar.Subtitle" parent="TextAppearance.AppCompat.Subhead"> 160 <item name="android:textSize">@dimen/abc_text_size_subtitle_material_toolbar</item> 161 </style> 162 163 <style name="Base.TextAppearance.AppCompat.Widget.ActionBar.Title.Inverse" parent="TextAppearance.AppCompat.Title.Inverse"> 164 <item name="android:textSize">@dimen/abc_text_size_title_material_toolbar</item> 165 </style> 166 167 <style name="Base.TextAppearance.AppCompat.Widget.ActionBar.Subtitle.Inverse" parent="TextAppearance.AppCompat.Subhead.Inverse"> 168 <item name="android:textSize">@dimen/abc_text_size_subtitle_material_toolbar</item> 169 </style> 170 171 <style name="Base.Widget.AppCompat.ProgressBar.Horizontal" parent="android:Widget.ProgressBar.Horizontal"> 172 </style> 173 174 <style name="Base.Widget.AppCompat.ProgressBar" parent="android:Widget.ProgressBar"> 175 <item name="android:minWidth">@dimen/abc_action_bar_progress_bar_size</item> 176 <item name="android:maxWidth">@dimen/abc_action_bar_progress_bar_size</item> 177 <item name="android:minHeight">@dimen/abc_action_bar_progress_bar_size</item> 178 <item name="android:maxHeight">@dimen/abc_action_bar_progress_bar_size</item> 179 </style> 180 181 <!-- Spinner Widgets --> 182 183 <style name="Base.Widget.AppCompat.Spinner" parent="android:Widget.Spinner"> 184 <item name="android:background">@drawable/abc_spinner_mtrl_am_alpha</item> 185 <item name="android:dropDownSelector">?attr/listChoiceBackgroundIndicator</item> 186 <item name="android:dropDownVerticalOffset">0dip</item> 187 </style> 188 189 <style name="Base.Widget.AppCompat.Spinner.DropDown.ActionBar" parent="android:Widget"> 190 <item name="spinnerMode">dropdown</item> 191 192 <item name="android:clickable">true</item> 193 <item name="android:background">@drawable/abc_spinner_mtrl_am_alpha</item> 194 <item name="android:dropDownSelector">?attr/listChoiceBackgroundIndicator</item> 195 <item name="android:popupBackground">@drawable/abc_popup_background_mtrl_mult</item> 196 <item name="android:dropDownVerticalOffset">0dip</item> 197 <item name="android:dropDownHorizontalOffset">0dip</item> 198 <item name="overlapAnchor">true</item> 199 <item name="android:dropDownWidth">wrap_content</item> 200 <item name="popupPromptView">@layout/abc_simple_dropdown_hint</item> 201 <item name="android:gravity">left|start|center_vertical</item> 202 <item name="disableChildrenWhenDisabled">true</item> 203 </style> 204 205 <style name="Base.Widget.AppCompat.DropDownItem.Spinner" parent=""> 206 <item name="android:textAppearance">@style/TextAppearance.AppCompat.Widget.DropDownItem</item> 207 <item name="android:paddingLeft">8dp</item> 208 <item name="android:paddingRight">8dp</item> 209 <item name="android:gravity">center_vertical</item> 210 </style> 211 212 <style name="Base.Widget.AppCompat.ListView.DropDown" parent="android:Widget.ListView"> 213 <item name="android:listSelector">?attr/listChoiceBackgroundIndicator</item> 214 <item name="android:divider">@null</item> 215 </style> 216 217 <style name="Base.TextAppearance.AppCompat.Widget.DropDownItem" 218 parent="android:TextAppearance.Small"> 219 <item name="android:textColor">?android:attr/textColorPrimaryDisableOnly</item> 220 </style> 221 222 <style name="Base.TextAppearance.Widget.AppCompat.ExpandedMenu.Item" 223 parent="android:TextAppearance.Medium"> 224 <item name="android:textColor">?android:attr/textColorPrimaryDisableOnly</item> 225 </style> 226 227 <style name="Base.Widget.AppCompat.ListView.Menu" parent="android:Widget.ListView.Menu"> 228 <item name="android:listSelector">?attr/listChoiceBackgroundIndicator</item> 229 <item name="android:divider">?attr/dividerHorizontal</item> 230 </style> 231 232 <style name="Base.Widget.AppCompat.ListPopupWindow" parent=""> 233 <item name="android:dropDownSelector">?attr/listChoiceBackgroundIndicator</item> 234 <item name="android:popupBackground">@drawable/abc_popup_background_mtrl_mult</item> 235 <item name="android:dropDownVerticalOffset">0dip</item> 236 <item name="android:dropDownHorizontalOffset">0dip</item> 237 <item name="android:dropDownWidth">wrap_content</item> 238 </style> 239 240 <style name="Base.Widget.AppCompat.PopupMenu.Overflow"> 241 <item name="overlapAnchor">true</item> 242 <item name="android:dropDownHorizontalOffset">-4dip</item> 243 </style> 244 245 <style name="Base.Widget.AppCompat.Light.PopupMenu.Overflow"> 246 <item name="overlapAnchor">true</item> 247 <item name="android:dropDownHorizontalOffset">-4dip</item> 248 </style> 249 250 <style name="Base.Widget.AppCompat.PopupMenu" parent="@style/Widget.AppCompat.ListPopupWindow"> 251 </style> 252 253 <style name="Base.Widget.AppCompat.Light.PopupMenu" parent="@style/Widget.AppCompat.ListPopupWindow"> 254 </style> 255 256 <style name="Base.TextAppearance.AppCompat.Widget.PopupMenu.Large" parent="TextAppearance.AppCompat.Menu"> 257 </style> 258 259 <style name="Base.TextAppearance.AppCompat.Widget.PopupMenu.Small" parent="TextAppearance.AppCompat.Menu"> 260 </style> 261 262 <style name="Base.TextAppearance.AppCompat.Light.Widget.PopupMenu.Large" parent="TextAppearance.AppCompat.Menu"> 263 </style> 264 265 <style name="Base.TextAppearance.AppCompat.Light.Widget.PopupMenu.Small" parent="TextAppearance.AppCompat.Menu"> 266 </style> 267 268 <style name="Base.TextAppearance.AppCompat.SearchResult" parent=""> 269 <item name="android:textStyle">normal</item> 270 <item name="android:textColor">?android:textColorPrimary</item> 271 <item name="android:textColorHint">?android:textColorHint</item> 272 </style> 273 274 <style name="Base.TextAppearance.AppCompat.SearchResult.Title"> 275 <item name="android:textSize">18sp</item> 276 </style> 277 278 <style name="Base.TextAppearance.AppCompat.SearchResult.Subtitle"> 279 <item name="android:textSize">14sp</item> 280 <item name="android:textColor">?android:textColorSecondary</item> 281 </style> 282 283 <style name="Base.Widget.AppCompat.AutoCompleteTextView" parent="android:Widget.AutoCompleteTextView"> 284 <item name="android:dropDownSelector">@drawable/abc_list_selector_holo_dark</item> 285 <item name="android:popupBackground">@drawable/abc_popup_background_mtrl_mult</item> 286 <item name="android:textColor">?attr/editTextColor</item> 287 </style> 288 289 <style name="Base.Widget.AppCompat.Light.AutoCompleteTextView" parent="android:Widget.AutoCompleteTextView"> 290 <item name="android:dropDownSelector">@drawable/abc_list_selector_holo_light</item> 291 </style> 292 293 <style name="Base.Widget.AppCompat.ActivityChooserView" parent=""> 294 <item name="android:gravity">center</item> 295 <item name="android:background">@drawable/abc_ab_share_pack_holo_dark</item> 296 <item name="divider">?attr/dividerVertical</item> 297 <item name="showDividers">middle</item> 298 <item name="dividerPadding">6dip</item> 299 </style> 300 301 <style name="Base.Widget.AppCompat.Light.ActivityChooserView" 302 parent="Base.Widget.AppCompat.ActivityChooserView"> 303 <item name="android:background">@drawable/abc_ab_share_pack_holo_light</item> 304 </style> 305 306 <style name="Base.Widget.AppCompat.PopupWindow" parent="android:Widget.PopupWindow"> 307 </style> 308 309 <style name="Base.Widget.AppCompat.Toolbar" parent="android:Widget"> 310 <item name="titleTextAppearance">@style/TextAppearance.Widget.AppCompat.Toolbar.Title</item> 311 <item name="subtitleTextAppearance">@style/TextAppearance.Widget.AppCompat.Toolbar.Subtitle</item> 312 <item name="android:minHeight">?attr/actionBarSize</item> 313 <item name="titleMargins">4dp</item> 314 <item name="maxButtonHeight">56dp</item> 315 <item name="buttonGravity">top</item> 316 <item name="collapseIcon">?attr/homeAsUpIndicator</item> 317 <item name="contentInsetStart">16dp</item> 318 </style> 319 320 <style name="Base.Widget.AppCompat.Toolbar.Button.Navigation" parent="android:Widget"> 321 <item name="android:minWidth">56dp</item> 322 <item name="android:scaleType">center</item> 323 <item name="android:background">?attr/selectableItemBackground</item> 324 </style> 325 326 <style name="Base.TextAppearance.Widget.AppCompat.Toolbar.Title" 327 parent="TextAppearance.AppCompat.Widget.ActionBar.Title"> 328 </style> 329 330 <style name="Base.TextAppearance.Widget.AppCompat.Toolbar.Subtitle" 331 parent="TextAppearance.AppCompat.Widget.ActionBar.Subtitle"> 332 </style> 333 334 <style name="Base.Widget.AppCompat.SearchView" parent="android:Widget"> 335 <item name="layout">@layout/abc_search_view</item> 336 <item name="queryBackground">@drawable/abc_textfield_search_material</item> 337 <item name="submitBackground">@drawable/abc_textfield_search_material</item> 338 <item name="closeIcon">@drawable/abc_ic_clear_mtrl_alpha</item> 339 <item name="searchIcon">@drawable/abc_ic_search_api_mtrl_alpha</item> 340 <item name="goIcon">@drawable/abc_ic_go_search_api_mtrl_alpha</item> 341 <item name="voiceIcon">@drawable/abc_ic_voice_search_api_mtrl_alpha</item> 342 <item name="commitIcon">@drawable/abc_ic_commit_search_api_mtrl_alpha</item> 343 <item name="suggestionRowLayout">@layout/abc_search_dropdown_item_icons_2line</item> 344 </style> 345 346 <style name="Base.Widget.AppCompat.EditText" parent="android:Widget.EditText"> 347 <item name="android:background">?attr/editTextBackground</item> 348 <item name="android:textColor">?attr/editTextColor</item> 349 <item name="android:textAppearance">?android:attr/textAppearanceMediumInverse</item> 350 </style> 351 352 <style name="Base.Widget.AppCompat.DrawerArrowToggle" parent=""> 353 <item name="color">?android:attr/textColorSecondary</item> 354 <item name="thickness">2dp</item> 355 <item name="barSize">18dp</item> 356 <item name="gapBetweenBars">3dp</item> 357 <item name="topBottomBarArrowSize">11.31dp</item> 358 <item name="middleBarArrowSize">16dp</item> 359 <item name="drawableSize">24dp</item> 360 <item name="spinBars">true</item> 361 </style> 362 363 <style name="Base.Widget.AppCompat.CompoundButton.Switch" parent="android:Widget.CompoundButton"> 364 <item name="track">@drawable/abc_switch_track_mtrl_alpha</item> 365 <item name="android:thumb">@drawable/abc_switch_thumb_material</item> 366 <item name="switchTextAppearance">@style/TextAppearance.AppCompat.Widget.Switch</item> 367 <item name="android:background">?attr/selectableItemBackgroundBorderless</item> 368 <item name="showText">false</item> 369 </style> 370 371 <style name="Base.TextAppearance.AppCompat.Widget.Switch" parent="TextAppearance.AppCompat.Button" /> 372 373 </resources> 374