In the ConstraintLayout
we have new type of param creator
: layout_constraintTop_creator
or layout_constraintRight_creator
How it should be used?
Asked
Active
Viewed 5,207 times
18

Evgeny Karkan
- 8,782
- 2
- 32
- 38

Vitaliy Ptitsin
- 329
- 1
- 5
- 14
1 Answers
18
As the namespace implies (tools:layout_constraintTop_creator
), it's purely used by Android Studio -- those attributes (using the namespace tool
) are actually stripped out when the xml file is pushed on a device.
So it shouldn't be used :)
Now if you want to know how Studio use those, it's actually simple: we use the creator attributes to keep track of who created the constraints, particularly if they are created by the inference engine, as we want to scrap them / replace them in some cases.

Nicolas Roard
- 8,339
- 1
- 28
- 30
-
What are the different values? For example is a value of "1" the inference engine? – Lou Morda Apr 10 '17 at 17:50
-
9Now (1.0.2) creator attribute is in `app` name space too.. What would that mean? – Samuel Robert Oct 19 '17 at 10:10