Jérémy CROS
04/21/2023, 12:31 PMinflated view
to work.
How can I get one with Compose?
For now, I’ve tried something like that:
val view = ComposeView(requireContext()).apply {
setViewCompositionStrategy(ViewCompositionStrategy.DisposeOnViewTreeLifecycleDestroyed)
setContent {
MyComposable(param = myParameter)
}
}
But MapBox crashes with an error message regarding null LayoutParams
.
Any idea how can I get that inflated view?
Thanks! 🙂Jérémy CROS
04/21/2023, 12:44 PMview.layoutParams = FrameLayout.LayoutParams(
ViewGroup.LayoutParams.WRAP_CONTENT,
ViewGroup.LayoutParams.WRAP_CONTENT
)
to satisfy MapBox...
Still doesn’t work but at least, no longer crashesyschimke
04/21/2023, 4:58 PMElliot Murray
04/24/2023, 7:40 AMJérémy CROS
04/24/2023, 8:02 AMElliot Murray
04/24/2023, 8:04 AMJérémy CROS
04/24/2023, 10:03 AMElliot Murray
04/24/2023, 10:04 AM