1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 Copyright (C) 2018 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 <!-- Customization footer styles --> 21 <style name="SucPartnerCustomizationButtonBar.Stackable" parent="SucPartnerCustomizationButtonBar"> 22 <item name="android:gravity">center</item> 23 </style> 24 25 <style name="SucPartnerCustomizationButtonBar"> 26 <item name="android:baselineAligned">false</item> 27 <item name="android:clipChildren">false</item> 28 <item name="android:clipToPadding">false</item> 29 <item name="android:gravity">center_vertical</item> 30 <item name="android:minHeight">?attr/sucFooterBarMinHeight</item> 31 <item name="android:orientation">horizontal</item> 32 <item name="android:paddingTop">?attr/sucFooterBarPaddingVertical</item> 33 <item name="android:paddingBottom">?attr/sucFooterBarPaddingVertical</item> 34 <item name="android:paddingEnd" tools:ignore="NewApi">?attr/sucFooterBarPaddingEnd</item> 35 <item name="android:paddingLeft">?attr/sucFooterBarPaddingStart</item> 36 <item name="android:paddingRight">?attr/sucFooterBarPaddingEnd</item> 37 <item name="android:paddingStart" tools:ignore="NewApi">?attr/sucFooterBarPaddingStart</item> 38 </style> 39 40 <style name="SucPartnerCustomizationButton.Primary" parent="android:Widget.Material.Button.Colored"> 41 <!-- This style can be applied to a button either as a "style" in XML, or as a theme in 42 ContextThemeWrapper. These self-referencing attributes make sure this is applied as 43 both to the button. --> 44 <item name="android:buttonStyle">@style/SucPartnerCustomizationButton.Primary</item> 45 <item name="android:theme">@style/SucPartnerCustomizationButton.Primary</item> 46 47 <!-- Values used in styles --> 48 <item name="android:fontFamily">?attr/sucFooterBarButtonFontFamily</item> 49 <item name="android:paddingLeft">?attr/sucFooterButtonPaddingStart</item> 50 <item name="android:paddingStart" tools:ignore="NewApi">?attr/sucFooterButtonPaddingStart</item> 51 <item name="android:paddingRight">?attr/sucFooterButtonPaddingEnd</item> 52 <item name="android:paddingEnd" tools:ignore="NewApi">?attr/sucFooterButtonPaddingEnd</item> 53 <item name="android:textAllCaps">?attr/sucFooterBarButtonAllCaps</item> 54 <item name="android:stateListAnimator">@null</item> 55 56 <!-- Values used in themes --> 57 <item name="android:buttonCornerRadius" tools:ignore="NewApi">?attr/sucFooterBarButtonCornerRadius</item> 58 </style> 59 60 <style name="SucPartnerCustomizationButton.Secondary" parent="android:Widget.Material.Button.Borderless.Colored"> 61 <!-- This style can be applied to a button either as a "style" in XML, or as a theme in 62 ContextThemeWrapper. These self-referencing attributes make sure this is applied as 63 both to the button. --> 64 <item name="android:buttonStyle">@style/SucPartnerCustomizationButton.Secondary</item> 65 <item name="android:theme">@style/SucPartnerCustomizationButton.Secondary</item> 66 67 <!-- Values used in styles --> 68 <item name="android:fontFamily">?attr/sucFooterBarButtonFontFamily</item> 69 <item name="android:minWidth">0dp</item> 70 <item name="android:paddingLeft">?attr/sucFooterButtonPaddingStart</item> 71 <item name="android:paddingStart" tools:ignore="NewApi">?attr/sucFooterButtonPaddingStart</item> 72 <item name="android:paddingRight">?attr/sucFooterButtonPaddingEnd</item> 73 <item name="android:paddingEnd" tools:ignore="NewApi">?attr/sucFooterButtonPaddingEnd</item> 74 <item name="android:textAllCaps">?attr/sucFooterBarButtonAllCaps</item> 75 76 <!-- Values used in themes --> 77 <item name="android:buttonCornerRadius" tools:ignore="NewApi">?attr/sucFooterBarButtonCornerRadius</item> 78 <item name="android:colorControlHighlight" tools:targetApi="lollipop">@color/suc_customization_button_highlight_ripple</item> 79 <item name="sucFooterBarButtonColorControlHighlight">@color/suc_customization_button_highlight_ripple</item> 80 </style> 81 82</resources> 83