Splitties
Splitties copied to clipboard
Document start, top, end, bottom ordering convention
OK:
add(confirmBtn, lParams(height = wrapContent) {
startToEndOf(skipBtn) // Start first
endOfParent(margin = dip(8)) // No top constraint, end constraint next
bottomOfParent() // Bottom last
})
Not OK:
add(confirmBtn, lParams(height = wrapContent) {
bottomOfParent() // Bottom should be last
endOfParent(margin = dip(8)) // End should be after top (or what comes before if missing)
startToEndOf(skipBtn) // Start should be first
})