Home | History | Annotate | Download | only in values
      1 <?xml version="1.0" encoding="UTF-8"?>
      2 <!--
      3     Copyright (C) 2015 The Android Open Source Project
      4 
      5     Licensed under the Apache License, Version 2.0 (the "License");
      6     you may not use this file except in compliance with the License.
      7     You may obtain a copy of the License at
      8 
      9          http://www.apache.org/licenses/LICENSE-2.0
     10 
     11     Unless required by applicable law or agreed to in writing, software
     12     distributed under the License is distributed on an "AS IS" BASIS,
     13     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     14     See the License for the specific language governing permissions and
     15     limitations under the License.
     16 -->
     17 
     18 <resources xmlns:tools="http://schemas.android.com/tools">
     19 
     20     <!-- General styles -->
     21 
     22     <style name="Animation.SuwWindowAnimation" parent="@android:style/Animation.Activity">
     23         <item name="android:activityOpenEnterAnimation">@anim/suw_slide_next_in</item>
     24         <item name="android:activityOpenExitAnimation">@anim/suw_slide_next_out</item>
     25         <item name="android:activityCloseEnterAnimation">@anim/suw_slide_back_in</item>
     26         <item name="android:activityCloseExitAnimation">@anim/suw_slide_back_out</item>
     27     </style>
     28 
     29     <!-- Content styles -->
     30 
     31     <style name="SuwContentFrame">
     32         <item name="android:paddingTop">@dimen/suw_content_frame_padding_top</item>
     33         <item name="android:paddingLeft">?attr/suwMarginSides</item>
     34         <item name="android:paddingRight">?attr/suwMarginSides</item>
     35         <item name="android:paddingBottom">@dimen/suw_content_frame_padding_bottom</item>
     36     </style>
     37 
     38     <style name="SuwDescription">
     39         <!-- Before Honeycomb, layout_gravity is needed for FrameLayout to apply the margins -->
     40         <item name="android:layout_gravity">top</item>
     41         <item name="android:layout_marginBottom">@dimen/suw_description_margin_bottom</item>
     42         <item name="android:layout_marginTop">@dimen/suw_description_margin_top</item>
     43         <item name="android:lineSpacingExtra">@dimen/suw_description_line_spacing_extra</item>
     44         <item name="android:textAppearance">@style/TextAppearance.SuwDescription</item>
     45     </style>
     46 
     47     <style name="TextAppearance.SuwDescription.Light" parent="TextAppearance.SuwDescription">
     48         <item name="android:fontFamily" tools:ignore="NewApi">sans-serif-light</item>
     49     </style>
     50 
     51     <style name="TextAppearance.SuwDescription.Secondary" parent="TextAppearance.SuwDescription">
     52         <item name="android:textColor">?android:attr/textColorSecondary</item>
     53     </style>
     54 
     55     <style name="SuwRadioButton">
     56         <item name="android:layout_marginBottom">@dimen/suw_radio_button_margin_bottom</item>
     57         <item name="android:layout_marginLeft">@dimen/suw_radio_button_margin_start</item>
     58         <item name="android:layout_marginStart" tools:ignore="NewApi">@dimen/suw_radio_button_margin_start</item>
     59         <item name="android:layout_marginTop">@dimen/suw_radio_button_margin_top</item>
     60         <item name="android:lineSpacingExtra">@dimen/suw_radio_button_line_spacing_extra</item>
     61         <item name="android:paddingLeft">@dimen/suw_radio_button_padding_start</item>
     62         <item name="android:paddingStart" tools:ignore="NewApi">@dimen/suw_radio_button_padding_start</item>
     63         <item name="android:textAppearance">@style/TextAppearance.SuwDescription</item>
     64     </style>
     65 
     66     <style name="SuwCheckBox">
     67         <item name="android:layout_marginBottom">@dimen/suw_check_box_margin_bottom</item>
     68         <item name="android:layout_marginLeft">@dimen/suw_check_box_margin_start</item>
     69         <item name="android:layout_marginStart" tools:ignore="NewApi">@dimen/suw_check_box_margin_start</item>
     70         <item name="android:layout_marginTop">@dimen/suw_check_box_margin_top</item>
     71         <item name="android:lineSpacingExtra">@dimen/suw_check_box_line_spacing_extra</item>
     72         <item name="android:paddingLeft">@dimen/suw_check_box_padding_start</item>
     73         <item name="android:paddingStart" tools:ignore="NewApi">@dimen/suw_check_box_padding_start</item>
     74         <item name="android:textAppearance">@style/TextAppearance.SuwDescription</item>
     75     </style>
     76 
     77     <style name="SuwCheckBox.Multiline" parent="SuwCheckBox">
     78         <item name="android:gravity">top</item>
     79     </style>
     80 
     81     <!-- Card layout (for tablets) -->
     82 
     83     <style name="SuwBaseCardTitle">
     84         <item name="android:ellipsize">end</item>
     85         <item name="android:maxLines">2</item>
     86         <item name="android:paddingBottom">@dimen/suw_card_title_padding_bottom</item>
     87         <item name="android:paddingEnd" tools:ignore="NewApi">@dimen/suw_card_title_padding_end</item>
     88         <item name="android:paddingLeft">@dimen/suw_card_title_padding_start</item>
     89         <item name="android:paddingRight">@dimen/suw_card_title_padding_end</item>
     90         <item name="android:paddingStart" tools:ignore="NewApi">@dimen/suw_card_title_padding_start</item>
     91         <item name="android:paddingTop">@dimen/suw_card_title_padding_top</item>
     92         <item name="android:textAppearance">@style/TextAppearance.SuwCardTitle</item>
     93     </style>
     94 
     95     <style name="SuwCardTitle" parent="SuwBaseCardTitle" />
     96 
     97     <!-- GLIF Card layout (for tablets) -->
     98 
     99     <style name="SuwGlifCardContainer">
    100         <item name="android:background">?android:attr/colorBackground</item>
    101         <item name="android:elevation" tools:ignore="NewApi">5dp</item>
    102     </style>
    103 
    104     <!-- Header layout (for phones) -->
    105 
    106     <style name="SuwBaseHeaderTitle">
    107         <!-- Before Honeycomb, layout_gravity is needed for FrameLayout to apply the margins -->
    108         <item name="android:layout_gravity">top</item>
    109         <item name="android:ellipsize">end</item>
    110         <item name="android:maxLines">2</item>
    111         <item name="android:textSize">@dimen/suw_header_title_size</item>
    112     </style>
    113 
    114     <style name="SuwHeaderTitle" parent="SuwBaseHeaderTitle">
    115         <item name="android:layout_marginBottom">@dimen/suw_header_title_margin_bottom</item>
    116         <item name="android:layout_marginLeft">?attr/suwMarginSides</item>
    117         <item name="android:layout_marginRight">?attr/suwMarginSides</item>
    118         <item name="android:lineSpacingExtra">@dimen/suw_header_title_line_spacing_extra</item>
    119         <item name="android:paddingBottom">@dimen/suw_header_title_padding_bottom</item>
    120         <item name="android:paddingTop">@dimen/suw_header_title_padding_top</item>
    121         <item name="android:textColor">@android:color/white</item>
    122     </style>
    123 
    124     <!-- Items styles -->
    125 
    126     <style name="SuwItemContainer.Verbose" parent="SuwItemContainer">
    127         <item name="android:paddingBottom">@dimen/suw_items_verbose_padding_vertical</item>
    128         <item name="android:paddingTop">@dimen/suw_items_verbose_padding_vertical</item>
    129     </style>
    130 
    131     <style name="SuwItemTitle.Verbose" parent="SuwItemTitle">
    132         <item name="android:textAppearance">@style/TextAppearance.SuwGlifBody</item>
    133     </style>
    134 
    135     <style name="TextAppearance.SuwItemSummary" parent="android:TextAppearance">
    136         <item name="android:textSize">16sp</item>
    137         <item name="android:textColor">?android:attr/textColorSecondary</item>
    138     </style>
    139 
    140     <!-- GLIF layout -->
    141 
    142     <style name="SuwGlifHeaderTitle" parent="SuwBaseHeaderTitle">
    143         <item name="android:layout_marginBottom">@dimen/suw_glif_header_title_margin_bottom</item>
    144         <item name="android:layout_marginLeft">?attr/suwMarginSides</item>
    145         <item name="android:layout_marginRight">?attr/suwMarginSides</item>
    146         <item name="android:layout_marginTop">@dimen/suw_glif_header_title_margin_top</item>
    147         <item name="android:textColor">?android:attr/textColorPrimary</item>
    148     </style>
    149 
    150     <style name="SuwGlifIcon">
    151         <item name="android:layout_marginLeft">?attr/suwMarginSides</item>
    152         <item name="android:layout_marginRight">?attr/suwMarginSides</item>
    153         <item name="android:layout_marginTop">@dimen/suw_glif_margin_top</item>
    154         <item name="android:adjustViewBounds">true</item>
    155         <item name="android:maxHeight">@dimen/suw_glif_icon_max_height</item>
    156         <item name="android:scaleType">centerInside</item>
    157     </style>
    158 
    159     <style name="TextAppearance.SuwGlifBody" parent="android:TextAppearance">
    160         <item name="android:textSize">14sp</item>
    161         <item name="android:textColor">?android:attr/textColorPrimary</item>
    162     </style>
    163 
    164     <style name="TextAppearance.SuwGlifItemTitle" parent="android:TextAppearance">
    165         <item name="android:textSize">16sp</item>
    166         <item name="android:textColor">?android:attr/textColorPrimary</item>
    167     </style>
    168 
    169     <style name="TextAppearance.SuwGlifItemSummary" parent="android:TextAppearance">
    170         <item name="android:textSize">14sp</item>
    171         <item name="android:textColor">?android:attr/textColorSecondary</item>
    172     </style>
    173 
    174     <!-- Navigation bar styles -->
    175 
    176     <style name="SuwNavBarTheme">
    177         <item name="android:orientation">horizontal</item>
    178         <item name="android:layout_alignParentBottom">true</item>
    179         <item name="android:background">?attr/suwNavBarBackgroundColor</item>
    180         <item name="android:paddingLeft">@dimen/suw_navbar_padding_sides</item>
    181         <item name="android:paddingRight">@dimen/suw_navbar_padding_sides</item>
    182         <item name="suwNavBarTextColor">?android:attr/textColorPrimary</item>
    183     </style>
    184 
    185 </resources>
    186