themes.xml revision 97f10fd56b796b848aaf987ac94380dd32a7117d
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="disabledAlpha">0.5</item> 34 <item name="backgroundDimAmount">0.6</item> 35 36 <!-- Text styles --> 37 <item name="textAppearance">@android:style/TextAppearance</item> 38 <item name="textAppearanceInverse">@android:style/TextAppearance.Inverse</item> 39 40 <item name="textColorPrimary">@android:color/primary_text_dark</item> 41 <item name="textColorSecondary">@android:color/secondary_text_dark</item> 42 <item name="textColorTertiary">@android:color/tertiary_text_dark</item> 43 <item name="textColorPrimaryInverse">@android:color/primary_text_light</item> 44 <item name="textColorSecondaryInverse">@android:color/secondary_text_light</item> 45 <item name="textColorTertiaryInverse">@android:color/tertiary_text_light</item> 46 <item name="textColorPrimaryDisableOnly">@android:color/primary_text_dark_disable_only</item> 47 <item name="textColorPrimaryNoDisable">@android:color/primary_text_dark_nodisable</item> 48 <item name="textColorSecondaryNoDisable">@android:color/secondary_text_dark_nodisable</item> 49 <item name="textColorPrimaryInverseNoDisable">@android:color/primary_text_light_nodisable</item> 50 <item name="textColorSecondaryInverseNoDisable">@android:color/secondary_text_light_nodisable</item> 51 <item name="textColorHint">@android:color/hint_foreground_dark</item> 52 <item name="textColorHintInverse">@android:color/hint_foreground_light</item> 53 54 <item name="textAppearanceLarge">@android:style/TextAppearance.Large</item> 55 <item name="textAppearanceMedium">@android:style/TextAppearance.Medium</item> 56 <item name="textAppearanceSmall">@android:style/TextAppearance.Small</item> 57 <item name="textAppearanceLargeInverse">@android:style/TextAppearance.Large.Inverse</item> 58 <item name="textAppearanceMediumInverse">@android:style/TextAppearance.Medium.Inverse</item> 59 <item name="textAppearanceSmallInverse">@android:style/TextAppearance.Small.Inverse</item> 60 61 <item name="textAppearanceButton">@android:style/TextAppearance.Widget.Button</item> 62 63 <item name="candidatesTextStyleSpans">@android:string/candidates_style</item> 64 65 <item name="textCheckMark">@android:drawable/indicator_check_mark_dark</item> 66 <item name="textCheckMarkInverse">@android:drawable/indicator_check_mark_light</item> 67 68 <!-- Button styles --> 69 <item name="buttonStyle">@android:style/Widget.Button</item> 70 71 <item name="buttonStyleSmall">@android:style/Widget.Button.Small</item> 72 <item name="buttonStyleInset">@android:style/Widget.Button.Inset</item> 73 74 <item name="buttonStyleToggle">@android:style/Widget.Button.Toggle</item> 75 76 <!-- List attributes --> 77 <item name="listPreferredItemHeight">64dip</item> 78 <item name="listDivider">@drawable/divider_horizontal_dark</item> 79 <item name="listSeparatorTextViewStyle">@android:style/Widget.TextView.ListSeparator</item> 80 81 <item name="listChoiceIndicatorSingle">@android:drawable/btn_radio</item> 82 <item name="listChoiceIndicatorMultiple">@android:drawable/btn_check</item> 83 84 <item name="expandableListPreferredItemPaddingLeft">40dip</item> 85 <item name="expandableListPreferredChildPaddingLeft"> 86 ?android:attr/expandableListPreferredItemPaddingLeft</item> 87 88 <item name="expandableListPreferredItemIndicatorLeft">3dip</item> 89 <item name="expandableListPreferredItemIndicatorRight">33dip</item> 90 <item name="expandableListPreferredChildIndicatorLeft"> 91 ?android:attr/expandableListPreferredItemIndicatorLeft</item> 92 <item name="expandableListPreferredChildIndicatorRight"> 93 ?android:attr/expandableListPreferredItemIndicatorRight</item> 94 95 <!-- Gallery attributes --> 96 <item name="galleryItemBackground">@android:drawable/gallery_item_background</item> 97 98 <!-- Window attributes --> 99 <item name="windowBackground">@android:drawable/screen_background_dark</item> 100 <item name="windowFrame">@null</item> 101 <item name="windowNoTitle">false</item> 102 <item name="windowFullscreen">false</item> 103 <item name="windowIsFloating">false</item> 104 <item name="windowContentOverlay">@android:drawable/title_bar_shadow</item> 105 <item name="windowTitleStyle">@android:style/WindowTitle</item> 106 <item name="windowTitleSize">25dip</item> 107 <item name="windowTitleBackgroundStyle">@android:style/WindowTitleBackground</item> 108 <item name="android:windowAnimationStyle">@android:style/Animation.Activity</item> 109 <item name="android:windowSoftInputMode">stateUnspecified|adjustUnspecified</item> 110 111 <!-- Dialog attributes --> 112 <item name="alertDialogStyle">@android:style/AlertDialog</item> 113 114 <!-- Panel attributes --> 115 <item name="panelBackground">@android:drawable/menu_background</item> 116 <item name="panelFullBackground">@android:drawable/menu_background_fill_parent_width</item> 117 <item name="panelColorBackground">#fff</item> 118 <item name="panelColorForeground">?android:attr/textColorPrimaryInverse</item> 119 <item name="panelTextAppearance">?android:attr/textAppearanceInverse</item> 120 121 <!-- Scrollbar attributes --> 122 <item name="scrollbarSize">10dip</item> 123 <item name="scrollbarThumbHorizontal">@android:drawable/scrollbar_handle_horizontal</item> 124 <item name="scrollbarThumbVertical">@android:drawable/scrollbar_handle_vertical</item> 125 <item name="scrollbarTrackHorizontal">@null</item> 126 <item name="scrollbarTrackVertical">@null</item> 127 128 <!-- Widget styles --> 129 <item name="absListViewStyle">@android:style/Widget.AbsListView</item> 130 <item name="autoCompleteTextViewStyle">@android:style/Widget.AutoCompleteTextView</item> 131 <item name="checkboxStyle">@android:style/Widget.CompoundButton.CheckBox</item> 132 <item name="dropDownListViewStyle">@android:style/Widget.ListView.DropDown</item> 133 <item name="editTextStyle">@android:style/Widget.EditText</item> 134 <item name="expandableListViewStyle">@android:style/Widget.ExpandableListView</item> 135 <item name="galleryStyle">@android:style/Widget.Gallery</item> 136 <item name="gridViewStyle">@android:style/Widget.GridView</item> 137 <item name="imageButtonStyle">@android:style/Widget.ImageButton</item> 138 <item name="imageWellStyle">@android:style/Widget.ImageWell</item> 139 <item name="listViewStyle">@android:style/Widget.ListView</item> 140 <item name="listViewWhiteStyle">@android:style/Widget.ListView.White</item> 141 <item name="popupWindowStyle">@android:style/Widget.PopupWindow</item> 142 <item name="progressBarStyle">@android:style/Widget.ProgressBar</item> 143 <item name="progressBarStyleHorizontal">@android:style/Widget.ProgressBar.Horizontal</item> 144 <item name="progressBarStyleSmall">@android:style/Widget.ProgressBar.Small</item> 145 <item name="progressBarStyleSmallTitle">@android:style/Widget.ProgressBar.Small.Title</item> 146 <item name="progressBarStyleLarge">@android:style/Widget.ProgressBar.Large</item> 147 <item name="seekBarStyle">@android:style/Widget.SeekBar</item> 148 <item name="ratingBarStyle">@android:style/Widget.RatingBar</item> 149 <item name="ratingBarStyleIndicator">@android:style/Widget.RatingBar.Indicator</item> 150 <item name="ratingBarStyleSmall">@android:style/Widget.RatingBar.Small</item> 151 <item name="radioButtonStyle">@android:style/Widget.CompoundButton.RadioButton</item> 152 <item name="scrollViewStyle">@android:style/Widget.ScrollView</item> 153 <item name="horizontalScrollViewStyle">@android:style/Widget.HorizontalScrollView</item> 154 <item name="spinnerStyle">@android:style/Widget.Spinner</item> 155 <item name="starStyle">@android:style/Widget.CompoundButton.Star</item> 156 <item name="starStyleButtonless">@android:style/Widget.CompoundButton.StarButtonless</item> 157 <item name="tabWidgetStyle">@android:style/Widget.TabWidget</item> 158 <item name="textViewStyle">@android:style/Widget.TextView</item> 159 <item name="webViewStyle">@android:style/Widget.WebView</item> 160 <item name="dropDownItemStyle">@android:style/Widget.DropDownItem</item> 161 <item name="spinnerDropDownItemStyle">@android:style/Widget.DropDownItem.Spinner</item> 162 <item name="spinnerItemStyle">@android:style/Widget.TextView.SpinnerItem</item> 163 <item name="dropDownHintAppearance">@android:style/TextAppearance.Widget.DropDownHint</item> 164 <item name="keyboardViewStyle">@android:style/Widget.KeyboardView</item> 165 166 <!-- Preference styles --> 167 <item name="preferenceScreenStyle">@android:style/Preference.PreferenceScreen</item> 168 <item name="preferenceCategoryStyle">@android:style/Preference.Category</item> 169 <item name="preferenceStyle">@android:style/Preference</item> 170 <item name="preferenceInformationStyle">@android:style/Preference.Information</item> 171 <item name="checkBoxPreferenceStyle">@android:style/Preference.CheckBoxPreference</item> 172 <item name="yesNoPreferenceStyle">@android:style/Preference.DialogPreference.YesNoPreference</item> 173 <item name="dialogPreferenceStyle">@android:style/Preference.DialogPreference</item> 174 <item name="editTextPreferenceStyle">@android:style/Preference.DialogPreference.EditTextPreference</item> 175 <item name="ringtonePreferenceStyle">@android:style/Preference.RingtonePreference</item> 176 <item name="preferenceLayoutChild">@android:layout/preference_child</item> 177 </style> 178 179 <!-- Variant of the default (dark) theme with no title bar --> 180 <style name="Theme.NoTitleBar"> 181 <item name="android:windowNoTitle">true</item> 182 </style> 183 184 <!-- Variant of the default (dark) theme that has no title bar and 185 fills the entire screen --> 186 <style name="Theme.NoTitleBar.Fullscreen"> 187 <item name="android:windowFullscreen">true</item> 188 <item name="android:windowContentOverlay">@null</item> 189 </style> 190 191 <!-- Theme for a light background with dark text on top. Set your activity 192 to this theme if you would like such an appearance. As with the 193 default theme, you should try to assume little more than that the 194 background will be a light color. --> 195 <style name="Theme.Light"> 196 <item name="windowBackground">@drawable/screen_background_light</item> 197 <item name="colorBackground">@android:color/background_light</item> 198 <item name="colorForeground">@color/bright_foreground_light</item> 199 <item name="colorForegroundInverse">@android:color/bright_foreground_light_inverse</item> 200 201 <item name="textColorPrimary">@android:color/primary_text_light</item> 202 <item name="textColorSecondary">@android:color/secondary_text_light</item> 203 <item name="textColorTertiary">@android:color/tertiary_text_light</item> 204 <item name="textColorPrimaryInverse">@android:color/primary_text_dark</item> 205 <item name="textColorSecondaryInverse">@android:color/secondary_text_dark</item> 206 <item name="textColorTertiaryInverse">@android:color/tertiary_text_dark</item> 207 <item name="textColorPrimaryDisableOnly">@android:color/primary_text_light_disable_only</item> 208 <item name="textColorPrimaryNoDisable">@android:color/primary_text_light_nodisable</item> 209 <item name="textColorSecondaryNoDisable">@android:color/secondary_text_light_nodisable</item> 210 <item name="textColorPrimaryInverseNoDisable">@android:color/primary_text_dark_nodisable</item> 211 <item name="textColorSecondaryInverseNoDisable">@android:color/secondary_text_dark_nodisable</item> 212 <item name="textColorHint">@android:color/hint_foreground_light</item> 213 <item name="textColorHintInverse">@android:color/hint_foreground_dark</item> 214 215 <item name="popupWindowStyle">@android:style/Widget.PopupWindow</item> 216 217 <item name="textCheckMark">@android:drawable/indicator_check_mark_light</item> 218 <item name="textCheckMarkInverse">@android:drawable/indicator_check_mark_dark</item> 219 220 <item name="listViewStyle">@android:style/Widget.ListView.White</item> 221 <item name="listDivider">@drawable/divider_horizontal_bright</item> 222 <item name="listSeparatorTextViewStyle">@android:style/Widget.TextView.ListSeparator.White</item> 223 </style> 224 225 <!-- Variant of the light theme with no title bar --> 226 <style name="Theme.Light.NoTitleBar"> 227 <item name="android:windowNoTitle">true</item> 228 </style> 229 230 <!-- Variant of the light theme that has no title bar and 231 fills the entire screen --> 232 <style name="Theme.Light.NoTitleBar.Fullscreen"> 233 <item name="android:windowFullscreen">true</item> 234 <item name="android:windowContentOverlay">@null</item> 235 </style> 236 237 <!-- Special variation on the default theme that ensures the background is 238 completely black. This is useful for things like image viewers and 239 media players. If you want the normal (dark background) theme 240 do <em>not<em> use this, use {@link #Theme}. --> 241 <style name="Theme.Black"> 242 <item name="android:windowBackground">@android:color/black</item> 243 <item name="android:colorBackground">@android:color/black</item> 244 </style> 245 246 <!-- Variant of the black theme with no title bar --> 247 <style name="Theme.Black.NoTitleBar"> 248 <item name="android:windowNoTitle">true</item> 249 </style> 250 251 <!-- Variant of the black theme that has no title bar and 252 fills the entire screen --> 253 <style name="Theme.Black.NoTitleBar.Fullscreen"> 254 <item name="android:windowFullscreen">true</item> 255 <item name="android:windowContentOverlay">@null</item> 256 </style> 257 258 <!-- Default theme for translucent activities, that is windows that allow you 259 to see through them to the windows behind. This sets up the translucent 260 flag and appropriate animations for your windows. --> 261 <style name="Theme.Translucent"> 262 <item name="android:windowBackground">@android:color/transparent</item> 263 <item name="android:windowIsTranslucent">true</item> 264 <item name="android:windowAnimationStyle">@android:style/Animation.Translucent</item> 265 </style> 266 267 <!-- Variant of the translucent theme with no title bar --> 268 <style name="Theme.Translucent.NoTitleBar"> 269 <item name="android:windowNoTitle">true</item> 270 </style> 271 272 <!-- Variant of the translucent theme that has no title bar and 273 fills the entire screen --> 274 <style name="Theme.Translucent.NoTitleBar.Fullscreen"> 275 <item name="android:windowFullscreen">true</item> 276 <item name="android:windowContentOverlay">@null</item> 277 </style> 278 279 <!-- Default theme for activities that don't actually display a UI; that 280 is, they finish themselves before being resumed. --> 281 <style name="Theme.NoDisplay"> 282 <item name="android:windowBackground">@null</item> 283 <item name="android:windowContentOverlay">@null</item> 284 <item name="android:windowIsTranslucent">false</item> 285 <item name="android:windowAnimationStyle">@null</item> 286 <item name="android:windowDisablePreview">true</item> 287 <item name="android:windowNoDisplay">true</item> 288 </style> 289 290 <!-- Default theme for dialog windows and activities, which is used by the 291 {@link android.app.Dialog} class. This changes the window to be 292 floating (not fill the entire screen), and puts a frame around its 293 contents. You can set this theme on an activity if you would like to 294 make an activity that looks like a Dialog. --> 295 <style name="Theme.Dialog"> 296 <item name="android:windowFrame">@null</item> 297 <item name="android:windowTitleStyle">@android:style/DialogWindowTitle</item> 298 <item name="android:windowBackground">@android:drawable/panel_background</item> 299 <item name="android:windowIsFloating">true</item> 300 <item name="android:windowContentOverlay">@null</item> 301 <item name="android:windowAnimationStyle">@android:style/Animation.Dialog</item> 302 <item name="android:windowSoftInputMode">stateUnspecified|adjustPan</item> 303 </style> 304 305 <!-- Default theme for alert dialog windows, which is used by the 306 {@link android.app.AlertDialog} class. This is basically a dialog 307 but sets the background to empty so it can do two-tone backgrounds. --> 308 <style name="Theme.Dialog.Alert"> 309 <item name="windowBackground">@android:color/transparent</item> 310 <item name="windowTitleStyle">@android:style/DialogWindowTitle</item> 311 <item name="windowIsFloating">true</item> 312 <item name="windowContentOverlay">@null</item> 313 </style> 314 315 <!-- Default dark theme for panel windows. This removes all extraneous 316 window decorations, so you basically have an empty rectangle in which 317 to place your content. It makes the window floating, with a transparent 318 background, and turns off dimming behind the window. --> 319 <style name="Theme.Panel"> 320 <item name="android:windowBackground">@android:color/transparent</item> 321 <item name="android:windowFrame">@null</item> 322 <item name="android:windowContentOverlay">@null</item> 323 <item name="android:windowIsFloating">true</item> 324 <item name="android:backgroundDimEnabled">false</item> 325 <item name="android:windowIsTranslucent">true</item> 326 <item name="android:windowNoTitle">true</item> 327 </style> 328 329 <!-- Default light theme for panel windows. This removes all extraneous 330 window decorations, so you basically have an empty rectangle in which 331 to place your content. It makes the window floating, with a transparent 332 background, and turns off dimming behind the window. --> 333 <style name="Theme.Light.Panel"> 334 <item name="android:windowBackground">@android:color/transparent</item> 335 <item name="android:windowFrame">@null</item> 336 <item name="android:windowContentOverlay">@null</item> 337 <item name="android:windowIsFloating">true</item> 338 <item name="android:backgroundDimEnabled">false</item> 339 <item name="android:windowIsTranslucent">true</item> 340 <item name="android:windowNoTitle">true</item> 341 </style> 342 343 <!-- Default theme for input methods, which is used by the 344 {@link android.inputmethodservice.InputMethodService} class. 345 this inherits from Theme.NoTitleBar, but makes the background 346 transparent, the window floating and translucent, and ensures that 347 it does not dim the UI behind it. This also configures the window 348 with the standard IME animations and visuals. --> 349 <style name="Theme.InputMethod" parent="Theme.Panel"> 350 <item name="android:windowAnimationStyle">@android:style/Animation.InputMethod</item> 351 <item name="android:imeFullscreenBackground">@android:drawable/input_method_fullscreen_background</item> 352 <item name="android:imeExtractEnterAnimation">@android:anim/input_method_extract_enter</item> 353 <item name="android:imeExtractExitAnimation">@android:anim/input_method_extract_exit</item> 354 </style> 355 356 <!-- Theme for the search input bar. --> 357 <style name="Theme.SearchBar" parent="Theme.Panel"> 358 <item name="android:backgroundDimEnabled">true</item> 359 <item name="android:windowAnimationStyle">@android:style/Animation.SearchBar</item> 360 <item name="windowContentOverlay">@null</item> 361 </style> 362 363 <!-- Menu Themes --> 364 <eat-comment /> 365 366 <style name="Theme.IconMenu"> 367 <!-- Menu/item attributes --> 368 <item name="android:itemTextAppearance">@android:style/TextAppearance.Widget.IconMenu.Item</item> 369 <item name="android:itemBackground">@android:drawable/menu_selector</item> 370 <item name="android:itemIconDisabledAlpha">?android:attr/disabledAlpha</item> 371 <item name="android:horizontalDivider">@android:drawable/divider_horizontal_bright</item> 372 <item name="android:verticalDivider">@android:drawable/divider_vertical_bright</item> 373 <item name="android:windowAnimationStyle">@android:style/Animation.OptionsPanel</item> 374 <item name="android:moreIcon">@android:drawable/ic_menu_more</item> 375 <item name="android:background">@null</item> 376 </style> 377 378 <style name="Theme.ExpandedMenu"> 379 <!-- Menu/item attributes --> 380 <item name="android:itemTextAppearance">?android:attr/textAppearanceLargeInverse</item> 381 <item name="android:listViewStyle">@android:style/Widget.ListView.Menu</item> 382 <item name="android:windowAnimationStyle">@android:style/Animation.OptionsPanel</item> 383 <item name="android:background">@null</item> 384 </style> 385 386 <!-- @hide --> 387 <style name="Theme.Dialog.AppError"> 388 <item name="windowFrame">@null</item> 389 <item name="windowTitleStyle">@android:style/DialogWindowTitle</item> 390 <item name="windowBackground">@android:color/transparent</item> 391 <item name="windowIsFloating">true</item> 392 <item name="windowContentOverlay">@null</item> 393 <item name="textAppearance">@style/TextAppearance.Theme.Dialog.AppError</item> 394 </style> 395</resources> 396