is `@GenerateView` annotation still available? :th...
# compose
h
is
@GenerateView
annotation still available? 🤔
v
Afaik, it is not.
h
😞
is there no idea to bring it back? Just for compatibility
r
It is something we want to have
👍 3
l
To make the annotation work how we want it to is difficult so we haven't released one yet. It will be possible to wrap composables as a view no matter what though, it just might not be a one liner
👍 3
h
Oh! Got it
Thank you guys
a
AbstractComposeView
exposes a single
@Composable abstract fun Content()
, or
ComposeView
has a
setContent(content: @Composable () -> Unit)
method
@GenerateView
, when we get the opportunity to add it, will likely just generate a subclass of
AbstractComposeView
and add xml inflation in the constructor and
mutableStateOf
-backed properties
p
The
ComposeView
is a good solution. didn’t find it out from doc and source code before you point it out. It works well. thanks @Adam Powell
👍 1