patrickdelconte
04/04/2020, 3:40 PMadd()
for nesting
verticalLayout {
add(textView {
textResource = R.string.some_text
}, lParams())
}
Coming from other dsl’s it feels a bit cumbersome to me, I’d expect to be able to write something like
verticalLayout {
textview {
textResource = R.string.some_text
}
}
Am I missing something? I don’t have much experience with androidribesg
04/06/2020, 8:22 AMlouiscad
04/06/2020, 1:57 PMUi
implementations, so there's the declaration of the views, and then the layout in root
initialization or in an init
block.
FYI, Anko Layouts didn't have add
, but it meant being less flexible when it comes to custom views, viewgroups and their layout parameters, and wya bigger runtime, while Splitties runtime is almost nonexistent given most of it is inlined.miha-x64
04/07/2020, 11:35 AM@CheckResult
?louiscad
04/07/2020, 3:11 PM