John Hoford
John Hoford
This is not documented. You are the first person looking to do something like this. The idea is you would create subclass motionHelper (say PathDraw) add it to the MotionLayout...
This should work: ```kotlin val chainRef = createVerticalChain( label, subLabelPrimary, subLabelSecondary.withChainParams(topMargin = 43.dp), subLabelTertiary, chainStyle = ChainStyle.Packed ) ```
You tried adding margins like this ```kotlin val chainRef = createVerticalChain( ref1, ref1, ref2.withChainParams(topMargin = 43.dp), ref3, chainStyle = ChainStyle.Packed ) ``` and it did not work ?
We will directly link in the future. We will move away from use of Java Reflection APIs.
This has to do with priorities - who wins the "fight between wrap and constraints" in various scenarios. Both satisfy the constraints Constraints do not want to be negative. width=wrap...