Home | History | Annotate | Download | only in values
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (C) 2007 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     <style name="CustomTheme" parent="android:Theme.Light">
     19         <item name="android:windowBackground">@color/custom_theme_color</item>
     20         <item name="android:colorBackground">@color/custom_theme_color</item>
     21     </style>
     22 
     23     <!-- This is a theme that will adjust itself depending on the API version.
     24          The default definition is the safe one, using a theme that has always
     25          been defined.  Look at values-11/styles.xml for a variation that is
     26          selected when the holographic theme is available, or look at
     27          values-XX/styles.xml for a variation that is selected when the material
     28          theme is available. -->
     29     <style name="ThemeCurrent" parent="android:Theme" />
     30 
     31     <!-- This is a theme that reflects the default theme used when no theme is
     32          specified by an application or activity. In API 14 and above, this
     33          refers to the DeviceDefault theme. -->
     34     <style name="ThemeDefault" parent="android:Theme" />
     35 
     36     <!-- This is a theme that will adjust itself depending on the API version.
     37          The default definition is the safe one, using a theme that has always
     38          been defined.  Look at values-11/styles.xml for a variation that is
     39          selected when the holographic theme is available, or look at
     40          values-XX/styles.xml for a variation that is selected when the material
     41          theme is available. -->
     42     <style name="ThemeCurrentDialog" parent="android:Theme.Dialog" />
     43 
     44     <!-- Older platforms don't have Theme.Holo.DialogWhenLarge; we will define
     45          our own wrapper theme that uses it only when running on the appropriate
     46          platform version.  On older platforms, we always use the generic
     47          fullscreen theme, because they don't support some feature that help
     48          in correctly laying out an activity as a dialog. -->
     49     <style name="ThemeCurrentDialogWhenLarge" parent="android:style/Theme" />
     50 
     51     <!-- Base application theme is the default theme. -->
     52     <style name="Theme" parent="android:Theme" />
     53 
     54     <!-- Variation on our application theme that forces a plain
     55         text style. -->
     56     <style name="Theme.PlainText">
     57         <item name="android:textAppearance">@style/TextAppearance.Theme.PlainText</item>
     58     </style>
     59 
     60     <!-- Variation on our application theme that has a black
     61          background. -->
     62     <style name="Theme.Black">
     63         <item name="android:windowBackground">@drawable/screen_background_black</item>
     64     </style>
     65 
     66     <!-- A theme for a custom dialog appearance.  Here we use an ugly
     67          custom frame. -->
     68     <style name="Theme.CustomDialog" parent="android:style/Theme.Dialog">
     69         <item name="android:windowBackground">@drawable/filled_box</item>
     70     </style>
     71 
     72     <!-- A theme that has a wallpaper background.  Here we explicitly specify
     73          that this theme is to inherit from the system's wallpaper theme,
     74          which sets up various attributes correctly. -->
     75     <style name="Theme.Wallpaper" parent="android:style/Theme.Wallpaper">
     76         <item name="android:colorForeground">#fff</item>
     77     </style>
     78 
     79     <!-- A theme that has a translucent background.  Here we explicitly specify
     80          that this theme is to inherit from the system's translucent theme,
     81          which sets up various attributes correctly. -->
     82     <style name="Theme.Translucent" parent="android:style/Theme.Translucent">
     83         <item name="android:windowBackground">@drawable/translucent_background</item>
     84         <item name="android:windowNoTitle">true</item>
     85         <item name="android:colorForeground">#fff</item>
     86     </style>
     87 
     88     <!-- Variation on our application theme that has a transparent
     89          background; this example completely removes the background,
     90          allowing the activity to decide how to composite.  Also here we
     91          force the translucency ourself rather than making use of the built-in
     92          translucent theme. -->
     93     <style name="Theme.Transparent">
     94         <item name="android:windowIsTranslucent">true</item>
     95         <item name="android:windowAnimationStyle">@android:style/Animation.Translucent</item>
     96         <item name="android:windowBackground">@drawable/transparent_background</item>
     97         <item name="android:windowNoTitle">true</item>
     98         <item name="android:colorForeground">#fff</item>
     99     </style>
    100 
    101     <style name="TextAppearance.Theme.PlainText" parent="android:TextAppearance.Theme">
    102         <item name="android:textStyle">normal</item>
    103     </style>
    104 
    105     <style name="ImageView120dpi">
    106         <item name="android:src">@drawable/stylogo120dpi</item>
    107         <item name="android:layout_width">wrap_content</item>
    108         <item name="android:layout_height">wrap_content</item>
    109     </style>
    110 
    111     <style name="ImageView160dpi">
    112         <item name="android:src">@drawable/stylogo160dpi</item>
    113         <item name="android:layout_width">wrap_content</item>
    114         <item name="android:layout_height">wrap_content</item>
    115     </style>
    116 
    117     <style name="ImageView240dpi">
    118         <item name="android:src">@drawable/stylogo240dpi</item>
    119         <item name="android:layout_width">wrap_content</item>
    120         <item name="android:layout_height">wrap_content</item>
    121     </style>
    122 
    123     <style name="ActivityTransitionTheme" parent="android:Theme.Material">
    124 	<item name="android:windowEnterTransition">@transition/explode</item>
    125 	<item name="android:windowExitTransition">@transition/explode</item>
    126 	<item name="android:windowSharedElementEnterTransition">@transition/move_image</item>
    127 	<item name="android:windowSharedElementExitTransition">@transition/move_image</item>
    128 	<item name="android:windowAllowReturnTransitionOverlap">true</item>
    129 	<item name="android:windowAllowEnterTransitionOverlap">false</item>
    130     </style>
    131 
    132 </resources>
    133