With the @Composable way, they are hooking into the compiler to make the functions be compatible and ready to use with the existing layout system, which still giving the full flexibility of code to do whatever you want. With it being a compiler plugin, they can also make it completely invalid to ever have a reference a view element instead of being signaled by its event listeners
g
gildor
05/19/2019, 9:44 AM
Too many strange assumptions about XML without any proofs of course
Problem of existing Android Framework Views is not XML, xml is fine by itself, and even has some advantages
gildor
05/19/2019, 9:44 AM
And no understanding how compose works and why annotations are there
d
Daniel
05/19/2019, 10:25 AM
Thank you for the article, but when I saw that your proposition uses inheritance (ComposableActivity)... please don't!
a
Adam Powell
05/19/2019, 3:23 PM
you all may want to join us over in #compose , several of us from the team are in there and happy to talk about its design and how it works ๐