Grigorii Yurkov
10/31/2019, 6:19 PM@Deprecated
?Fudge
10/31/2019, 6:21 PMLuca Nicoletti
10/31/2019, 6:28 PMLuca Nicoletti
10/31/2019, 6:29 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
fileLuca Nicoletti
10/31/2019, 6:29 PMMichal 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
Luca Nicoletti
10/31/2019, 6:32 PMWindow
without using the Activity
the Activity
could become not necessary anymoreMichal Bacik
10/31/2019, 6:33 PMLuca Nicoletti
10/31/2019, 6:34 PMLuca Nicoletti
10/31/2019, 6:34 PMonCommit
, onActive
, onDispose
Luca Nicoletti
10/31/2019, 6:36 PMApplication
can provide the Window
🙂Grigorii Yurkov
10/31/2019, 6:36 PMGrigorii Yurkov
10/31/2019, 6:37 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.