Statistics
| Branch: | Tag: | Revision:

checkey / libs / appcompat / res / values-v14 / themes_base.xml @ 44e720f7

History | View | Annotate | Download (10.3 KB)

1
<?xml version="1.0" encoding="utf-8"?>
2
<!-- Copyright (C) 2012 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-v14/ file that only declares the Base themes for
27
          Ice Cream Sandwich+. You probably want to edit values/themes.xml instead. -->
28
    <eat-comment/>
29

    
30
    <!-- Base platform-dependent theme providing an action bar in a dark-themed activity. -->
31
    <style name="Theme.Base.AppCompat" parent="android:Theme.Holo">
32
        <!-- Copy system flag values for our use -->
33
        <item name="windowActionBar">?android:attr/windowActionBar</item>
34
        <item name="actionBarSize">?android:attr/actionBarSize</item>
35
        <item name="actionBarItemBackground">?android:attr/actionBarItemBackground</item>
36
        <item name="selectableItemBackground">?android:attr/selectableItemBackground</item>
37
        <item name="actionButtonStyle">?android:attr/actionButtonStyle</item>
38
        <item name="dividerVertical">?android:attr/dividerVertical</item>
39
        <item name="dividerHorizontal">?android:attr/dividerHorizontal</item>
40
        <item name="actionBarWidgetTheme">@null</item>
41
        <item name="android:actionBarWidgetTheme">?attr/actionBarWidgetTheme</item>
42

    
43
        <!-- Required for use of support_simple_spinner_dropdown_item.xml -->
44
        <item name="listPreferredItemHeight">?android:attr/listPreferredItemHeight</item>
45
        <item name="listPreferredItemHeightSmall">?android:attr/listPreferredItemHeightSmall</item>
46
        <item name="listPreferredItemHeightLarge">?android:attr/listPreferredItemHeightLarge</item>
47
        <item name="listPreferredItemPaddingLeft">?android:attr/listPreferredItemPaddingLeft</item>
48
        <item name="listPreferredItemPaddingRight">?android:attr/listPreferredItemPaddingRight
49
        </item>
50

    
51
        <!-- Attributes populated from the framework to be read by apps -->
52
        <item name="buttonBarStyle">?android:attr/buttonBarStyle</item>
53
        <item name="buttonBarButtonStyle">?android:attr/buttonBarButtonStyle</item>
54
    </style>
55

    
56
    <!-- Base platform-dependent theme providing an action bar in a light-themed activity. -->
57
    <style name="Theme.Base.AppCompat.Light" parent="android:Theme.Holo.Light">
58
        <!-- Copy system flag values for our use -->
59
        <item name="windowActionBar">?android:attr/windowActionBar</item>
60
        <item name="actionBarSize">?android:attr/actionBarSize</item>
61
        <item name="actionBarItemBackground">?android:attr/actionBarItemBackground</item>
62
        <item name="selectableItemBackground">?android:attr/selectableItemBackground</item>
63
        <item name="actionButtonStyle">?android:attr/actionButtonStyle</item>
64
        <item name="dividerVertical">?android:attr/dividerVertical</item>
65
        <item name="dividerHorizontal">?android:attr/dividerHorizontal</item>
66
        <item name="actionBarWidgetTheme">@null</item>
67
        <item name="android:actionBarWidgetTheme">?attr/actionBarWidgetTheme</item>
68

    
69
        <!-- Required for use of support_simple_spinner_dropdown_item.xml -->
70
        <item name="listPreferredItemHeight">?android:attr/listPreferredItemHeight</item>
71
        <item name="listPreferredItemHeightSmall">?android:attr/listPreferredItemHeightSmall</item>
72
        <item name="listPreferredItemHeightLarge">?android:attr/listPreferredItemHeightLarge</item>
73
        <item name="listPreferredItemPaddingLeft">?android:attr/listPreferredItemPaddingLeft</item>
74
        <item name="listPreferredItemPaddingRight">?android:attr/listPreferredItemPaddingRight
75
        </item>
76

    
77
        <!-- Attributes populated from the framework to be read by apps -->
78
        <item name="buttonBarStyle">?android:attr/buttonBarStyle</item>
79
        <item name="buttonBarButtonStyle">?android:attr/buttonBarButtonStyle</item>
80
    </style>
81

    
82
    <!-- Base platform-dependent theme providing a dark action bar in a light-themed activity. -->
83
    <style name="Theme.Base.AppCompat.Light.DarkActionBar"
84
           parent="android:Theme.Holo.Light.DarkActionBar">
85
        <!-- Copy system flag values for our use -->
86
        <item name="windowActionBar">?android:attr/windowActionBar</item>
87
        <item name="actionBarSize">?android:attr/actionBarSize</item>
88
        <item name="actionBarItemBackground">?android:attr/actionBarItemBackground</item>
89
        <item name="selectableItemBackground">?android:attr/selectableItemBackground</item>
90
        <item name="actionButtonStyle">?android:attr/actionButtonStyle</item>
91
        <item name="dividerVertical">?android:attr/dividerVertical</item>
92
        <item name="dividerHorizontal">?android:attr/dividerHorizontal</item>
93
        <item name="actionBarWidgetTheme">@style/Theme.AppCompat</item>
94
        <item name="android:actionBarWidgetTheme">?attr/actionBarWidgetTheme</item>
95

    
96
        <!-- Required for use of support_simple_spinner_dropdown_item.xml -->
97
        <item name="listPreferredItemHeight">?android:attr/listPreferredItemHeight</item>
98
        <item name="listPreferredItemHeightSmall">?android:attr/listPreferredItemHeightSmall</item>
99
        <item name="listPreferredItemHeightLarge">?android:attr/listPreferredItemHeightLarge</item>
100
        <item name="listPreferredItemPaddingLeft">?android:attr/listPreferredItemPaddingLeft</item>
101
        <item name="listPreferredItemPaddingRight">?android:attr/listPreferredItemPaddingRight
102
        </item>
103

    
104
        <!-- Attributes populated from the framework to be read by apps -->
105
        <item name="buttonBarStyle">?android:attr/buttonBarStyle</item>
106
        <item name="buttonBarButtonStyle">?android:attr/buttonBarButtonStyle</item>
107
    </style>
108

    
109
    <style name="Theme.Base.AppCompat.DialogWhenLarge"
110
           parent="Theme.Base.AppCompat.DialogWhenLarge.Base" />
111

    
112
    <style name="Theme.Base.AppCompat.Light.DialogWhenLarge"
113
           parent="Theme.Base.AppCompat.Light.DialogWhenLarge.Base" />
114

    
115
    <!--
116
        As we have defined the theme in values-large (for compat) and values-large takes precedence
117
        over values-v14, we need to reset back to the Holo parent in values-large-v14. As the themes
118
        in values-v14 & values-large-v14 are exactly the same, these "double base" themes can be
119
        inherited from in both values-v14 and values-large-v14.
120
    -->
121

    
122
    <style name="Theme.Base.AppCompat.DialogWhenLarge.Base"
123
           parent="android:Theme.Holo.DialogWhenLarge">
124
        <!-- Copy system flag values for our use -->
125
        <item name="windowActionBar">?android:attr/windowActionBar</item>
126
        <item name="actionBarSize">?android:attr/actionBarSize</item>
127
        <item name="actionBarItemBackground">?android:attr/actionBarItemBackground</item>
128
        <item name="selectableItemBackground">?android:attr/selectableItemBackground</item>
129
        <item name="actionButtonStyle">?android:attr/actionButtonStyle</item>
130
        <item name="dividerVertical">?android:attr/dividerVertical</item>
131
        <item name="dividerHorizontal">?android:attr/dividerHorizontal</item>
132
        <item name="actionBarWidgetTheme">@null</item>
133
        <item name="android:actionBarWidgetTheme">?attr/actionBarWidgetTheme</item>
134

    
135
        <!-- Required for use of support_simple_spinner_dropdown_item.xml -->
136
        <item name="listPreferredItemHeight">?android:attr/listPreferredItemHeight</item>
137
        <item name="listPreferredItemHeightSmall">?android:attr/listPreferredItemHeightSmall</item>
138
        <item name="listPreferredItemHeightLarge">?android:attr/listPreferredItemHeightLarge</item>
139
        <item name="listPreferredItemPaddingLeft">?android:attr/listPreferredItemPaddingLeft</item>
140
        <item name="listPreferredItemPaddingRight">?android:attr/listPreferredItemPaddingRight
141
        </item>
142

    
143
        <!-- Attributes populated from the framework to be read by apps -->
144
        <item name="buttonBarStyle">?android:attr/buttonBarStyle</item>
145
        <item name="buttonBarButtonStyle">?android:attr/buttonBarButtonStyle</item>
146
    </style>
147

    
148
    <style name="Theme.Base.AppCompat.Light.DialogWhenLarge.Base"
149
           parent="android:Theme.Holo.Light.DialogWhenLarge">
150
        <!-- Copy system flag values for our use -->
151
        <item name="windowActionBar">?android:attr/windowActionBar</item>
152
        <item name="actionBarSize">?android:attr/actionBarSize</item>
153
        <item name="actionBarItemBackground">?android:attr/actionBarItemBackground</item>
154
        <item name="selectableItemBackground">?android:attr/selectableItemBackground</item>
155
        <item name="actionButtonStyle">?android:attr/actionButtonStyle</item>
156
        <item name="dividerVertical">?android:attr/dividerVertical</item>
157
        <item name="dividerHorizontal">?android:attr/dividerHorizontal</item>
158
        <item name="actionBarWidgetTheme">@null</item>
159
        <item name="android:actionBarWidgetTheme">?attr/actionBarWidgetTheme</item>
160

    
161
        <!-- Required for use of support_simple_spinner_dropdown_item.xml -->
162
        <item name="listPreferredItemHeight">?android:attr/listPreferredItemHeight</item>
163
        <item name="listPreferredItemHeightSmall">?android:attr/listPreferredItemHeightSmall</item>
164
        <item name="listPreferredItemHeightLarge">?android:attr/listPreferredItemHeightLarge</item>
165
        <item name="listPreferredItemPaddingLeft">?android:attr/listPreferredItemPaddingLeft</item>
166
        <item name="listPreferredItemPaddingRight">?android:attr/listPreferredItemPaddingRight
167
        </item>
168

    
169
        <!-- Attributes populated from the framework to be read by apps -->
170
        <item name="buttonBarStyle">?android:attr/buttonBarStyle</item>
171
        <item name="buttonBarButtonStyle">?android:attr/buttonBarButtonStyle</item>
172
    </style>
173

    
174
</resources>