Abdalla Hassanin
08/09/2021, 12:21 PMAndroidView(
factory = { context ->
TextView(context).apply {
text = "Initial Value"
}
},
update = {
it.text = message
}
)nglauber
08/09/2021, 2:10 PMAbdalla Hassanin
08/09/2021, 3:16 PMnglauber
08/09/2021, 3:19 PMAndroidView twice: for WebView and DatePicker.
For both cases, the factory function was enough. Because the update function is just to notify when the layout is inflated.Abdalla Hassanin
08/09/2021, 3:40 PM