nickk
07/29/2019, 12:32 PMverticalLayout, scrollView, textView, button etclouiscad
07/29/2019, 12:50 PMScrollView, you'll want to use the .wrapInScrollView() extension.
If you don't change your mind after reading Splitties doc, maybe you could start a draft PR adding a migrating from Anko markdown document for others, and possibly your future self?nickk
07/29/2019, 12:52 PMnickk
07/29/2019, 12:53 PMnickk
07/29/2019, 12:53 PMinline fun ViewManager.flexboxLayout(init: FlexboxLayout.() -> Unit = {}): FlexboxLayout {
return ankoView({ FlexboxLayout(it) }, theme = 0, init = init)
}louiscad
07/29/2019, 12:55 PMlouiscad
07/29/2019, 12:56 PMFlexboxLayout.LayoutParams. That's what you're missing.nickk
07/29/2019, 1:00 PMlparams() on the nested elements,
// it will cause a crash.louiscad
07/29/2019, 1:06 PMlParams for FlexboxLayout doesn't exist, but you'll be able to write it easily once as an extension, just like I did for ConstraintLayout, LinearLayout and FrameLayout.nickk
07/29/2019, 1:08 PMnickk
07/29/2019, 1:17 PMlouiscad
07/29/2019, 1:21 PMnickk
07/29/2019, 1:22 PMlouiscad
07/29/2019, 1:24 PMlouiscad
07/29/2019, 1:25 PMnickk
07/29/2019, 1:29 PMnickk
07/29/2019, 1:36 PMlouiscad
07/29/2019, 1:39 PM