1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- Copyright (C) 2007 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 <!-- A custom theme that is a variation on the light them with a different 19 background color. --> 20 <color name="custom_theme_color">#b0b0ff</color> 21 <style name="CustomTheme" parent="android:Theme.Light"> 22 <item name="android:windowBackground">@color/custom_theme_color</item> 23 <item name="android:colorBackground">@color/custom_theme_color</item> 24 </style> 25 26 <!-- This is a theme that will adjust itself depending on the API version. 27 The default definition is the safe one, using a theme that has always 28 been defined. Look at values-11/styles.xml for a variation that is 29 selected when the holographic theme is available. --> 30 <style name="ThemeHolo" parent="android:Theme"> 31 </style> 32 33 <!-- This is a theme that will adjust itself depending on the API version. 34 The default definition is the safe one, using a theme that has always 35 been defined. Look at values-11/styles.xml for a variation that is 36 selected when the holographic theme is available. --> 37 <style name="ThemeHoloDialog" parent="android:Theme.Dialog"> 38 </style> 39 40 <!-- Base application theme is the default theme. --> 41 <style name="Theme" parent="android:Theme"> 42 </style> 43 44 <!-- Base application theme is the default theme. --> 45 <style name="BadTheme" parent="@android:style/Theme.Holo.Light.NoActionBar"> 46 </style> 47 48 <!-- Variation on our application theme that forces a plain 49 text style. --> 50 <style name="Theme.PlainText"> 51 <item name="android:textAppearance">@style/TextAppearance.Theme.PlainText</item> 52 </style> 53 54 <!-- Variation on our application theme that has a black 55 background. --> 56 <style name="Theme.Black"> 57 <item name="android:windowBackground">@drawable/screen_background_black</item> 58 </style> 59 60 <!-- A theme for a custom dialog appearance. Here we use an ugly 61 custom frame. --> 62 <style name="Theme.CustomDialog" parent="android:style/Theme.Dialog"> 63 <item name="android:windowBackground">@drawable/filled_box</item> 64 </style> 65 66 <!-- A theme that has a wallpaper background. Here we explicitly specify 67 that this theme is to inherit from the system's wallpaper theme, 68 which sets up various attributes correctly. --> 69 <style name="Theme.Wallpaper" parent="android:style/Theme.Wallpaper"> 70 <item name="android:colorForeground">#fff</item> 71 </style> 72 73 <!-- A theme that has a translucent background. Here we explicitly specify 74 that this theme is to inherit from the system's translucent theme, 75 which sets up various attributes correctly. --> 76 <style name="Theme.Translucent" parent="android:style/Theme.Translucent"> 77 <item name="android:windowBackground">@drawable/translucent_background</item> 78 <item name="android:windowNoTitle">true</item> 79 <item name="android:colorForeground">#fff</item> 80 </style> 81 82 <!-- Variation on our application theme that has a transparent 83 background; this example completely removes the background, 84 allowing the activity to decide how to composite. Also here we 85 force the translucency ourself rather than making use of the built-in 86 translucent theme. --> 87 <style name="Theme.Transparent"> 88 <item name="android:windowIsTranslucent">true</item> 89 <item name="android:windowAnimationStyle">@android:style/Animation.Translucent</item> 90 <item name="android:windowBackground">@drawable/transparent_background</item> 91 <item name="android:windowNoTitle">true</item> 92 <item name="android:colorForeground">#fff</item> 93 </style> 94 95 <!-- Older platforms don't have Theme.Holo.DialogWhenLarge; we will define 96 our own wrapper theme that uses it only when running on the appropriate 97 platform version. On older platforms, we always use the generic 98 fullscreen theme, because they don't support some feature that help 99 in correctly laying out an activity as a dialog. --> 100 <style name="ThemeDialogWhenLarge" parent="android:style/Theme"> 101 </style> 102 103 <style name="TextAppearance.Theme.PlainText" parent="android:TextAppearance.Theme"> 104 <item name="android:textStyle">normal</item> 105 </style> 106 107 <style name="ImageView120dpi"> 108 <item name="android:src">@drawable/stylogo120dpi</item> 109 <item name="android:layout_width">wrap_content</item> 110 <item name="android:layout_height">wrap_content</item> 111 </style> 112 113 <style name="ImageView160dpi"> 114 <item name="android:src">@drawable/stylogo160dpi</item> 115 <item name="android:layout_width">wrap_content</item> 116 <item name="android:layout_height">wrap_content</item> 117 </style> 118 119 <style name="ImageView240dpi"> 120 <item name="android:src">@drawable/stylogo240dpi</item> 121 <item name="android:layout_width">wrap_content</item> 122 <item name="android:layout_height">wrap_content</item> 123 </style> 124 </resources> 125