-
Fix
compareTo
methods forYInt
andYFloat
. -
Avoid measure both axis when we don't have to.
-
Support for live preview in Android Studio.
-
layoutBy()
return the view it's applied to. You now can doval titleText : TextView init { titleText = TextView(context).apply { text = "Not sure what the title is yet" setTextColor(0x0) }.layoutBy( leftTo { parent.left() + 16.dip }, topTo { parent.top() + 16.dip }) }
-
Update to Kotlin
1.4.30
.
- Rename
applyLayout()
tolayoutBy()
. - Add utility axis solvers:
contourWidthMatchParent()
andcontourHeightMatchParent()
contourWidthWrapContent()
andcontourHeightWrapContent()
matchXTo()
andmatchYTo()
matchParentX()
andmatchParentY()
- Add support for padding. This can be disabled on a per-View basis using
respectPadding = false
. - Remove
onInitializeLayout()
in favor of laying Views ininit
.
- Add
compareTo
operations to contour primitives.