blob: 3664ff0341c8be1d5729468d5017abc5512cf4ff [file] [log] [blame]
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2012 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<resources>
<!-- Themes in the "Theme.Base" family vary based on the current platform
version to provide the correct basis on each device. You probably don't
want to use them directly in your apps.
Themes in the "Theme.AppCompat" family are meant to be extended or used
directly by apps. -->
<eat-comment />
<!-- Base platform-dependent theme providing an action bar in a dark-themed activity. -->
<style name="Theme.Base.AppCompat" parent="@android:style/Theme">
<!-- Remove system title bars; we will add the action bar ourselves. -->
<item name="android:windowNoTitle">true</item>
<item name="buttonBarStyle">@android:style/ButtonBar</item>
<item name="buttonBarButtonStyle">@android:style/Widget.Button</item>
<item name="selectableItemBackground">?android:attr/listSelector</item>
<item name="dividerVertical">@drawable/appcompat_divider_dark</item>
<item name="dividerHorizontal">@drawable/appcompat_divider_dark</item>
<item name="actionBarDivider">?attr/dividerVertical</item>
<item name="listPreferredItemHeight">64dp</item>
<item name="listPreferredItemHeightSmall">48dp</item>
<item name="listPreferredItemHeightLarge">80dp</item>
<item name="listPreferredItemPaddingLeft">8dip</item>
<item name="listPreferredItemPaddingRight">8dip</item>
<item name="textAppearanceListItem">?android:attr/textAppearanceMedium</item>
<item name="textAppearanceListItemSmall">?android:attr/textAppearanceMedium</item>
<!-- List attributes -->
<item name="dropdownListPreferredItemHeight">64dip</item>
<!-- TODO(trevorjohns): The item below doesn't work. -->
<!-- <item name="popupMenuStyle">@android:style/Widget.PopupMenu</item> -->
</style>
<!-- Base platform-dependent theme providing an action bar in a light-themed activity. -->
<style name="Theme.Base.AppCompat.Light" parent="@android:style/Theme.Light">
<!-- Remove system title bars; we will add the action bar ourselves. -->
<item name="android:windowNoTitle">true</item>
<item name="buttonBarStyle">@android:style/ButtonBar</item>
<item name="buttonBarButtonStyle">@android:style/Widget.Button</item>
<item name="selectableItemBackground">?android:attr/listSelector</item>
<item name="dividerVertical">@drawable/appcompat_divider_light</item>
<item name="dividerHorizontal">@drawable/appcompat_divider_light</item>
<item name="actionBarDivider">?attr/dividerVertical</item>
<item name="listPreferredItemHeight">?android:attr/listPreferredItemHeight</item>
<item name="listPreferredItemHeightSmall">48dp</item>
<item name="listPreferredItemHeightLarge">80dp</item>
<item name="listPreferredItemPaddingLeft">8dip</item>
<item name="listPreferredItemPaddingRight">8dip</item>
<item name="textAppearanceListItem">?android:attr/textAppearanceMedium</item>
<item name="textAppearanceListItemSmall">?android:attr/textAppearanceMedium</item>
</style>
<!-- Base platform-dependent theme providing a dark action bar in a light-themed activity. -->
<style name="Theme.Base.AppCompat.Light.DarkActionBar" parent="Theme.Base.AppCompat.Light">
<item name="actionBarDivider">@drawable/appcompat_divider_dark</item>
</style>
<!-- Base platform-dependent theme providing an action bar in a dark-themed activity.
This theme will follow the device's default styling if available. -->
<style name="Theme.Base.AppCompat.DeviceDefault" parent="Theme.Base.AppCompat">
<!-- Remove system title bars; we will add the action bar ourselves. -->
<item name="android:windowNoTitle">true</item>
</style>
<!-- Base platform-dependent theme providing an action bar in a light-themed activity.
This theme will follow the device's default styling if available. -->
<style name="Theme.Base.AppCompat.DeviceDefault.Light" parent="Theme.Base.AppCompat.Light">
<!-- Remove system title bars; we will add the action bar ourselves. -->
<item name="android:windowNoTitle">true</item>
</style>
<!-- Base platform-dependent theme providing a dark action bar in a light-themed activity.
This theme will follow the device's default styling if available. -->
<style name="Theme.Base.AppCompat.DeviceDefault.Light.DarkActionBar"
parent="Theme.Base.AppCompat.Light.DarkActionBar">
</style>
<!-- Themes in the "Theme.AppCompat" family will contain an action bar by default.
If Holo themes are available on the current platform version they will be used.
A limited Holo-styled action bar will be provided on platform versions older
than 3.0. (API 11)
These theme declarations contain any version-independent specification. Items
that need to vary based on platform version should be defined in the corresponding
"Theme.Base" theme. -->
<!-- Platform-independent theme providing an action bar in a dark-themed activity. -->
<style name="Theme.AppCompat" parent="Theme.Base.AppCompat">
<item name="windowActionBar">true</item>
<item name="actionBarTabStyle">@style/Widget.AppCompat.ActionBar.TabView</item>
<item name="actionBarTabBarStyle">@style/Widget.AppCompat.ActionBar.TabBar</item>
<item name="actionBarTabTextStyle">@style/Widget.AppCompat.ActionBar.TabText</item>
<item name="actionOverflowButtonStyle">@style/Widget.AppCompat.ActionButton.Overflow</item>
<item name="actionBarStyle">@style/Widget.AppCompat.ActionBar</item>
<item name="actionBarWidgetTheme">@null</item>
<item name="actionBarSize">@dimen/action_bar_size</item>
<item name="actionBarDivider">?attr/dividerHorizontal</item>
<item name="actionBarItemBackground">?attr/selectableItemBackground</item>
<item name="actionMenuTextAppearance">@style/TextAppearance.AppCompat.Widget.ActionBar.Menu</item>
<item name="actionMenuTextColor">?android:attr/textColorPrimary</item>
<!-- TODO(trevorjohns): Does not exist on API < 11. -->
<!-- <item name="actionDropDownStyle">@android:style/Widget_Spinner_DropDown</item> -->
</style>
<!-- Platform-independent theme providing an action bar in a dark-themed activity. -->
<style name="Theme.AppCompat.Light" parent="Theme.Base.AppCompat.Light">
<item name="windowActionBar">true</item>
</style>
<!-- Platform-independent theme providing an action bar in a dark-themed activity. -->
<style name="Theme.AppCompat.Light.DarkActionBar"
parent="Theme.Base.AppCompat.Light.DarkActionBar">
<item name="windowActionBar">true</item>
</style>
<!-- Platform-independent theme providing an action bar in a dark-themed activity.
This theme will follow the device's default styling if available. -->
<style name="Theme.AppCompat.DeviceDefault" parent="Theme.Base.AppCompat.DeviceDefault">
<item name="windowActionBar">true</item>
</style>
<!-- Platform-independent theme providing an action bar in a light-themed activity.
This theme will follow the device's default styling if available. -->
<style name="Theme.AppCompat.DeviceDefault.Light"
parent="Theme.Base.AppCompat.DeviceDefault.Light">
<item name="windowActionBar">true</item>
</style>
<!-- Platform-independent theme providing a dark action bar in a light-themed activity.
This theme will follow the device's default styling if available. -->
<style name="Theme.AppCompat.DeviceDefault.Light.DarkActionBar"
parent="Theme.Base.AppCompat.DeviceDefault.Light.DarkActionBar">
<item name="windowActionBar">true</item>
</style>
</resources>