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 18<resources> 19 20 <!-- Theme attributes --> 21 <attr name="suwLayoutTheme" format="reference" /> 22 <attr name="suwMarginSides" format="dimension|reference" /> 23 <attr name="suwEditTextBackgroundColor" format="color" /> 24 <attr name="suwButtonHighlightAlpha" format="float" /> 25 26 <!-- Subset of values in "gravity" in frameworks/base/core/res/res/values/attrs.xml. Only 27 horizontal values are listed here as the header does not support vertical gravity. --> 28 <attr name="suwGlifHeaderGravity"> 29 <!-- Push object to the left of its container, not changing its size. --> 30 <flag name="left" value="0x03" /> 31 <!-- Push object to the right of its container, not changing its size. --> 32 <flag name="right" value="0x05" /> 33 <!-- Place object in the horizontal center of its container, not changing its size. --> 34 <flag name="center_horizontal" value="0x01" /> 35 <!-- Grow the horizontal size of the object if needed so it completely fills its container. --> 36 <flag name="fill_horizontal" value="0x07" /> 37 <!-- Push object to the beginning of its container, not changing its size. --> 38 <flag name="start" value="0x00800003" /> 39 <!-- Push object to the end of its container, not changing its size. --> 40 <flag name="end" value="0x00800005" /> 41 </attr> 42 <attr name="suwGlifIconStyle" format="reference" /> 43 44 <attr name="suwButtonAllCaps" format="boolean" /> 45 <attr name="suwButtonCornerRadius" format="dimension" /> 46 <attr name="suwButtonFontFamily" format="string|reference" /> 47 <attr name="suwCardBackground" format="color|reference" /> 48 <attr name="suwDividerCondition"> 49 <enum name="either" value="0" /> 50 <enum name="both" value="1" /> 51 </attr> 52 <attr name="suwFillContentLayoutStyle" format="reference" /> 53 <attr name="suwListItemIconColor" format="color" /> 54 <attr name="suwNavBarBackgroundColor" format="color" /> 55 <attr name="suwNavBarButtonBackground" format="color|reference" /> 56 <attr name="suwNavBarTextColor" format="color" /> 57 <attr name="suwNavBarTheme" format="reference" /> 58 59 <!-- Values copied from frameworks/base/core/res/res/values/attrs.xml --> 60 <attr name="suwScrollIndicators"> 61 <!-- No scroll indicators are displayed. --> 62 <flag name="none" value="0x00" /> 63 <!-- Displays top scroll indicator when view can be scrolled up. --> 64 <flag name="top" value="0x01" /> 65 <!-- Displays bottom scroll indicator when vew can be scrolled down. --> 66 <flag name="bottom" value="0x02" /> 67 <!-- Displays left scroll indicator when vew can be scrolled left. --> 68 <flag name="left" value="0x04" /> 69 <!-- Displays right scroll indicator when vew can be scrolled right. --> 70 <flag name="right" value="0x08" /> 71 <!-- Displays right scroll indicator when vew can be scrolled in the 72 start direction. --> 73 <flag name="start" value="0x10" /> 74 <!-- Displays right scroll indicator when vew can be scrolled in the 75 end direction. --> 76 <flag name="end" value="0x20" /> 77 </attr> 78 79 <!-- Custom view attributes --> 80 <attr name="suwColorPrimary" format="color" /> 81 <attr name="suwHeader" format="reference" /> 82 <!-- Deprecated. Use suwDividerInsetStart and suwDividerInsetEnd instead --> 83 <attr name="suwDividerInset" format="dimension|reference" /> 84 <attr name="suwDividerInsetEnd" format="dimension|reference" /> 85 <attr name="suwDividerInsetStart" format="dimension|reference" /> 86 <attr name="suwDividerInsetStartNoIcon" format="dimension|reference" /> 87 <attr name="suwItemDescriptionStyle" format="reference" /> 88 <attr name="suwItemDescriptionTitleStyle" format="reference" /> 89 90 <declare-styleable name="SuwIllustration"> 91 <attr name="suwAspectRatio" format="float" /> 92 </declare-styleable> 93 94 <declare-styleable name="SuwStickyHeaderListView"> 95 <attr name="suwHeader" /> 96 </declare-styleable> 97 98 <declare-styleable name="SuwHeaderRecyclerView"> 99 <attr name="suwHeader" /> 100 </declare-styleable> 101 102 <declare-styleable name="SuwIllustrationVideoView"> 103 <attr name="suwVideo" format="reference" /> 104 </declare-styleable> 105 106 <declare-styleable name="SuwGlifLayout"> 107 <attr name="suwBackgroundPatterned" format="boolean" /> 108 <attr name="suwBackgroundBaseColor" format="color" /> 109 <attr name="suwColorPrimary" /> 110 <attr name="suwFooter" format="reference" /> 111 <attr name="suwLayoutFullscreen" format="boolean" /> 112 <attr name="suwStickyHeader" format="reference" /> 113 </declare-styleable> 114 115 <declare-styleable name="SuwStatusBarBackgroundLayout"> 116 <attr name="suwStatusBarBackground" format="color|reference" /> 117 </declare-styleable> 118 119 <declare-styleable name="SuwIntrinsicSizeFrameLayout"> 120 <attr name="android:height" /> 121 <attr name="android:width" /> 122 </declare-styleable> 123 124 <declare-styleable name="SuwFillContentLayout"> 125 <attr name="android:maxHeight" /> 126 <attr name="android:maxWidth" /> 127 </declare-styleable> 128 129 <declare-styleable name="SuwSetupWizardLayout"> 130 <attr name="suwBackground" format="color|reference" /> 131 <attr name="suwBackgroundTile" format="color|reference" /> 132 <attr name="suwDecorPaddingTop" format="dimension|reference" /> 133 <attr name="suwIllustration" format="color|reference" /> 134 <attr name="suwIllustrationAspectRatio" format="float|reference" /> 135 <attr name="suwIllustrationHorizontalTile" format="color|reference" /> 136 <attr name="suwIllustrationImage" format="color|reference" /> 137 </declare-styleable> 138 139 <declare-styleable name="SuwTemplateLayout"> 140 <attr name="android:layout" /> 141 <attr name="suwContainer" format="reference" /> 142 </declare-styleable> 143 144 <declare-styleable name="SuwAbstractItem"> 145 <attr name="android:id" /> 146 </declare-styleable> 147 148 <declare-styleable name="SuwItem"> 149 <attr name="android:enabled" /> 150 <attr name="android:icon" /> 151 <attr name="android:layout" /> 152 <attr name="android:summary" /> 153 <attr name="android:title" /> 154 <attr name="android:visible" /> 155 </declare-styleable> 156 157 <declare-styleable name="SuwDividerItemDecoration"> 158 <attr name="android:listDivider" /> 159 <attr name="android:dividerHeight" /> 160 <attr name="suwDividerCondition" /> 161 </declare-styleable> 162 163 <declare-styleable name="SuwButtonItem"> 164 <attr name="android:buttonStyle" /> 165 <attr name="android:enabled" /> 166 <attr name="android:text" /> 167 <attr name="android:theme" /> 168 </declare-styleable> 169 170 <declare-styleable name="SuwHeaderMixin"> 171 <attr name="suwHeaderText" format="string" localization="suggested" /> 172 </declare-styleable> 173 174 <declare-styleable name="SuwColoredHeaderMixin"> 175 <attr name="suwHeaderColor" format="reference|color" /> 176 </declare-styleable> 177 178 <declare-styleable name="SuwIconMixin"> 179 <attr name="android:icon" /> 180 </declare-styleable> 181 182 <declare-styleable name="SuwListMixin"> 183 <attr name="android:entries" /> 184 <attr name="suwDividerInset" /> 185 <attr name="suwDividerInsetEnd" /> 186 <attr name="suwDividerInsetStart" /> 187 </declare-styleable> 188 189</resources> 190