• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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    <!-- Base application theme is the default theme. -->
34    <style name="Theme" parent="android:Theme">
35    </style>
36
37    <!-- Base application theme is the default theme. -->
38    <style name="BadTheme" parent="@android:style/Theme.Holo.Light.NoActionBar">
39    </style>
40
41    <!-- Variation on our application theme that forces a plain
42        text style. -->
43    <style name="Theme.PlainText">
44        <item name="android:textAppearance">@style/TextAppearance.Theme.PlainText</item>
45    </style>
46
47    <!-- Variation on our application theme that has a black
48         background. -->
49    <style name="Theme.Black">
50        <item name="android:windowBackground">@drawable/screen_background_black</item>
51    </style>
52
53    <!-- A theme for a custom dialog appearance.  Here we use an ugly
54         custom frame. -->
55    <style name="Theme.CustomDialog" parent="android:style/Theme.Dialog">
56        <item name="android:windowBackground">@drawable/filled_box</item>
57    </style>
58
59    <!-- A theme that has a wallpaper background.  Here we explicitly specify
60         that this theme is to inherit from the system's wallpaper theme,
61         which sets up various attributes correctly. -->
62    <style name="Theme.Wallpaper" parent="android:style/Theme.Wallpaper">
63        <item name="android:colorForeground">#fff</item>
64    </style>
65
66    <!-- A theme that has a translucent background.  Here we explicitly specify
67         that this theme is to inherit from the system's translucent theme,
68         which sets up various attributes correctly. -->
69    <style name="Theme.Translucent" parent="android:style/Theme.Translucent">
70        <item name="android:windowBackground">@drawable/translucent_background</item>
71        <item name="android:windowNoTitle">true</item>
72        <item name="android:colorForeground">#fff</item>
73    </style>
74
75    <!-- Variation on our application theme that has a transparent
76         background; this example completely removes the background,
77         allowing the activity to decide how to composite.  Also here we
78         force the translucency ourself rather than making use of the built-in
79         translucent theme. -->
80    <style name="Theme.Transparent">
81        <item name="android:windowIsTranslucent">true</item>
82        <item name="android:windowAnimationStyle">@android:style/Animation.Translucent</item>
83        <item name="android:windowBackground">@drawable/transparent_background</item>
84        <item name="android:windowNoTitle">true</item>
85        <item name="android:colorForeground">#fff</item>
86    </style>
87
88    <!-- Older platforms don't have Theme.Holo.DialogWhenLarge; we will define
89         our own wrapper theme that uses it only when running on the appropriate
90         platform version.  On older platforms, we always use the generic
91         fullscreen theme, because they don't support some feature that help
92         in correctly laying out an activity as a dialog. -->
93    <style name="ThemeDialogWhenLarge" parent="android:style/Theme">
94    </style>
95
96    <style name="TextAppearance.Theme.PlainText" parent="android:TextAppearance.Theme">
97        <item name="android:textStyle">normal</item>
98    </style>
99
100    <style name="ImageView120dpi">
101        <item name="android:src">@drawable/stylogo120dpi</item>
102        <item name="android:layout_width">wrap_content</item>
103        <item name="android:layout_height">wrap_content</item>
104    </style>
105
106    <style name="ImageView160dpi">
107        <item name="android:src">@drawable/stylogo160dpi</item>
108        <item name="android:layout_width">wrap_content</item>
109        <item name="android:layout_height">wrap_content</item>
110    </style>
111
112    <style name="ImageView240dpi">
113        <item name="android:src">@drawable/stylogo240dpi</item>
114        <item name="android:layout_width">wrap_content</item>
115        <item name="android:layout_height">wrap_content</item>
116    </style>
117</resources>
118