themes.xml revision d0fa371f276fde32d81c037006941bc93da0bb03
1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2006 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 <!-- The default system theme. This is the theme used for activities 19 that have not explicitly set their own theme. 20 21 <p>You can count on this being a dark 22 background with light text on top, but should try to make no 23 other assumptions about its appearance. In particular, the text 24 inside of widgets using this theme may be completely different, 25 with the widget container being a light color and the text on top 26 of it a dark color. 27 --> 28 <style name="Theme"> 29 30 <item name="colorForeground">@android:color/bright_foreground_dark</item> 31 <item name="colorForegroundInverse">@android:color/bright_foreground_dark_inverse</item> 32 <item name="colorBackground">@android:color/background_dark</item> 33 <item name="colorBackgroundCacheHint">?android:attr/colorBackground</item> 34 <item name="disabledAlpha">0.5</item> 35 <item name="backgroundDimAmount">0.6</item> 36 37 <!-- Text styles --> 38 <item name="textAppearance">@android:style/TextAppearance</item> 39 <item name="textAppearanceInverse">@android:style/TextAppearance.Inverse</item> 40 41 <item name="textColorPrimary">@android:color/primary_text_dark</item> 42 <item name="textColorSecondary">@android:color/secondary_text_dark</item> 43 <item name="textColorTertiary">@android:color/tertiary_text_dark</item> 44 <item name="textColorPrimaryInverse">@android:color/primary_text_light</item> 45 <item name="textColorSecondaryInverse">@android:color/secondary_text_light</item> 46 <item name="textColorTertiaryInverse">@android:color/tertiary_text_light</item> 47 <item name="textColorPrimaryDisableOnly">@android:color/primary_text_dark_disable_only</item> 48 <item name="textColorPrimaryInverseDisableOnly">@android:color/primary_text_light_disable_only</item> 49 <item name="textColorPrimaryNoDisable">@android:color/primary_text_dark_nodisable</item> 50 <item name="textColorSecondaryNoDisable">@android:color/secondary_text_dark_nodisable</item> 51 <item name="textColorPrimaryInverseNoDisable">@android:color/primary_text_light_nodisable</item> 52 <item name="textColorSecondaryInverseNoDisable">@android:color/secondary_text_light_nodisable</item> 53 <item name="textColorHint">@android:color/hint_foreground_dark</item> 54 <item name="textColorHintInverse">@android:color/hint_foreground_light</item> 55 <item name="textColorSearchUrl">@android:color/search_url_text</item> 56 <item name="textColorHighlight">@android:color/highlighted_text_dark</item> 57 <item name="textColorHighlightInverse">@android:color/highlighted_text_light</item> 58 <item name="textColorLink">@android:color/link_text_dark</item> 59 <item name="textColorLinkInverse">@android:color/link_text_light</item> 60 61 <item name="textAppearanceLarge">@android:style/TextAppearance.Large</item> 62 <item name="textAppearanceMedium">@android:style/TextAppearance.Medium</item> 63 <item name="textAppearanceSmall">@android:style/TextAppearance.Small</item> 64 <item name="textAppearanceLargeInverse">@android:style/TextAppearance.Large.Inverse</item> 65 <item name="textAppearanceMediumInverse">@android:style/TextAppearance.Medium.Inverse</item> 66 <item name="textAppearanceSmallInverse">@android:style/TextAppearance.Small.Inverse</item> 67 <item name="textAppearanceSearchResultTitle">@android:style/TextAppearance.SearchResult.Title</item> 68 <item name="textAppearanceSearchResultSubtitle">@android:style/TextAppearance.SearchResult.Subtitle</item> 69 70 <item name="textAppearanceButton">@android:style/TextAppearance.Widget.Button</item> 71 72 <item name="editTextColor">?android:attr/textColorPrimaryInverse</item> 73 <item name="editTextBackground">@android:drawable/edit_text</item> 74 75 <item name="candidatesTextStyleSpans">@android:string/candidates_style</item> 76 77 <item name="textCheckMark">@android:drawable/indicator_check_mark_dark</item> 78 <item name="textCheckMarkInverse">@android:drawable/indicator_check_mark_light</item> 79 80 <!-- Button styles --> 81 <item name="buttonStyle">@android:style/Widget.Button</item> 82 83 <item name="buttonStyleSmall">@android:style/Widget.Button.Small</item> 84 <item name="buttonStyleInset">@android:style/Widget.Button.Inset</item> 85 86 <item name="buttonStyleToggle">@android:style/Widget.Button.Toggle</item> 87 88 <!-- List attributes --> 89 <item name="listPreferredItemHeight">64dip</item> 90 <!-- @hide --> 91 <item name="searchResultListItemHeight">58dip</item> 92 <item name="listDivider">@drawable/divider_horizontal_dark</item> 93 <item name="listSeparatorTextViewStyle">@android:style/Widget.TextView.ListSeparator</item> 94 95 <item name="listChoiceIndicatorSingle">@android:drawable/btn_radio</item> 96 <item name="listChoiceIndicatorMultiple">@android:drawable/btn_check</item> 97 98 <item name="listChoiceBackgroundIndicator">@android:drawable/list_selected_background</item> 99 100 <item name="activatedBackgroundIndicator">@android:drawable/activated_background</item> 101 102 <item name="expandableListPreferredItemPaddingLeft">40dip</item> 103 <item name="expandableListPreferredChildPaddingLeft"> 104 ?android:attr/expandableListPreferredItemPaddingLeft</item> 105 106 <item name="expandableListPreferredItemIndicatorLeft">3dip</item> 107 <item name="expandableListPreferredItemIndicatorRight">33dip</item> 108 <item name="expandableListPreferredChildIndicatorLeft"> 109 ?android:attr/expandableListPreferredItemIndicatorLeft</item> 110 <item name="expandableListPreferredChildIndicatorRight"> 111 ?android:attr/expandableListPreferredItemIndicatorRight</item> 112 113 <!-- Gallery attributes --> 114 <item name="galleryItemBackground">@android:drawable/gallery_item_background</item> 115 116 <!-- Window attributes --> 117 <item name="windowBackground">@android:drawable/screen_background_dark</item> 118 <item name="windowFrame">@null</item> 119 <item name="windowNoTitle">false</item> 120 <item name="windowFullscreen">false</item> 121 <item name="windowIsFloating">false</item> 122 <item name="windowContentOverlay">@android:drawable/title_bar_shadow</item> 123 <item name="windowShowWallpaper">false</item> 124 <item name="windowTitleStyle">@android:style/WindowTitle</item> 125 <item name="windowTitleSize">25dip</item> 126 <item name="windowTitleBackgroundStyle">@android:style/WindowTitleBackground</item> 127 <item name="android:windowAnimationStyle">@android:style/Animation.Activity</item> 128 <item name="android:windowSoftInputMode">stateUnspecified|adjustUnspecified</item> 129 <item name="windowActionBar">false</item> 130 <item name="windowActionModeOverlay">false</item> 131 132 <!-- Dialog attributes --> 133 <item name="alertDialogStyle">@android:style/AlertDialog</item> 134 135 <!-- Panel attributes --> 136 <item name="panelBackground">@android:drawable/menu_background</item> 137 <item name="panelFullBackground">@android:drawable/menu_background_fill_parent_width</item> 138 <!-- These three attributes do not seems to be used by the framework. Declared public though --> 139 <item name="panelColorBackground">#000</item> 140 <item name="panelColorForeground">?android:attr/textColorPrimary</item> 141 <item name="panelTextAppearance">?android:attr/textAppearance</item> 142 143 <!-- Scrollbar attributes --> 144 <item name="scrollbarFadeDuration">250</item> 145 <item name="scrollbarDefaultDelayBeforeFade">300</item> 146 <item name="scrollbarSize">10dip</item> 147 <item name="scrollbarThumbHorizontal">@android:drawable/scrollbar_handle_horizontal</item> 148 <item name="scrollbarThumbVertical">@android:drawable/scrollbar_handle_vertical</item> 149 <item name="scrollbarTrackHorizontal">@null</item> 150 <item name="scrollbarTrackVertical">@null</item> 151 152 <!-- Widget styles --> 153 <item name="absListViewStyle">@android:style/Widget.AbsListView</item> 154 <item name="autoCompleteTextViewStyle">@android:style/Widget.AutoCompleteTextView</item> 155 <item name="checkboxStyle">@android:style/Widget.CompoundButton.CheckBox</item> 156 <item name="dropDownListViewStyle">@android:style/Widget.ListView.DropDown</item> 157 <item name="editTextStyle">@android:style/Widget.EditText</item> 158 <item name="expandableListViewStyle">@android:style/Widget.ExpandableListView</item> 159 <item name="expandableListViewWhiteStyle">@android:style/Widget.ExpandableListView.White</item> 160 <item name="galleryStyle">@android:style/Widget.Gallery</item> 161 <item name="gestureOverlayViewStyle">@android:style/Widget.GestureOverlayView</item> 162 <item name="gridViewStyle">@android:style/Widget.GridView</item> 163 <item name="imageButtonStyle">@android:style/Widget.ImageButton</item> 164 <item name="imageWellStyle">@android:style/Widget.ImageWell</item> 165 <item name="listViewStyle">@android:style/Widget.ListView</item> 166 <item name="listViewWhiteStyle">@android:style/Widget.ListView.White</item> 167 <item name="popupWindowStyle">@android:style/Widget.PopupWindow</item> 168 <item name="progressBarStyle">@android:style/Widget.ProgressBar</item> 169 <item name="progressBarStyleHorizontal">@android:style/Widget.ProgressBar.Horizontal</item> 170 <item name="progressBarStyleSmall">@android:style/Widget.ProgressBar.Small</item> 171 <item name="progressBarStyleSmallTitle">@android:style/Widget.ProgressBar.Small.Title</item> 172 <item name="progressBarStyleLarge">@android:style/Widget.ProgressBar.Large</item> 173 <item name="progressBarStyleInverse">@android:style/Widget.ProgressBar.Inverse</item> 174 <item name="progressBarStyleSmallInverse">@android:style/Widget.ProgressBar.Small.Inverse</item> 175 <item name="progressBarStyleLargeInverse">@android:style/Widget.ProgressBar.Large.Inverse</item> 176 <item name="seekBarStyle">@android:style/Widget.SeekBar</item> 177 <item name="ratingBarStyle">@android:style/Widget.RatingBar</item> 178 <item name="ratingBarStyleIndicator">@android:style/Widget.RatingBar.Indicator</item> 179 <item name="ratingBarStyleSmall">@android:style/Widget.RatingBar.Small</item> 180 <item name="radioButtonStyle">@android:style/Widget.CompoundButton.RadioButton</item> 181 <item name="scrollViewStyle">@android:style/Widget.ScrollView</item> 182 <item name="horizontalScrollViewStyle">@android:style/Widget.HorizontalScrollView</item> 183 <item name="spinnerStyle">@android:style/Widget.Spinner</item> 184 <item name="dropDownSpinnerStyle">@android:style/Widget.Spinner.DropDown</item> 185 <item name="starStyle">@android:style/Widget.CompoundButton.Star</item> 186 <item name="tabWidgetStyle">@android:style/Widget.TabWidget</item> 187 <item name="textViewStyle">@android:style/Widget.TextView</item> 188 <item name="webTextViewStyle">@android:style/Widget.WebTextView</item> 189 <item name="webViewStyle">@android:style/Widget.WebView</item> 190 <item name="dropDownItemStyle">@android:style/Widget.DropDownItem</item> 191 <item name="spinnerDropDownItemStyle">@android:style/Widget.DropDownItem.Spinner</item> 192 <item name="spinnerItemStyle">@android:style/Widget.TextView.SpinnerItem</item> 193 <item name="dropDownHintAppearance">@android:style/TextAppearance.Widget.DropDownHint</item> 194 <item name="keyboardViewStyle">@android:style/Widget.KeyboardView</item> 195 <item name="quickContactBadgeStyleWindowSmall">@android:style/Widget.QuickContactBadge.WindowSmall</item> 196 <item name="quickContactBadgeStyleWindowMedium">@android:style/Widget.QuickContactBadge.WindowMedium</item> 197 <item name="quickContactBadgeStyleWindowLarge">@android:style/Widget.QuickContactBadge.WindowLarge</item> 198 <item name="quickContactBadgeStyleSmallWindowSmall">@android:style/Widget.QuickContactBadgeSmall.WindowSmall</item> 199 <item name="quickContactBadgeStyleSmallWindowMedium">@android:style/Widget.QuickContactBadgeSmall.WindowMedium</item> 200 <item name="quickContactBadgeStyleSmallWindowLarge">@android:style/Widget.QuickContactBadgeSmall.WindowLarge</item> 201 202 <!-- Preference styles --> 203 <item name="preferenceScreenStyle">@android:style/Preference.PreferenceScreen</item> 204 <item name="preferenceCategoryStyle">@android:style/Preference.Category</item> 205 <item name="preferenceStyle">@android:style/Preference</item> 206 <item name="preferenceInformationStyle">@android:style/Preference.Information</item> 207 <item name="checkBoxPreferenceStyle">@android:style/Preference.CheckBoxPreference</item> 208 <item name="yesNoPreferenceStyle">@android:style/Preference.DialogPreference.YesNoPreference</item> 209 <item name="dialogPreferenceStyle">@android:style/Preference.DialogPreference</item> 210 <item name="editTextPreferenceStyle">@android:style/Preference.DialogPreference.EditTextPreference</item> 211 <item name="ringtonePreferenceStyle">@android:style/Preference.RingtonePreference</item> 212 <item name="preferenceLayoutChild">@android:layout/preference_child</item> 213 214 <!-- Search widget styles --> 215 <item name="searchWidgetCorpusItemBackground">@android:color/search_widget_corpus_item_background</item> 216 217 <!-- Action bar styles --> 218 <item name="actionDropDownStyle">@android:style/Widget.Spinner.DropDown</item> 219 <item name="actionButtonStyle">@android:style/Widget.ActionButton</item> 220 <item name="actionOverflowButtonStyle">@android:style/Widget.ActionButton.Overflow</item> 221 <item name="actionButtonPadding">12dip</item> 222 <item name="actionModeBackground">@android:drawable/action_bar_context_background</item> 223 <item name="actionModeCloseDrawable">@android:drawable/ic_menu_close_clear_cancel</item> 224 <item name="actionBarTabStyle">@style/Widget.ActionBarView_TabView</item> 225 <item name="actionBarTabBarStyle">@style/Widget.ActionBarView_TabBar</item> 226 <item name="actionBarTabTextStyle">@style/Widget.ActionBarView_TabText</item> 227 <item name="actionModeStyle">@style/Widget.ActionMode</item> 228 <item name="actionModeCloseButtonStyle">@style/Widget.ActionButton.CloseMode</item> 229 <item name="actionBarStyle">@android:style/Widget.ActionBar</item> 230 <item name="actionBarSize">50dip</item> 231 </style> 232 233 <!-- Variant of the default (dark) theme with no title bar --> 234 <style name="Theme.NoTitleBar"> 235 <item name="android:windowNoTitle">true</item> 236 </style> 237 238 <!-- Variant of the default (dark) theme that has no title bar and 239 fills the entire screen --> 240 <style name="Theme.NoTitleBar.Fullscreen"> 241 <item name="android:windowFullscreen">true</item> 242 <item name="android:windowContentOverlay">@null</item> 243 </style> 244 245 <!-- Theme for a light background with dark text on top. Set your activity 246 to this theme if you would like such an appearance. As with the 247 default theme, you should try to assume little more than that the 248 background will be a light color. --> 249 <style name="Theme.Light"> 250 <item name="windowBackground">@drawable/screen_background_light</item> 251 <item name="colorBackground">@android:color/background_light</item> 252 <item name="colorForeground">@color/bright_foreground_light</item> 253 <item name="colorForegroundInverse">@android:color/bright_foreground_light_inverse</item> 254 255 <item name="textColorPrimary">@android:color/primary_text_light</item> 256 <item name="textColorSecondary">@android:color/secondary_text_light</item> 257 <item name="textColorTertiary">@android:color/tertiary_text_light</item> 258 <item name="textColorPrimaryInverse">@android:color/primary_text_dark</item> 259 <item name="textColorSecondaryInverse">@android:color/secondary_text_dark</item> 260 <item name="textColorTertiaryInverse">@android:color/tertiary_text_dark</item> 261 <item name="textColorPrimaryDisableOnly">@android:color/primary_text_light_disable_only</item> 262 <item name="textColorPrimaryInverseDisableOnly">@android:color/primary_text_dark_disable_only</item> 263 <item name="textColorPrimaryNoDisable">@android:color/primary_text_light_nodisable</item> 264 <item name="textColorSecondaryNoDisable">@android:color/secondary_text_light_nodisable</item> 265 <item name="textColorPrimaryInverseNoDisable">@android:color/primary_text_dark_nodisable</item> 266 <item name="textColorSecondaryInverseNoDisable">@android:color/secondary_text_dark_nodisable</item> 267 <item name="textColorHint">@android:color/hint_foreground_light</item> 268 <item name="textColorHintInverse">@android:color/hint_foreground_dark</item> 269 <item name="textColorHighlight">@android:color/highlighted_text_light</item> 270 <item name="textColorHighlightInverse">@android:color/highlighted_text_dark</item> 271 <item name="textColorLink">@android:color/link_text_light</item> 272 <item name="textColorLinkInverse">@android:color/link_text_dark</item> 273 274 <item name="editTextColor">?android:attr/textColorPrimary</item> 275 <item name="listChoiceBackgroundIndicator">@android:drawable/list_selected_background_light</item> 276 277 <item name="activatedBackgroundIndicator">@android:drawable/activated_background_light</item> 278 279 <item name="popupWindowStyle">@android:style/Widget.PopupWindow</item> 280 281 <item name="textCheckMark">@android:drawable/indicator_check_mark_light</item> 282 <item name="textCheckMarkInverse">@android:drawable/indicator_check_mark_dark</item> 283 284 <item name="gestureOverlayViewStyle">@android:style/Widget.GestureOverlayView.White</item> 285 <item name="expandableListViewStyle">@android:style/Widget.ExpandableListView.White</item> 286 <item name="listViewStyle">@android:style/Widget.ListView.White</item> 287 <item name="listDivider">@drawable/divider_horizontal_bright</item> 288 <item name="listSeparatorTextViewStyle">@android:style/Widget.TextView.ListSeparator.White</item> 289 290 <item name="progressBarStyle">@android:style/Widget.ProgressBar.Inverse</item> 291 <item name="progressBarStyleSmall">@android:style/Widget.ProgressBar.Small.Inverse</item> 292 <item name="progressBarStyleLarge">@android:style/Widget.ProgressBar.Large.Inverse</item> 293 <item name="progressBarStyleInverse">@android:style/Widget.ProgressBar</item> 294 <item name="progressBarStyleSmallInverse">@android:style/Widget.ProgressBar.Small</item> 295 <item name="progressBarStyleLargeInverse">@android:style/Widget.ProgressBar.Large</item> 296 </style> 297 298 <!-- Variant of the light theme with no title bar --> 299 <style name="Theme.Light.NoTitleBar"> 300 <item name="android:windowNoTitle">true</item> 301 </style> 302 303 <!-- Variant of the light theme that has no title bar and 304 fills the entire screen --> 305 <style name="Theme.Light.NoTitleBar.Fullscreen"> 306 <item name="android:windowFullscreen">true</item> 307 <item name="android:windowContentOverlay">@null</item> 308 </style> 309 310 <!-- Special variation on the default theme that ensures the background is 311 completely black. This is useful for things like image viewers and 312 media players. If you want the normal (dark background) theme 313 do <em>not</em> use this, use {@link #Theme}. --> 314 <style name="Theme.Black"> 315 <item name="android:windowBackground">@android:color/black</item> 316 <item name="android:colorBackground">@android:color/black</item> 317 </style> 318 319 <!-- Variant of the black theme with no title bar --> 320 <style name="Theme.Black.NoTitleBar"> 321 <item name="android:windowNoTitle">true</item> 322 </style> 323 324 <!-- Variant of the black theme that has no title bar and 325 fills the entire screen --> 326 <style name="Theme.Black.NoTitleBar.Fullscreen"> 327 <item name="android:windowFullscreen">true</item> 328 <item name="android:windowContentOverlay">@null</item> 329 </style> 330 331 <!-- Default theme for windows that want to have the user's selected 332 wallpaper appear behind them. --> 333 <style name="Theme.Wallpaper"> 334 <item name="android:windowBackground">@android:color/transparent</item> 335 <item name="android:colorBackgroundCacheHint">@null</item> 336 <item name="android:windowShowWallpaper">true</item> 337 </style> 338 339 <!-- Variant of the translucent theme with no title bar --> 340 <style name="Theme.Wallpaper.NoTitleBar"> 341 <item name="android:windowNoTitle">true</item> 342 </style> 343 344 <!-- Variant of the translucent theme that has no title bar and 345 fills the entire screen --> 346 <style name="Theme.Wallpaper.NoTitleBar.Fullscreen"> 347 <item name="android:windowFullscreen">true</item> 348 <item name="android:windowContentOverlay">@null</item> 349 </style> 350 351 <!-- Theme for a wallpaper's setting activity that is designed to be on 352 top of a dark background. --> 353 <style name="Theme.WallpaperSettings"> 354 <item name="android:windowBackground">@android:drawable/screen_background_dark_transparent</item> 355 <item name="android:colorBackgroundCacheHint">@null</item> 356 <item name="android:windowIsTranslucent">true</item> 357 <item name="android:windowAnimationStyle">@android:style/Animation.Translucent</item> 358 </style> 359 360 <!-- Theme for a wallpaper's setting activity that is designed to be on 361 top of a light background. --> 362 <style name="Theme.Light.WallpaperSettings"> 363 <item name="android:windowBackground">@android:drawable/screen_background_light_transparent</item> 364 <item name="android:colorBackgroundCacheHint">@null</item> 365 <item name="android:windowIsTranslucent">true</item> 366 <item name="android:windowAnimationStyle">@android:style/Animation.Translucent</item> 367 </style> 368 369 <!-- Style to apply on top of a wallpaper settings theme when it is being 370 shown on top of the real wallpaper --> 371 <style name="ActiveWallpaperSettings"> 372 </style> 373 374 <!-- Style to apply on top of a wallpaper settings theme when it is being 375 shown on top of the real wallpaper --> 376 <style name="PreviewWallpaperSettings"> 377 </style> 378 379 <!-- Default theme for translucent activities, that is windows that allow you 380 to see through them to the windows behind. This sets up the translucent 381 flag and appropriate animations for your windows. --> 382 <style name="Theme.Translucent"> 383 <item name="android:windowBackground">@android:color/transparent</item> 384 <item name="android:colorBackgroundCacheHint">@null</item> 385 <item name="android:windowIsTranslucent">true</item> 386 <!-- Note that we use the base animation style here (that is no 387 animations) because we really have no idea how this kind of 388 activity will be used. --> 389 <item name="android:windowAnimationStyle">@android:style/Animation</item> 390 </style> 391 392 <!-- Variant of the translucent theme with no title bar --> 393 <style name="Theme.Translucent.NoTitleBar"> 394 <item name="android:windowNoTitle">true</item> 395 <item name="android:windowContentOverlay">@null</item> 396 </style> 397 398 <!-- Variant of the translucent theme that has no title bar and 399 fills the entire screen --> 400 <style name="Theme.Translucent.NoTitleBar.Fullscreen"> 401 <item name="android:windowFullscreen">true</item> 402 </style> 403 404 <!-- Default theme for activities that don't actually display a UI; that 405 is, they finish themselves before being resumed. --> 406 <style name="Theme.NoDisplay"> 407 <item name="android:windowBackground">@null</item> 408 <item name="android:windowContentOverlay">@null</item> 409 <item name="android:windowIsTranslucent">true</item> 410 <item name="android:windowAnimationStyle">@null</item> 411 <item name="android:windowDisablePreview">true</item> 412 <item name="android:windowNoDisplay">true</item> 413 </style> 414 415 <!-- Default theme for dialog windows and activities, which is used by the 416 {@link android.app.Dialog} class. This changes the window to be 417 floating (not fill the entire screen), and puts a frame around its 418 contents. You can set this theme on an activity if you would like to 419 make an activity that looks like a Dialog. --> 420 <style name="Theme.Dialog"> 421 <item name="android:windowFrame">@null</item> 422 <item name="android:windowTitleStyle">@android:style/DialogWindowTitle</item> 423 <item name="android:windowBackground">@android:drawable/panel_background</item> 424 <item name="android:windowIsFloating">true</item> 425 <item name="android:windowContentOverlay">@null</item> 426 <item name="android:windowAnimationStyle">@android:style/Animation.Dialog</item> 427 <item name="android:windowSoftInputMode">stateUnspecified|adjustPan</item> 428 429 <item name="android:colorBackgroundCacheHint">@null</item> 430 431 <item name="textAppearance">@android:style/TextAppearance</item> 432 <item name="textAppearanceInverse">@android:style/TextAppearance.Inverse</item> 433 434 <item name="textColorPrimary">@android:color/primary_text_dark</item> 435 <item name="textColorSecondary">@android:color/secondary_text_dark</item> 436 <item name="textColorTertiary">@android:color/tertiary_text_dark</item> 437 <item name="textColorPrimaryInverse">@android:color/primary_text_light</item> 438 <item name="textColorSecondaryInverse">@android:color/secondary_text_light</item> 439 <item name="textColorTertiaryInverse">@android:color/tertiary_text_light</item> 440 <item name="textColorPrimaryDisableOnly">@android:color/primary_text_dark_disable_only</item> 441 <item name="textColorPrimaryInverseDisableOnly">@android:color/primary_text_light_disable_only</item> 442 <item name="textColorPrimaryNoDisable">@android:color/primary_text_dark_nodisable</item> 443 <item name="textColorSecondaryNoDisable">@android:color/secondary_text_dark_nodisable</item> 444 <item name="textColorPrimaryInverseNoDisable">@android:color/primary_text_light_nodisable</item> 445 <item name="textColorSecondaryInverseNoDisable">@android:color/secondary_text_light_nodisable</item> 446 <item name="textColorHint">@android:color/hint_foreground_dark</item> 447 <item name="textColorHintInverse">@android:color/hint_foreground_light</item> 448 <item name="textColorSearchUrl">@android:color/search_url_text</item> 449 450 <item name="textAppearanceLarge">@android:style/TextAppearance.Large</item> 451 <item name="textAppearanceMedium">@android:style/TextAppearance.Medium</item> 452 <item name="textAppearanceSmall">@android:style/TextAppearance.Small</item> 453 <item name="textAppearanceLargeInverse">@android:style/TextAppearance.Large.Inverse</item> 454 <item name="textAppearanceMediumInverse">@android:style/TextAppearance.Medium.Inverse</item> 455 <item name="textAppearanceSmallInverse">@android:style/TextAppearance.Small.Inverse</item> 456 </style> 457 458 <!-- Variation of Theme.Dialog that does not include a frame (or background). 459 The view hierarchy of the dialog is responsible for drawing all of 460 its pixels. --> 461 <style name="Theme.Dialog.NoFrame"> 462 <item name="windowBackground">@android:color/transparent</item> 463 <item name="android:windowFrame">@null</item> 464 <item name="windowContentOverlay">@null</item> 465 <item name="android:windowAnimationStyle">@null</item> 466 <item name="android:backgroundDimEnabled">false</item> 467 <item name="android:windowIsTranslucent">true</item> 468 <item name="android:windowNoTitle">true</item> 469 </style> 470 471 <!-- Default theme for alert dialog windows, which is used by the 472 {@link android.app.AlertDialog} class. This is basically a dialog 473 but sets the background to empty so it can do two-tone backgrounds. --> 474 <style name="Theme.Dialog.Alert"> 475 <item name="windowBackground">@android:color/transparent</item> 476 <item name="windowTitleStyle">@android:style/DialogWindowTitle</item> 477 <item name="windowContentOverlay">@null</item> 478 </style> 479 480 <!-- Default dark theme for panel windows. This removes all extraneous 481 window decorations, so you basically have an empty rectangle in which 482 to place your content. It makes the window floating, with a transparent 483 background, and turns off dimming behind the window. --> 484 <style name="Theme.Panel"> 485 <item name="android:windowBackground">@android:color/transparent</item> 486 <item name="android:colorBackgroundCacheHint">@null</item> 487 <item name="android:windowFrame">@null</item> 488 <item name="android:windowContentOverlay">@null</item> 489 <item name="android:windowIsFloating">true</item> 490 <item name="android:backgroundDimEnabled">false</item> 491 <item name="android:windowIsTranslucent">true</item> 492 <item name="android:windowNoTitle">true</item> 493 </style> 494 495 <!-- Default light theme for panel windows. This removes all extraneous 496 window decorations, so you basically have an empty rectangle in which 497 to place your content. It makes the window floating, with a transparent 498 background, and turns off dimming behind the window. --> 499 <style name="Theme.Light.Panel"> 500 <item name="android:windowBackground">@android:color/transparent</item> 501 <item name="android:colorBackgroundCacheHint">@null</item> 502 <item name="android:windowFrame">@null</item> 503 <item name="android:windowContentOverlay">@null</item> 504 <item name="android:windowIsFloating">true</item> 505 <item name="android:backgroundDimEnabled">false</item> 506 <item name="android:windowIsTranslucent">true</item> 507 <item name="android:windowNoTitle">true</item> 508 </style> 509 510 <!-- Default theme for input methods, which is used by the 511 {@link android.inputmethodservice.InputMethodService} class. 512 this inherits from Theme.NoTitleBar, but makes the background 513 transparent, the window floating and translucent, and ensures that 514 it does not dim the UI behind it. This also configures the window 515 with the standard IME animations and visuals. --> 516 <style name="Theme.InputMethod" parent="Theme.Panel"> 517 <item name="android:windowAnimationStyle">@android:style/Animation.InputMethod</item> 518 <item name="android:imeFullscreenBackground">@android:drawable/input_method_fullscreen_background</item> 519 <item name="android:imeExtractEnterAnimation">@android:anim/input_method_extract_enter</item> 520 <item name="android:imeExtractExitAnimation">@android:anim/input_method_extract_exit</item> 521 </style> 522 523 <!-- Theme for the search input bar. --> 524 <style name="Theme.SearchBar" parent="Theme.Panel"> 525 <item name="windowContentOverlay">@null</item> 526 </style> 527 528 <!-- Theme for the search input bar when doing global search. The only 529 difference from non-global search is that we do not dim the background. --> 530 <style name="Theme.GlobalSearchBar" parent="Theme.Panel"> 531 <item name="windowContentOverlay">@null</item> 532 </style> 533 534 <!-- Menu Themes --> 535 <eat-comment /> 536 537 <style name="Theme.IconMenu"> 538 <!-- Menu/item attributes --> 539 <item name="android:itemTextAppearance">@android:style/TextAppearance.Widget.IconMenu.Item</item> 540 <item name="android:itemBackground">@android:drawable/menu_selector</item> 541 <item name="android:itemIconDisabledAlpha">?android:attr/disabledAlpha</item> 542 <item name="android:horizontalDivider">@android:drawable/divider_horizontal_dark</item> 543 <item name="android:verticalDivider">@android:drawable/divider_vertical_dark</item> 544 <item name="android:windowAnimationStyle">@android:style/Animation.OptionsPanel</item> 545 <item name="android:moreIcon">@android:drawable/ic_menu_more</item> 546 <item name="android:background">@null</item> 547 </style> 548 549 <style name="Theme.ExpandedMenu"> 550 <!-- Menu/item attributes --> 551 <item name="android:itemTextAppearance">?android:attr/textAppearanceLarge</item> 552 <item name="android:listViewStyle">@android:style/Widget.ListView.Menu</item> 553 <item name="android:windowAnimationStyle">@android:style/Animation.OptionsPanel</item> 554 <item name="android:background">@null</item> 555 </style> 556 557 <!-- @hide --> 558 <style name="Theme.Dialog.AppError"> 559 <item name="windowFrame">@null</item> 560 <item name="windowTitleStyle">@android:style/DialogWindowTitle</item> 561 <item name="windowBackground">@android:color/transparent</item> 562 <item name="windowIsFloating">true</item> 563 <item name="windowContentOverlay">@null</item> 564 <item name="textAppearance">@style/TextAppearance.Theme.Dialog.AppError</item> 565 </style> 566 567 <!-- Special theme for the recent apps dialog, to allow customization 568 with overlays. --> 569 <style name="Theme.Dialog.RecentApplications"> 570 <item name="windowFrame">@null</item> 571 <item name="windowBackground">@android:color/transparent</item> 572 <item name="android:windowAnimationStyle">@android:style/Animation.RecentApplications</item> 573 <item name="android:textColor">@android:color/secondary_text_nofocus</item> 574 </style> 575 576 <!-- Default theme for window that looks like a toast. --> 577 <style name="Theme.Toast" parent="@android:style/Theme.Dialog"> 578 <item name="android:windowBackground">@android:drawable/toast_frame</item> 579 <item name="android:windowAnimationStyle">@android:style/Animation.Toast</item> 580 <item name="android:backgroundDimEnabled">false</item> 581 </style> 582 583 <!-- Default theme with an Action Bar. --> 584 <style name="Theme.WithActionBar"> 585 <item name="android:windowActionBar">true</item> 586 </style> 587 588 <!-- No title bar, but Action Mode bars will overlay application content 589 instead of pushing it down to make room. --> 590 <style name="Theme.NoTitleBar.OverlayActionModes"> 591 <item name="android:windowActionModeOverlay">true</item> 592 </style> 593 594 <!-- New Honeycomb holographic theme. Dark version. The widgets in the 595 holographic theme are translucent on their brackground, so applications 596 must ensure that any background they use with this theme is itself 597 dark; otherwise, it will be difficult to see the widgets. The new 598 UI style also includes a full action bar by default. --> 599 <style name="Theme.Holo"> 600 <item name="editTextBackground">@android:drawable/edit_text_holo_dark</item> 601 <item name="editTextColor">?android:attr/textColorPrimary</item> 602 <item name="android:windowActionBar">true</item> 603 <item name="listChoiceIndicatorSingle">@android:drawable/btn_radio_holo_dark</item> 604 <item name="listChoiceIndicatorMultiple">@android:drawable/btn_check_holo_dark</item> 605 </style> 606 607 <!-- New Honeycomb holographic theme. Light version. The widgets in the 608 holographic theme are translucent on their brackground, so applications 609 must ensure that any background they use with this theme is itself 610 light; otherwise, it will be difficult to see the widgets. The new 611 UI style also includes a full action bar by default. --> 612 <style name="Theme.Light.Holo"> 613 <item name="editTextBackground">@android:drawable/edit_text_holo_light</item> 614 <item name="android:windowActionBar">true</item> 615 <item name="listChoiceIndicatorSingle">@android:drawable/btn_radio_holo_light</item> 616 <item name="listChoiceIndicatorMultiple">@android:drawable/btn_check_holo_light</item> 617 </style> 618 619 <!-- Variant of the holographic (dark) theme with no action bar. --> 620 <style name="Theme.Holo.NoActionBar"> 621 <item name="android:windowActionBar">false</item> 622 <item name="android:windowNoTitle">true</item> 623 </style> 624 625 <!-- Variant of the holographic (dark) theme that has no title bar and fills 626 the entire screen --> 627 <style name="Theme.Holo.NoActionBar.Fullscreen"> 628 <item name="android:windowFullscreen">true</item> 629 <item name="android:windowContentOverlay">@null</item> 630 </style> 631 632 <!-- Variant of the holographic light theme with no action bar --> 633 <style name="Theme.Light.Holo.NoActionBar"> 634 <item name="android:windowActionBar">false</item> 635 <item name="android:windowNoTitle">true</item> 636 </style> 637 638 <!-- Variant of the holographic light theme that has no title bar and fills 639 the entire screen --> 640 <style name="Theme.Light.Holo.NoActionBar.Fullscreen"> 641 <item name="android:windowFullscreen">true</item> 642 <item name="android:windowContentOverlay">@null</item> 643 </style> 644 645</resources> 646