Peter Mandeljc
01/19/2022, 10:27 AMval btn = Button(context)
AndroidView(factory = { btn } )
Peter Mandeljc
01/19/2022, 10:37 AMcb
01/19/2022, 11:23 AMButton
, but that should work fine. We do something similar.Zoltan Demant
01/19/2022, 11:51 AMcb
01/19/2022, 12:05 PMZoltan Demant
01/19/2022, 12:07 PMAndroidView
? I understand that might also be to re-use the view, but AndroidView does that as well doesnt it?cb
01/19/2022, 12:27 PMval view = remember(context) { BlahBlahView(context) }
Box(
modifier = modifier
.nestedScroll(rememberViewInteropNestedScrollConnection(view))
) {
AndroidView(
factory = { view },
modifier = Modifier.matchParentSize(),
)
content()
}
Zoltan Demant
01/19/2022, 12:40 PM