/
attrs.xml
90 lines (83 loc) · 4.14 KB
/
attrs.xml
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
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright 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
~
~ https://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>
<declare-styleable name="MaterialShape">
<!-- Shape appearance style reference to be used to construct a ShapeAppearanceModel. -->
<attr name="shapeAppearance" format="reference"/>
<!-- Shape appearance overlay style reference to be used to modify the shapeAppearance. -->
<attr name="shapeAppearanceOverlay" format="reference"/>
</declare-styleable>
<declare-styleable name="ShapeAppearance">
<!-- Corner size to be used in the ShapeAppearance. All corners default to this value -->
<attr name="cornerSize" format="dimension|fraction"/>
<!-- Top left corner size to be used in the ShapeAppearance. -->
<attr name="cornerSizeTopLeft" format="dimension|fraction"/>
<!-- Top right corner size to be used in the ShapeAppearance. -->
<attr name="cornerSizeTopRight" format="dimension|fraction"/>
<!-- Bottom right corner size to be used in the ShapeAppearance. -->
<attr name="cornerSizeBottomRight" format="dimension|fraction"/>
<!-- Bottom left corner size to be used in the ShapeAppearance. -->
<attr name="cornerSizeBottomLeft" format="dimension|fraction"/>
<!-- Corner family to be used in the ShapeAppearance. All corners default to this value -->
<attr name="cornerFamily" format="enum">
<enum name="rounded" value="0"/>
<enum name="cut" value="1"/>
</attr>
<!-- Top left corner family to be used in the ShapeAppearance. -->
<attr name="cornerFamilyTopLeft" format="enum">
<enum name="rounded" value="0"/>
<enum name="cut" value="1"/>
</attr>
<!-- Top right corner family to be used in the ShapeAppearance. -->
<attr name="cornerFamilyTopRight" format="enum">
<enum name="rounded" value="0"/>
<enum name="cut" value="1"/>
</attr>
<!-- Bottom right corner family to be used in the ShapeAppearance. -->
<attr name="cornerFamilyBottomRight" format="enum">
<enum name="rounded" value="0"/>
<enum name="cut" value="1"/>
</attr>
<!-- Bottom left corner family to be used in the ShapeAppearance. -->
<attr name="cornerFamilyBottomLeft" format="enum">
<enum name="rounded" value="0"/>
<enum name="cut" value="1"/>
</attr>
</declare-styleable>
<!-- The corner family for all shape appearance styles. -->
<attr name="shapeCornerFamily" format="enum">
<enum name="rounded" value="0"/>
<enum name="cut" value="1"/>
</attr>
<!-- Shape appearance style reference with extra small corners. -->
<attr name="shapeAppearanceCornerExtraSmall" format="reference"/>
<!-- Shape appearance style reference with small corners. -->
<attr name="shapeAppearanceCornerSmall" format="reference"/>
<!-- Shape appearance style reference with medium corners. -->
<attr name="shapeAppearanceCornerMedium" format="reference"/>
<!-- Shape appearance style reference with large corners. -->
<attr name="shapeAppearanceCornerLarge" format="reference"/>
<!-- Shape appearance style reference with extra large corners. -->
<attr name="shapeAppearanceCornerExtraLarge" format="reference"/>
<!-- Deprecated: Use shapeAppearanceCorner* attributes. -->
<!-- Shape appearance style reference for small components. -->
<attr name="shapeAppearanceSmallComponent" format="reference"/>
<!-- Shape appearance style reference for medium components. -->
<attr name="shapeAppearanceMediumComponent" format="reference"/>
<!-- Shape appearance style reference for large components. -->
<attr name="shapeAppearanceLargeComponent" format="reference"/>
</resources>