Home | History | Annotate | Download | only in values
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (C) 2011 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     <!-- This is a theme that will adjust itself depending on the API version.
     19          The default definition is the safe one, using a theme that has always
     20          been defined.  Look at values-11/styles.xml for a variation that is
     21          selected when the holographic theme is available. -->
     22     <style name="ThemeHolo" parent="android:Theme">
     23     </style>
     24 
     25     <!-- This is a theme that will adjust itself depending on the API version.
     26          The default definition is the safe one, using a theme that has always
     27          been defined.  Look at values-11/styles.xml for a variation that is
     28          selected when the holographic theme is available. -->
     29     <style name="ThemeHoloLight" parent="android:Theme.Light">
     30     </style>
     31 
     32     <!-- Older platforms don't have Theme.Holo.DialogWhenLarge; we will define
     33          our own wrapper theme that uses it only when running on the appropriate
     34          platform version.  On older platforms, we always use the generic
     35          fullscreen theme, because they don't support some feature that help
     36          in correctly laying out an activity as a dialog. -->
     37     <style name="ThemeDialogWhenLarge" parent="android:style/Theme">
     38     </style>
     39 
     40     <style name="AppTheme" parent="android:Theme.Material">
     41         <item name="android:colorPrimary">#ffff5722</item>
     42         <item name="android:colorPrimaryDark">#ffbf360c</item>
     43         <item name="android:colorAccent">#ffff5722</item>
     44     </style>
     45 
     46     <style name="CarTheme" parent="AppTheme">
     47         <!-- colorPrimaryDark is currently used in Android Auto for:
     48              - App background
     49              - Drawer right side ("more" custom actions) background
     50              - Notification icon badge tinting
     51              - Overview now playing icon tinting
     52          -->
     53         <item name="android:colorPrimaryDark">#ffbf360c</item>
     54 
     55         <!-- colorAccent is used in Android Auto for:
     56              - Spinner
     57              - progress bar
     58              - floating action button background (Play/Pause in media apps)
     59          -->
     60         <item name="android:colorAccent">#ffff5722</item>
     61     </style>
     62 </resources>
     63