summaryrefslogtreecommitdiff
path: root/main/res/values/attrs.xml
blob: 746658605b7187982952d143b605fd2ff0308e7a (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
<?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>

  <!-- Whether style customization values are loaded from OEM partner APKs or not. -->
  <attr name="sucEnablePartnerStyle" format="boolean" />

  <declare-styleable name="SucPartnerCustomizationLayout">
    <attr name="sucFooter" format="reference" />
    <attr name="sucLayoutFullscreen" format="boolean" />
  </declare-styleable>

  <!-- Status bar attributes -->
  <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="sucStatusBarWindowLight" format="boolean" />
  </declare-styleable>

  <!-- System navigation bar attributes -->
  <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="sucSystemNavBarWindowLight" format="boolean" />
  </declare-styleable>

  <!-- FooterButton attributes -->
  <declare-styleable name="SucFooterButton">
    <attr name="android:text" />
    <attr name="android:theme" />
    <attr name="sucButtonType">
      <enum name="none" value="0" />
      <enum name="next" value="1" />
      <enum name="skip" value="2" />
    </attr>
  </declare-styleable>

  <!-- Button of footer attributes -->
  <declare-styleable name="SucFooterBar">
    <attr name="sucFooterBarButtonAllCaps" 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="sucFooterBarPrimaryFooterButton" format="reference" />
    <attr name="sucFooterBarSecondaryFooterButton" format="reference" />
    <attr name="sucFooterBarButtonHighlightAlpha" format="dimension" />
    <attr name="sucFooterBarButtonColorControlHighlight" format="color" />
    <attr name="sucFooterBarButtonColorControlHighlightRipple" format="color" />
  </declare-styleable>
</resources>