themes_base.xml revision 56fd50144df518461398a9b3397ee4842b346708
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2013 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    <!-- Themes in the "Theme.Base" family vary based on the current platform
20          version to provide the correct basis on each device. You probably don't
21          want to use them directly in your apps.
22
23          Themes in the "Theme.AppCompat" family are meant to be extended or used
24          directly by apps.
25
26          This is the values-v11/ file that only declares the Base themes for
27          Honeycomb+. You probably want to edit values/themes.xml instead. -->
28    <eat-comment/>
29
30    <!-- Base platform-dependent theme  -->
31    <style name="Theme.Base" parent="android:Theme.Holo">
32        <item name="android:windowNoTitle">true</item>
33        <item name="android:windowActionBar">false</item>
34
35        <!-- Attributes populated from the framework to be read by apps -->
36        <item name="buttonBarStyle">?android:attr/buttonBarStyle</item>
37        <item name="buttonBarButtonStyle">?android:attr/buttonBarButtonStyle</item>
38        <item name="selectableItemBackground">?android:attr/selectableItemBackground</item>
39    </style>
40
41    <!-- Base platform-dependent theme providing a light-themed activity. -->
42    <style name="Theme.Base.Light" parent="android:Theme.Holo.Light">
43        <item name="android:windowNoTitle">true</item>
44        <item name="android:windowActionBar">false</item>
45
46        <!-- Attributes populated from the framework to be read by apps -->
47        <item name="buttonBarStyle">?android:attr/buttonBarStyle</item>
48        <item name="buttonBarButtonStyle">?android:attr/buttonBarButtonStyle</item>
49        <item name="selectableItemBackground">?android:attr/selectableItemBackground</item>
50    </style>
51
52    <style name="Theme.Base.AppCompat.Dialog.FixedSize" parent="android:Theme.Holo.Dialog">
53        <item name="windowFixedWidthMajor">@dimen/dialog_fixed_width_major</item>
54        <item name="windowFixedWidthMinor">@dimen/dialog_fixed_width_minor</item>
55        <item name="windowFixedHeightMajor">@dimen/dialog_fixed_height_major</item>
56        <item name="windowFixedHeightMinor">@dimen/dialog_fixed_height_minor</item>
57        <item name="windowActionBar">false</item>
58
59        <!-- Attributes populated from the framework to be read by apps -->
60        <item name="buttonBarStyle">?android:attr/buttonBarStyle</item>
61        <item name="buttonBarButtonStyle">?android:attr/buttonBarButtonStyle</item>
62        <item name="selectableItemBackground">?android:attr/selectableItemBackground</item>
63    </style>
64
65    <style name="Theme.Base.AppCompat.Dialog.Light.FixedSize"
66           parent="android:Theme.Holo.Light.Dialog">
67        <item name="windowFixedWidthMajor">@dimen/dialog_fixed_width_major</item>
68        <item name="windowFixedWidthMinor">@dimen/dialog_fixed_width_minor</item>
69        <item name="windowFixedHeightMajor">@dimen/dialog_fixed_height_major</item>
70        <item name="windowFixedHeightMinor">@dimen/dialog_fixed_height_minor</item>
71        <item name="windowActionBar">false</item>
72
73        <!-- Attributes populated from the framework to be read by apps -->
74        <item name="buttonBarStyle">?android:attr/buttonBarStyle</item>
75        <item name="buttonBarButtonStyle">?android:attr/buttonBarButtonStyle</item>
76        <item name="selectableItemBackground">?android:attr/selectableItemBackground</item>
77    </style>
78
79</resources>
80