Asking as a total noob on Compose. Can I create a ...
# compose
m
Asking as a total noob on Compose. Can I create a custom view wrapper around a compose function? In other words, can I inflate a custom view with a compose function instead of an XML file?
I would like to implement a component catalogue in compose but also offer backwards compatible ways for using them in legacy screens
z
Yes, see
ViewGroup.setContent
👍 1
1
a
this path is pretty raw at the moment and we're looking to improve it significantly
m
Glad to hear that 😁