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="Widget.Design.BottomNavigationView" parent="">
     46         <item name="itemBackground">?attr/selectableItemBackgroundBorderless</item>
     47     </style>
     48 
     49     <style name="Base.Widget.Design.TabLayout" parent="android:Widget">
     50         <item name="tabMaxWidth">@dimen/design_tab_max_width</item>
     51         <item name="tabIndicatorColor">?attr/colorAccent</item>
     52         <item name="tabIndicatorHeight">2dp</item>
     53         <item name="tabPaddingStart">12dp</item>
     54         <item name="tabPaddingEnd">12dp</item>
     55         <item name="tabBackground">?attr/selectableItemBackground</item>
     56         <item name="tabTextAppearance">@style/TextAppearance.Design.Tab</item>
     57         <item name="tabSelectedTextColor">?android:textColorPrimary</item>
     58     </style>
     59 
     60     <style name="TextAppearance.Design.Tab" parent="TextAppearance.AppCompat.Button">
     61         <item name="android:textSize">@dimen/design_tab_text_size</item>
     62         <item name="android:textColor">?android:textColorSecondary</item>
     63         <item name="textAllCaps">true</item>
     64     </style>
     65 
     66     <style name="Widget.Design.TextInputLayout" parent="android:Widget">
     67         <item name="hintTextAppearance">@style/TextAppearance.Design.Hint</item>
     68         <item name="errorTextAppearance">@style/TextAppearance.Design.Error</item>
     69         <item name="counterTextAppearance">@style/TextAppearance.Design.Counter</item>
     70         <item name="counterOverflowTextAppearance">@style/TextAppearance.Design.Counter.Overflow</item>
     71         <item name="passwordToggleDrawable">@drawable/design_ic_visibility</item>
     72         <item name="passwordToggleTint">@color/design_tint_password_toggle</item>
     73     </style>
     74 
     75     <style name="TextAppearance.Design.Hint" parent="TextAppearance.AppCompat.Caption">
     76         <item name="android:textColor">?attr/colorControlActivated</item>
     77     </style>
     78 
     79     <style name="TextAppearance.Design.Error" parent="TextAppearance.AppCompat.Caption">
     80         <item name="android:textColor">@color/design_error</item>
     81     </style>
     82 
     83     <style name="TextAppearance.Design.Counter" parent="TextAppearance.AppCompat.Caption"/>
     84 
     85     <style name="TextAppearance.Design.Counter.Overflow" parent="TextAppearance.AppCompat.Caption">
     86         <item name="android:textColor">@color/design_error</item>
     87     </style>
     88 
     89     <style name="TextAppearance.Design.Snackbar.Message" parent="android:TextAppearance">
     90         <item name="android:textSize">@dimen/design_snackbar_text_size</item>
     91         <item name="android:textColor">?android:textColorPrimary</item>
     92     </style>
     93 
     94     <style name="Widget.Design.Snackbar" parent="android:Widget">
     95         <item name="android:minWidth">@dimen/design_snackbar_min_width</item>
     96         <item name="android:maxWidth">@dimen/design_snackbar_max_width</item>
     97         <item name="android:background">@drawable/design_snackbar_background</item>
     98         <item name="android:paddingLeft">@dimen/design_snackbar_padding_horizontal</item>
     99         <item name="android:paddingRight">@dimen/design_snackbar_padding_horizontal</item>
    100         <item name="elevation">@dimen/design_snackbar_elevation</item>
    101         <item name="maxActionInlineWidth">@dimen/design_snackbar_action_inline_max_width</item>
    102     </style>
    103 
    104     <style name="Widget.Design.CollapsingToolbar" parent="android:Widget">
    105         <item name="expandedTitleMargin">32dp</item>
    106         <item name="statusBarScrim">?attr/colorPrimaryDark</item>
    107     </style>
    108 
    109     <style name="Base.Widget.Design.AppBarLayout" parent="android:Widget">
    110         <item name="android:background">?attr/colorPrimary</item>
    111     </style>
    112 
    113     <style name="Widget.Design.AppBarLayout" parent="Base.Widget.Design.AppBarLayout">
    114     </style>
    115 
    116     <style name="Widget.Design.CoordinatorLayout" parent="android:Widget">
    117         <item name="statusBarBackground">?attr/colorPrimaryDark</item>
    118     </style>
    119 
    120     <style name="TextAppearance.Design.CollapsingToolbar.Expanded" parent="TextAppearance.AppCompat.Display1">
    121         <item name="android:textColor">?android:attr/textColorPrimary</item>
    122     </style>
    123 
    124     <style name="Animation.Design.BottomSheetDialog" parent="Animation.AppCompat.Dialog">
    125         <item name="android:windowEnterAnimation">@anim/design_bottom_sheet_slide_in</item>
    126         <item name="android:windowExitAnimation">@anim/design_bottom_sheet_slide_out</item>
    127     </style>
    128 
    129     <style name="Widget.Design.BottomSheet.Modal" parent="android:Widget">
    130         <item name="android:background">?android:attr/colorBackground</item>
    131         <item name="android:elevation">@dimen/design_bottom_sheet_modal_elevation</item>
    132         <item name="behavior_peekHeight">auto</item>
    133         <item name="behavior_hideable">true</item>
    134         <item name="behavior_skipCollapsed">false</item>
    135     </style>
    136 
    137 </resources>
    138 
    139