Hi guys :slightly_smiling_face: I’m using an `Abst...
# compose
j
Hi guys 🙂 I’m using an
AbstractComposeView
to display a composable in an existing XML view but I’m not getting any preview for the XML layout... Anything I’m missing there? Thanks! 🙂
a
Try using
ComposeView
instead of
AbstractComposeView
j
hmmmm, for reasons detailed here: https://proandroiddev.com/jetpack-compose-interop-part-2-using-compose-in-traditional-android-views-and-layouts-with-a3c50fc2eaa5 the
AbstractComposeView
approach works better for me and is easier to think about because it’s nicely split from the XML and the fragment Seems weird to me that it does not work out of the box since it seems like a basic use case 😕 thanks anyway 🙂
z
No preview at all? Or just not of the compose part?
j
not the compose part 🙂 (sorry, should have been clearer in my question)
z
Ok so it should work, i confirmed with someone on the tooling team. Please file a bug
j
Thanks for getting back to me 🙂 Will do 👍