summaryrefslogtreecommitdiff
path: root/constraintlayout/src/main/res/values/attrs.xml
blob: 69406009d62ddeb342699129c202e61a345f7265 (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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
<?xml version="1.0" encoding="utf-8"?>
<resources>
    <!-- Use a constraintSet XML. -->
    <attr name="constraintSet" format="reference"/>
    <!-- The space from the beginning edge of the parent to this guideline. -->
    <attr name="layout_constraintGuide_begin" format="dimension"/>
    <!-- The space from the ending edge of the parent to this  guideline. -->
    <attr name="layout_constraintGuide_end" format="dimension"/>
    <!-- The percent of total space from the beginning of the parent to this guideline. (e.g. 0.50 = middle)-->
    <attr name="layout_constraintGuide_percent" format="float"/>
    <!-- Constrains the left edge of this view to the left edge of the given view ID. -->

    <!-- Indicate the type of barrier -->
    <attr name="barrierDirection" format="enum">
        <enum name="left" value="0"/>
        <enum name="right" value="1"/>
        <enum name="top" value="2"/>
        <enum name="bottom" value="3"/>
        <enum name="start" value="5"/>
        <enum name="end" value="6"/>
    </attr>

    <attr name="barrierAllowsGoneWidgets" format="boolean" />

    <!-- Let a chain helper be rtl or not -->
    <attr name="chainUseRtl" format="boolean"/>

    <!-- the ides used in helpers -->
    <attr name="constraint_referenced_ids" format="string" />

    <attr name="layout_constraintLeft_toLeftOf" format="reference|enum">
        <enum name="parent" value="0"/>
    </attr>
    <!-- Constrains the left edge of this view to the right edge of the given view ID. -->
    <attr name="layout_constraintLeft_toRightOf" format="reference|enum">
        <enum name="parent" value="0"/>
    </attr>
    <!-- Constrains the right edge of this view to the left edge of the given view ID. -->
    <attr name="layout_constraintRight_toLeftOf" format="reference|enum">
        <enum name="parent" value="0"/>
    </attr>
    <!-- Constrains the right edge of this view to the right edge of the given view ID. -->
    <attr name="layout_constraintRight_toRightOf" format="reference|enum">
        <enum name="parent" value="0"/>
    </attr>
    <!-- Constrains the top edge of this view to the top edge of the given view ID. -->
    <attr name="layout_constraintTop_toTopOf" format="reference|enum">
        <enum name="parent" value="0"/>
    </attr>
    <!-- Constrains the top edge of this view to the bottom edge of the given view ID. -->
    <attr name="layout_constraintTop_toBottomOf" format="reference|enum">
        <enum name="parent" value="0"/>
    </attr>
    <!-- Constrains the bottom edge of this view to the top edge of the given view ID. -->
    <attr name="layout_constraintBottom_toTopOf" format="reference|enum">
        <enum name="parent" value="0"/>
    </attr>
    <!-- Constrains the bottom edge of this view to the bottom edge of the given view ID. -->
    <attr name="layout_constraintBottom_toBottomOf" format="reference|enum">
        <enum name="parent" value="0"/>
    </attr>
    <!-- Constrains the baseline of this view to the baseline of the given view ID. -->
    <attr name="layout_constraintBaseline_toBaselineOf" format="reference|enum">
        <enum name="parent" value="0"/>
    </attr>
    <!-- Constrains the start edge of this view to the end edge of the given view ID. -->
    <attr name="layout_constraintStart_toEndOf" format="reference|enum">
        <enum name="parent" value="0"/>
    </attr>
    <!-- Constrains the start edge of this view to the start edge of the given view ID. -->
    <attr name="layout_constraintStart_toStartOf" format="reference|enum">
        <enum name="parent" value="0"/>
    </attr>
    <!-- Constrains the end edge of this view to the start edge of the given view ID. -->
    <attr name="layout_constraintEnd_toStartOf" format="reference|enum">
        <enum name="parent" value="0"/>
    </attr>
    <!-- Constrains the end edge of this view to the end edge of the given view ID. -->
    <attr name="layout_constraintEnd_toEndOf" format="reference|enum">
        <enum name="parent" value="0"/>
    </attr>

    <!-- the left margin value to be used when connected to an object that is GONE -->
    <attr name="layout_goneMarginLeft" format="dimension"/>
    <!-- the top margin value to be used when connected to an object that is GONE -->
    <attr name="layout_goneMarginTop" format="dimension"/>
    <!-- the right margin value to be used when connected to an object that is GONE -->
    <attr name="layout_goneMarginRight" format="dimension"/>
    <!-- the bottom margin value to be used when connected to an object that is GONE -->
    <attr name="layout_goneMarginBottom" format="dimension"/>
    <!-- the start margin value to be used when connected to an object that is GONE -->
    <attr name="layout_goneMarginStart" format="dimension"/>
    <!-- the end margin value to be used when connected to an object that is GONE -->
    <attr name="layout_goneMarginEnd" format="dimension"/>

    <!-- Fraction of excess space to distribute on the left when constrained on left & right edges (e.g. .5 = middle)-->
    <attr name="layout_constraintHorizontal_bias" format="float"/>
    <!-- Fraction of excess space to distribute on the top when constrained on top & bottom edges (e.g. .5 = middle)-->
    <attr name="layout_constraintVertical_bias" format="float"/>

    <!-- Used at design time to define who created the constraint -->
    <attr name="layout_constraintLeft_creator" format="integer"/>
    <!-- Used at design time to define who created the constraint -->
    <attr name="layout_constraintTop_creator" format="integer"/>
    <!-- Used at design time to define who created the constraint -->
    <attr name="layout_constraintRight_creator" format="integer"/>
    <!-- Used at design time to define who created the constraint -->
    <attr name="layout_constraintBottom_creator" format="integer"/>
    <!-- Used at design time to define who created the constraint -->
    <attr name="layout_constraintBaseline_creator" format="integer"/>
    <!-- The ratio between the width and height of the view.
    Note it only works if one of the dimensions is set to 0dp.-->
    <attr name="layout_constraintDimensionRatio" format="string"/>

    <!-- In a Chain, the amount of weight used to spread available horizontal space if the widget is set to MATCH_CONSTRAINT -->
    <attr name="layout_constraintHorizontal_weight" format="float"/>
    <!-- In a Chain, the amount of weight used to spread available vertical space if the widget is set to MATCH_CONSTRAINT -->
    <attr name="layout_constraintVertical_weight" format="float"/>

    <!-- Set a chain to be packed or not. If true and the widget is the first element of a chain, the chain will not spread,
    and the bias will affect the position of the chain elements. It will only work if all elements have a set size (i.e. not MATCH_CONSTRAINT) -->
    <attr name="layout_constraintHorizontal_chainStyle" format="enum">
        <enum name="spread" value="0"/>
        <enum name="spread_inside" value="1"/>
        <enum name="packed" value="2"/>
    </attr>

    <!-- Set a chain to be packed or not. If true and the widget is the first element of a chain, the chain will not spread,
    and the bias will affect the position of the chain elements. It will only work if all elements have a set size (i.e. not MATCH_CONSTRAINT) -->
    <attr name="layout_constraintVertical_chainStyle" format="enum">
        <enum name="spread" value="0"/>
        <enum name="spread_inside" value="1"/>
        <enum name="packed" value="2"/>
    </attr>

    <!-- Used at design time to define to position the view -->
    <attr name="layout_editor_absoluteX" format="dimension"/>
    <!-- Used at design time to define to position the view -->
    <attr name="layout_editor_absoluteY" format="dimension"/>

    <!-- Used to set the type of optimization we apply. This is a mask. -->
    <attr name="layout_optimizationLevel">
        <flag name="none" value="0"/>
        <flag name="standard" value="7" /> <!-- direct, barriers, chains -->
        <flag name="direct" value="1"/>
        <flag name="barrier" value="2"/>
        <flag name="chains" value="4"/>
        <flag name="dimensions" value="8"/>
        <flag name="groups" value="32"/>
    </attr>

    <!-- Specify the style of match constraint -->
    <attr name="layout_constraintWidth_default">
        <enum name="spread" value="0"/>
        <enum name="wrap" value="1"/>
        <enum name="percent" value="2"/>
    </attr>

    <!-- handles circular constraints -->
    <attr name="layout_constraintCircle" format="reference"/>
    <attr name="layout_constraintCircleRadius" format="dimension"/>
    <attr name="layout_constraintCircleAngle" format="integer"/>

    <!-- explicitely enforces constraints in case of WRAP -->
    <attr name="layout_constrainedWidth" format="boolean"/>
    <attr name="layout_constrainedHeight" format="boolean"/>

    <!-- Specify the visibility of a placeholder -->
    <attr name="emptyVisibility"  >
        <enum name="gone" value="0"/>
        <enum name="invisible" value="1"/>
    </attr>

    <attr name="content" format="reference"/>
    <attr name="layout_constraintWidth_min" format="dimension|enum">
        <enum name="wrap" value="-2"/>
    </attr>
    <attr name="layout_constraintWidth_max" format="dimension|enum">
        <enum name="wrap" value="-2"/>
    </attr>
    <attr name="layout_constraintWidth_percent" format="float"/>

    <!-- Specify the style of match constraint -->
    <attr name="layout_constraintHeight_default">
        <enum name="spread" value="0"/>
        <enum name="wrap" value="1"/>
        <enum name="percent" value="2"/>
    </attr>

    <attr name="layout_constraintHeight_min" format="dimension|enum">
        <enum name="wrap" value="-2"/>
    </attr>
    <attr name="layout_constraintHeight_max" format="dimension|enum">
        <enum name="wrap" value="-2"/>
    </attr>
    <attr name="layout_constraintHeight_percent" format="float"/>

    <declare-styleable name="ConstraintLayout_placeholder">
        <attr name="emptyVisibility"/>
        <attr name="content"/>
    </declare-styleable>

    <declare-styleable name="ConstraintLayout_Layout">
        <attr name="android:orientation"/>
        <attr name="android:minWidth"/>
        <attr name="android:minHeight"/>
        <attr name="android:maxWidth"/>
        <attr name="android:maxHeight"/>
        <attr name="layout_optimizationLevel"/>

        <attr name="constraintSet"/>
        <attr name="barrierDirection"/>
        <attr name="barrierAllowsGoneWidgets"/>
        <attr name="constraint_referenced_ids"/>
        <attr name="chainUseRtl"/>

        <attr name="layout_constraintCircle"/>
        <attr name="layout_constraintCircleRadius"/>
        <attr name="layout_constraintCircleAngle"/>

        <attr name="layout_constraintGuide_begin"/>
        <attr name="layout_constraintGuide_end"/>
        <attr name="layout_constraintGuide_percent"/>
        <attr name="layout_constraintLeft_toLeftOf"/>
        <attr name="layout_constraintLeft_toRightOf"/>
        <attr name="layout_constraintRight_toLeftOf"/>
        <attr name="layout_constraintRight_toRightOf" />
        <attr name="layout_constraintTop_toTopOf"/>
        <attr name="layout_constraintTop_toBottomOf"/>
        <attr name="layout_constraintBottom_toTopOf"/>
        <attr name="layout_constraintBottom_toBottomOf" />
        <attr name="layout_constraintBaseline_toBaselineOf"/>
        <attr name="layout_constraintStart_toEndOf"/>
        <attr name="layout_constraintStart_toStartOf"/>
        <attr name="layout_constraintEnd_toStartOf" />
        <attr name="layout_constraintEnd_toEndOf"/>
        <attr name="layout_goneMarginLeft"/>
        <attr name="layout_goneMarginTop" />
        <attr name="layout_goneMarginRight"/>
        <attr name="layout_goneMarginBottom"/>
        <attr name="layout_goneMarginStart" />
        <attr name="layout_goneMarginEnd" />
        <attr name="layout_constrainedWidth" />
        <attr name="layout_constrainedHeight" />
        <attr name="layout_constraintHorizontal_bias"/>
        <attr name="layout_constraintVertical_bias" />
        <attr name="layout_constraintWidth_default" />
        <attr name="layout_constraintHeight_default" />
        <attr name="layout_constraintWidth_min" />
        <attr name="layout_constraintWidth_max" />
        <attr name="layout_constraintWidth_percent" />
        <attr name="layout_constraintHeight_min" />
        <attr name="layout_constraintHeight_max" />
        <attr name="layout_constraintHeight_percent" />
        <attr name="layout_constraintLeft_creator"/>
        <attr name="layout_constraintTop_creator" />
        <attr name="layout_constraintRight_creator"/>
        <attr name="layout_constraintBottom_creator" />
        <attr name="layout_constraintBaseline_creator"/>
        <attr name="layout_constraintDimensionRatio" />
        <attr name="layout_constraintHorizontal_weight" />
        <attr name="layout_constraintVertical_weight" />
        <attr name="layout_constraintHorizontal_chainStyle" />
        <attr name="layout_constraintVertical_chainStyle" />
        <attr name="layout_editor_absoluteX" />
        <attr name="layout_editor_absoluteY"/>
    </declare-styleable>

    <declare-styleable name="ConstraintSet">
        <attr name="android:orientation"/>
        <attr name="android:id"/>
        <attr name="android:visibility"/>
        <attr name="android:alpha"/>
        <attr name="android:elevation"/>
        <attr name="android:rotation"/>
        <attr name="android:rotationX"/>
        <attr name="android:rotationY"/>
        <attr name="android:scaleX"/>
        <attr name="android:scaleY"/>
        <attr name="android:transformPivotX"/>
        <attr name="android:transformPivotY"/>
        <attr name="android:translationX"/>
        <attr name="android:translationY"/>
        <attr name="android:translationZ"/>
        <attr name="android:layout_width"/>
        <attr name="android:layout_height"/>
        <attr name="android:layout_marginStart"/>
        <attr name="android:layout_marginBottom"/>
        <attr name="android:layout_marginTop"/>
        <attr name="android:layout_marginEnd"/>
        <attr name="android:layout_marginLeft"/>
        <attr name="android:layout_marginRight"/>

        <attr name="layout_constraintCircle"/>
        <attr name="layout_constraintCircleRadius"/>
        <attr name="layout_constraintCircleAngle"/>

        <attr name="layout_constraintGuide_begin"/>
        <attr name="layout_constraintGuide_end"/>
        <attr name="layout_constraintGuide_percent"/>
        <attr name="layout_constraintLeft_toLeftOf"/>
        <attr name="layout_constraintLeft_toRightOf"/>
        <attr name="layout_constraintRight_toLeftOf"/>
        <attr name="layout_constraintRight_toRightOf" />
        <attr name="layout_constraintTop_toTopOf"/>
        <attr name="layout_constraintTop_toBottomOf"/>
        <attr name="layout_constraintBottom_toTopOf"/>
        <attr name="layout_constraintBottom_toBottomOf" />
        <attr name="layout_constraintBaseline_toBaselineOf"/>
        <attr name="layout_constraintStart_toEndOf"/>
        <attr name="layout_constraintStart_toStartOf"/>
        <attr name="layout_constraintEnd_toStartOf" />
        <attr name="layout_constraintEnd_toEndOf"/>
        <attr name="layout_goneMarginLeft"/>
        <attr name="layout_goneMarginTop" />
        <attr name="layout_goneMarginRight"/>
        <attr name="layout_goneMarginBottom"/>
        <attr name="layout_goneMarginStart" />
        <attr name="layout_goneMarginEnd" />
        <attr name="layout_constrainedWidth" />
        <attr name="layout_constrainedHeight" />
        <attr name="layout_constraintHorizontal_bias"/>
        <attr name="layout_constraintVertical_bias" />
        <attr name="layout_constraintWidth_default" />
        <attr name="layout_constraintHeight_default" />
        <attr name="layout_constraintWidth_min" />
        <attr name="layout_constraintWidth_max" />
        <attr name="layout_constraintWidth_percent" />
        <attr name="layout_constraintHeight_min" />
        <attr name="layout_constraintHeight_max" />
        <attr name="layout_constraintHeight_percent" />
        <attr name="layout_constraintLeft_creator"/>
        <attr name="layout_constraintTop_creator" />
        <attr name="layout_constraintRight_creator"/>
        <attr name="layout_constraintBottom_creator" />
        <attr name="layout_constraintBaseline_creator"/>
        <attr name="layout_constraintDimensionRatio" />
        <attr name="layout_constraintHorizontal_weight" />
        <attr name="layout_constraintVertical_weight" />
        <attr name="layout_constraintHorizontal_chainStyle" />
        <attr name="layout_constraintVertical_chainStyle" />
        <attr name="layout_editor_absoluteX" />
        <attr name="layout_editor_absoluteY"/>
        <attr name="barrierDirection" />
        <attr name="constraint_referenced_ids" />
        <attr name="android:maxHeight" />
        <attr name="android:maxWidth" />
        <attr name="android:minHeight" />
        <attr name="android:minWidth" />
        <attr name="barrierAllowsGoneWidgets" />
        <attr name="chainUseRtl" />

    </declare-styleable>

    <declare-styleable name="LinearConstraintLayout">
        <attr name="android:orientation"/>

    </declare-styleable>
</resources>