summaryrefslogtreecommitdiff
path: root/main/res/values/attrs.xml
blob: 0aaea8b8b74651a97e5634d02b7d23c3d70cc99f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
<?xml version="1.0" encoding="utf-8"?>
<!--
    Copyright (C) 2018 The Android Open Source Project

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

         http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
-->

<resources>

    <!-- Theme attributes -->
    <attr name="sucLayoutTheme" format="reference" />

    <declare-styleable name="SucTemplateLayout">
        <attr name="android:layout" />
        <attr name="sucContainer" format="reference" />
    </declare-styleable>

    <declare-styleable name="SucPartnerCustomizationLayout">
        <attr name="sucLayoutFullscreen" format="boolean" />
        <!-- When set to false, prevents the layout applying partner resource. This attribute is
             particularly useful when the layout would like to apply their customized attributes.
             This attribute will be ignored and use partner resource when inside setup wizard flow.
             The default value is true. -->
        <attr name="sucUsePartnerResource" format="boolean" />
        <attr name="sucFullDynamicColor" format="boolean" />
    </declare-styleable>

    <!-- Status bar attributes; only takes effect on M or above -->
    <declare-styleable name="SucStatusBarMixin">
        <!-- The color for the status bar. For this to take effect,
             "android:windowDrawsSystemBarBackgrounds" should be set to true and
             "android:windowTranslucentStatus" should be set to false. Also,
             View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN should be set to true and
             android:statusBarColor should be transparent. -->
        <attr name="sucStatusBarBackground" format="color|reference" />
        <attr name="sucLightStatusBar" format="boolean" />
    </declare-styleable>

    <!-- System navigation bar attributes; only takes effect on O_MR1 or above -->
    <declare-styleable name="SucSystemNavBarMixin">
        <!-- The color for the system navigation bar. For this to take effect,
             "android:windowDrawsSystemBarBackgrounds" should be set to true and
             "android:windowTranslucentNavigation" should be set to false. -->
        <attr name="sucSystemNavBarBackgroundColor" format="color" />
        <attr name="sucLightSystemNavBar" format="boolean" />
        <!-- The color for the system navigation bar divider. For this to take effect,
             "android:windowDrawsSystemBarBackgrounds" should be set to true and
             "android:windowTranslucentNavigation" should be set to false. -->
        <attr name="sucSystemNavBarDividerColor" format="color" />
    </declare-styleable>

    <!-- FooterButton attributes -->
    <declare-styleable name="SucFooterButton">
        <attr name="android:text" />
        <attr name="android:theme" />
        <!-- Next value: 9 -->
        <attr name="sucButtonType">
            <enum name="other" value="0" />
            <enum name="add_another" value="1" />
            <enum name="cancel" value="2" />
            <enum name="clear" value="3" />
            <enum name="done" value="4" />
            <enum name="next" value="5" />
            <enum name="opt_in" value="6" />
            <enum name="skip" value="7" />
            <enum name="stop" value="8" />
        </attr>
        <attr name="sucFooterButtonPaddingStart" format="dimension" />
        <attr name="sucFooterButtonPaddingEnd" format="dimension" />
    </declare-styleable>

    <!-- Button of footer attributes -->
    <declare-styleable name="SucFooterBarMixin">
        <attr name="sucFooterBarButtonAllCaps" format="boolean" />
        <attr name="sucFooterBarButtonAlignEnd" format="boolean" />
        <attr name="sucFooterBarButtonCornerRadius" format="dimension" />
        <attr name="sucFooterBarButtonFontFamily" format="string|reference" />
        <attr name="sucFooterBarPaddingTop" format="dimension" />
        <attr name="sucFooterBarPaddingBottom" format="dimension" />
        <attr name="sucFooterBarPrimaryFooterBackground" format="color" />
        <attr name="sucFooterBarPrimaryFooterButton" format="reference" />
        <attr name="sucFooterBarSecondaryFooterBackground" format="color" />
        <attr name="sucFooterBarSecondaryFooterButton" format="reference" />
        <attr name="sucFooterBarButtonHighlightAlpha" format="float" />
        <attr name="sucFooterBarButtonColorControlHighlight" format="color" />
        <attr name="sucFooterBarButtonColorControlHighlightRipple" format="color" />
        <attr name="sucFooterBarPaddingVertical" format="dimension" />
        <attr name="sucFooterBarPaddingStart" format="dimension" />
        <attr name="sucFooterBarPaddingEnd" format="dimension" />
        <attr name="sucFooterBarMinHeight" format="dimension" />
    </declare-styleable>

    <declare-styleable name="SucHeaderMixin">
        <attr name="sucHeaderText" format="string" localization="suggested" />
        <attr name="sucHeaderTextColor" format="reference|color" />
        <attr name="sucGlifHeaderMarginTop" format="dimension" />
        <attr name="sucGlifHeaderMarginBottom" format="dimension" />
        <attr name="sucGlifIconMarginTop" format="dimension" />
        <attr name="sucHeaderContainerMarginBottom" format="dimension" />
    </declare-styleable>

</resources>