Grigorii Yurkov
10/31/2019, 6:19 PM@Deprecated
?Fudge
10/31/2019, 6:21 PMLuca Nicoletti
10/31/2019, 6:28 PM@Composable
could be used with @GenerateView
(which is not implemented yet) to generate a View
subclass which you then can use in your .xml
fileMichal Bacik
10/31/2019, 6:30 PMFudge
10/31/2019, 6:31 PMLuca Nicoletti
10/31/2019, 6:31 PMCompose
the Activity
is used as a starting point for setContent
, but setContent
itself doesn’t use the Activity
, as you said it used Window
Window
without using the Activity
the Activity
could become not necessary anymoreMichal Bacik
10/31/2019, 6:33 PMLuca Nicoletti
10/31/2019, 6:34 PMonCommit
, onActive
, onDispose
Application
can provide the Window
🙂Grigorii Yurkov
10/31/2019, 6:36 PMLuca Nicoletti
10/31/2019, 6:37 PMPablichjenkov
10/31/2019, 6:46 PMMichal Bacik
10/31/2019, 6:47 PMPablichjenkov
10/31/2019, 6:53 PMAdam Powell
10/31/2019, 9:03 PMActivity
will still exist, the idea behind expressing one as a single @Composable
function with some additional annotation is indeed that you would not manually write an Activity
subclass and we would treat it as abstracted boilerplate.