wasyl
10/24/2019, 3:30 PMLayout
function calls LayoutNode
with some paramerters and passes children. However I can’t seem to find LayoutNode
function anywhere, and the class has no constructor, so where is it coming from? Does Compose plugin handle Node subclasses somehow and generate functions for them?jim
10/24/2019, 4:35 PMEmittable
) that it considers to be Composable. When these classes are used within Composable functions, we generate composable functions for them. The parameters of the generated composable functions can be called using named parameters, where the names coorespond to setters on the class. This allows you to use TextView(text="Hello World")
, which will create a TextView
, and set the text using setText()
for any updates.wasyl
10/24/2019, 4:37 PMthat it considers to be ComposableAnd for Android views it will be the leaf node, right? Anyway sounds nice, I guess I was mostly confused by IDE not complaining about the method I didn’t see in the source, but at the same time not completing when I wanted to use it myself 🙂
jim
10/24/2019, 4:46 PM