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 <resources>
     18 
     19     <style name="Widget.Design.FloatingActionButton" parent="android:Widget">
     20         <item name="android:background">@drawable/design_fab_background</item>
     21         <item name="backgroundTint">?attr/colorAccent</item>
     22         <item name="fabSize">auto</item>
     23         <item name="elevation">@dimen/design_fab_elevation</item>
     24         <item name="pressedTranslationZ">@dimen/design_fab_translation_z_pressed</item>
     25         <item name="rippleColor">?attr/colorControlHighlight</item>
     26         <item name="borderWidth">@dimen/design_fab_border_width</item>
     27     </style>
     28 
     29     <style name="Widget.Design.ScrimInsetsFrameLayout" parent="">
     30         <item name="insetForeground">#4000</item>
     31     </style>
     32 
     33     <style name="Widget.Design.NavigationView" parent="">
     34         <item name="elevation">@dimen/design_navigation_elevation</item>
     35         <item name="android:background">?android:attr/windowBackground</item>
     36         <item name="android:fitsSystemWindows">true</item>
     37         <item name="android:maxWidth">@dimen/design_navigation_max_width</item>
     38     </style>
     39 
     40     <style name="Widget.Design.TabLayout" parent="Base.Widget.Design.TabLayout">
     41         <item name="tabGravity">fill</item>
     42         <item name="tabMode">fixed</item>
     43     </style>
     44 
     45     <style name="Base.Widget.Design.TabLayout" parent="android:Widget">
     46         <item name="tabMaxWidth">@dimen/design_tab_max_width</item>
     47         <item name="tabIndicatorColor">?attr/colorAccent</item>
     48         <item name="tabIndicatorHeight">2dp</item>
     49         <item name="tabPaddingStart">12dp</item>
     50         <item name="tabPaddingEnd">12dp</item>
     51         <item name="tabBackground">?attr/selectableItemBackground</item>
     52         <item name="tabTextAppearance">@style/TextAppearance.Design.Tab</item>
     53         <item name="tabSelectedTextColor">?android:textColorPrimary</item>
     54     </style>
     55 
     56     <style name="TextAppearance.Design.Tab" parent="TextAppearance.AppCompat.Button">
     57         <item name="android:textSize">@dimen/design_tab_text_size</item>
     58         <item name="android:textColor">?android:textColorSecondary</item>
     59         <item name="textAllCaps">true</item>
     60     </style>
     61 
     62     <style name="Widget.Design.TextInputLayout" parent="android:Widget">
     63         <item name="hintTextAppearance">@style/TextAppearance.Design.Hint</item>
     64         <item name="errorTextAppearance">@style/TextAppearance.Design.Error</item>
     65         <item name="counterTextAppearance">@style/TextAppearance.Design.Counter</item>
     66         <item name="counterOverflowTextAppearance">@style/TextAppearance.Design.Counter.Overflow</item>
     67     </style>
     68 
     69     <style name="TextAppearance.Design.Hint" parent="TextAppearance.AppCompat.Caption">
     70         <item name="android:textColor">?attr/colorControlActivated</item>
     71     </style>
     72 
     73     <style name="TextAppearance.Design.Error" parent="TextAppearance.AppCompat.Caption">
     74         <item name="android:textColor">?attr/textColorError</item>
     75     </style>
     76 
     77     <style name="TextAppearance.Design.Counter" parent="TextAppearance.AppCompat.Caption"/>
     78 
     79     <style name="TextAppearance.Design.Counter.Overflow" parent="TextAppearance.AppCompat.Caption">
     80         <item name="android:textColor">?attr/textColorError</item>
     81     </style>
     82 
     83     <style name="TextAppearance.Design.Snackbar.Message" parent="android:TextAppearance">
     84         <item name="android:textSize">@dimen/design_snackbar_text_size</item>
     85         <item name="android:textColor">?android:textColorPrimary</item>
     86     </style>
     87 
     88     <style name="Widget.Design.Snackbar" parent="android:Widget">
     89         <item name="android:theme">@style/ThemeOverlay.AppCompat.Dark</item>
     90         <item name="android:minWidth">@dimen/design_snackbar_min_width</item>
     91         <item name="android:maxWidth">@dimen/design_snackbar_max_width</item>
     92         <item name="android:background">@drawable/design_snackbar_background</item>
     93         <item name="android:paddingLeft">@dimen/design_snackbar_padding_horizontal</item>
     94         <item name="android:paddingRight">@dimen/design_snackbar_padding_horizontal</item>
     95         <item name="elevation">@dimen/design_snackbar_elevation</item>
     96         <item name="maxActionInlineWidth">@dimen/design_snackbar_action_inline_max_width</item>
     97     </style>
     98 
     99     <style name="Widget.Design.CollapsingToolbar" parent="android:Widget">
    100         <item name="expandedTitleMargin">32dp</item>
    101         <item name="statusBarScrim">?attr/colorPrimaryDark</item>
    102     </style>
    103 
    104     <style name="Base.Widget.Design.AppBarLayout" parent="android:Widget">
    105         <item name="android:background">?attr/colorPrimary</item>
    106     </style>
    107 
    108     <style name="Widget.Design.AppBarLayout" parent="Base.Widget.Design.AppBarLayout">
    109     </style>
    110 
    111     <style name="Widget.Design.CoordinatorLayout" parent="android:Widget">
    112         <item name="statusBarBackground">?attr/colorPrimaryDark</item>
    113     </style>
    114 
    115     <style name="TextAppearance.Design.CollapsingToolbar.Expanded" parent="TextAppearance.AppCompat.Display1">
    116         <item name="android:textColor">?android:attr/textColorPrimary</item>
    117     </style>
    118 
    119     <style name="Animation.Design.BottomSheetDialog" parent="Animation.AppCompat.Dialog">
    120         <item name="android:windowEnterAnimation">@anim/design_bottom_sheet_slide_in</item>
    121         <item name="android:windowExitAnimation">@anim/design_bottom_sheet_slide_out</item>
    122     </style>
    123 
    124     <style name="Widget.Design.BottomSheet.Modal" parent="android:Widget">
    125         <item name="android:background">?android:attr/colorBackground</item>
    126         <item name="android:elevation">@dimen/design_bottom_sheet_modal_elevation</item>
    127         <item name="behavior_peekHeight">@dimen/design_bottom_sheet_modal_peek_height</item>
    128         <item name="behavior_hideable">true</item>
    129         <item name="behavior_skipCollapsed">false</item>
    130     </style>
    131 
    132 </resources>
    133 
    134