kelvinharron
02/02/2022, 3:49 PM<androidx.compose.ui.platform.ComposeView
works, and points to something like:
binding.payButtonLayout.composeButton.apply {
setViewCompositionStrategy(ViewCompositionStrategy.DisposeOnDetachedFromWindow)
setContent {
MaterialTheme {
Button(onClick = {}) {
Text("My button")
}
}
}
}
I’ve tried using the tools:composableName="androidx.compose.material.ButtonKt"
, <androidx.compose.ui.tooling.ComposeViewAdapter
and even making my own view by inheriting from AbstractComposeView
but still no preview.
Would I be correct in saying that this just isn’t possible to do? Thanks in advance!Dragos Rachieru
02/03/2022, 2:51 PMComposeView
?