| <?xml version="1.0" encoding="utf-8"?> |
| <!-- Copyright (C) 2013 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> |
| |
| <!-- |
| Theme in the "Platform.Theme.AppCompat" family are designed to be aliases for the default |
| theme on a given platform version and should set up the default theme ready for adding our |
| unbundled Action Bar. |
| --> |
| <eat-comment/> |
| <style name="Platform.Theme.AppCompat" parent="android:Theme.Holo"> |
| <item name="android:windowNoTitle">true</item> |
| <item name="android:windowActionBar">false</item> |
| |
| <!-- |
| A native Action Mode could be displayed (for text selection, etc) so we need to ensure |
| that it is positioned correctly, so we request windowActionModeOverlay so that it |
| displays over the compat Action Bar. |
| --> |
| <item name="android:windowActionModeOverlay">true</item> |
| </style> |
| |
| <style name="Platform.Theme.AppCompat.Light" parent="android:Theme.Holo.Light"> |
| <item name="android:windowNoTitle">true</item> |
| <item name="android:windowActionBar">false</item> |
| |
| <!-- |
| A native Action Mode could be displayed (for text selection, etc) so we need to ensure |
| that it is positioned correctly, so we request windowActionModeOverlay so that it |
| displays over the compat Action Bar. |
| --> |
| <item name="android:windowActionModeOverlay">true</item> |
| </style> |
| |
| <style name="Platform.Theme.AppCompat.Dialog" parent="android:Theme.Holo.Dialog" /> |
| |
| <style name="Platform.Theme.AppCompat.Light.Dialog" parent="android:Theme.Holo.Light.Dialog" /> |
| |
| <style name="Overlay.Theme.AppCompat.Light.DarkActionBar" parent="Base.Theme.AppCompat.Light.DarkActionBar"> |
| <!-- Action Bar styling attributes --> |
| <item name="actionBarSize">?android:attr/actionBarSize</item> |
| <item name="actionBarDivider">?android:attr/actionBarDivider</item> |
| <item name="actionButtonStyle">?android:attr/actionButtonStyle</item> |
| <item name="actionMenuTextColor">?android:attr/actionMenuTextColor</item> |
| <item name="actionMenuTextAppearance">?android:attr/actionMenuTextAppearance</item> |
| <item name="actionOverflowButtonStyle">?android:attr/actionOverflowButtonStyle</item> |
| <item name="homeAsUpIndicator">?android:attr/homeAsUpIndicator</item> |
| |
| <!-- For PopupMenu --> |
| <item name="listPreferredItemHeightSmall">?android:attr/listPreferredItemHeightSmall</item> |
| <item name="textAppearanceLargePopupMenu">?android:attr/textAppearanceLargePopupMenu</item> |
| <item name="textAppearanceSmallPopupMenu">?android:attr/textAppearanceSmallPopupMenu</item> |
| |
| <!-- General view attributes --> |
| <item name="selectableItemBackground">?android:attr/selectableItemBackground</item> |
| |
| <!-- Copy our color theme attributes to the framework --> |
| <item name="android:colorPrimary">?attr/colorPrimary</item> |
| <item name="android:colorPrimaryDark">?attr/colorPrimaryDark</item> |
| <item name="android:colorAccent">?attr/colorAccent</item> |
| <item name="android:colorControlNormal">?attr/colorControlNormal</item> |
| <item name="android:colorControlActivated">?attr/colorControlActivated</item> |
| <item name="android:colorControlHighlight">?attr/colorControlHighlight</item> |
| <!-- TODO: <item name="android:colorButtonNormal">?attr/colorButtonNormal</item>--> |
| </style> |
| |
| |
| |
| <style name="Base.Theme.AppCompat.Dialog.FixedSize" parent="Platform.Theme.AppCompat.Dialog"> |
| <item name="windowFixedWidthMajor">@dimen/dialog_fixed_width_major</item> |
| <item name="windowFixedWidthMinor">@dimen/dialog_fixed_width_minor</item> |
| <item name="windowFixedHeightMajor">@dimen/dialog_fixed_height_major</item> |
| <item name="windowFixedHeightMinor">@dimen/dialog_fixed_height_minor</item> |
| <item name="windowActionBar">false</item> |
| |
| <!-- Attributes populated from the framework to be read by apps --> |
| <item name="buttonBarStyle">?android:attr/buttonBarStyle</item> |
| <item name="buttonBarButtonStyle">?android:attr/buttonBarButtonStyle</item> |
| <item name="selectableItemBackground">?android:attr/selectableItemBackground</item> |
| </style> |
| |
| <style name="Base.Theme.AppCompat.Dialog.Light.FixedSize" |
| parent="Platform.Theme.AppCompat.Light.Dialog"> |
| <item name="windowFixedWidthMajor">@dimen/dialog_fixed_width_major</item> |
| <item name="windowFixedWidthMinor">@dimen/dialog_fixed_width_minor</item> |
| <item name="windowFixedHeightMajor">@dimen/dialog_fixed_height_major</item> |
| <item name="windowFixedHeightMinor">@dimen/dialog_fixed_height_minor</item> |
| <item name="windowActionBar">false</item> |
| |
| <!-- Attributes populated from the framework to be read by apps --> |
| <item name="buttonBarStyle">?android:attr/buttonBarStyle</item> |
| <item name="buttonBarButtonStyle">?android:attr/buttonBarButtonStyle</item> |
| <item name="selectableItemBackground">?android:attr/selectableItemBackground</item> |
| </style> |
| |
| </resources> |