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?
Miguel Coleto
06/29/2020, 4:08 PM
I would like to implement a component catalogue in compose but also offer backwards compatible ways for using them in legacy screens
z
Zach Klippenstein (he/him) [MOD]
06/29/2020, 4:10 PM
Yes, see
ViewGroup.setContent
👍 1
➕ 1
a
Adam Powell
06/29/2020, 4:22 PM
this path is pretty raw at the moment and we're looking to improve it significantly