louiscad
08/28/2019, 1:05 PMConstraintLayout, would you prefer to use below(view) instead of topToBottomOf(view), above instead of bottomToTopOf, before instead of endToStartOf and after instead of startToEndOf?
I'm considering adding these into the ConstraintLayout module as aliases to the existing ones.ribesg
08/28/2019, 1:58 PMbefore and after aren’t as clearly horizontal as below and above are verticalribesg
08/28/2019, 1:59 PMlouiscad
08/28/2019, 2:21 PMbelow and above.louiscad
08/28/2019, 2:21 PMispbox
08/28/2019, 5:01 PMlouiscad
08/28/2019, 7:47 PMstartTo and endTo would be a little confusing among startToStartOf, startToEndOf, endToStartOf and endToEndOf. Note that after and before are already used as CSS selectors in W3C standards for WEB.ispbox
08/28/2019, 8:35 PMlouiscad
08/29/2019, 8:25 AMinline fun LP.before(view: View) = endToStartOf(view)
inline fun LP.above(view: View) = bottomToTopOf(view)
inline fun LP.after(view: View) = startToEndOf(view)
inline fun LP.below(view: View) = topToBottomOf(view)
I'm thinking of adding bottomOf, startOf, etc extension that would be aliases to bottomToBottomOf, startToStartOf, etc.
Would you use it? Should I proceed? Or do you dislike the naming? What's now is enough?