r/androiddev • u/antonshilov • Jun 11 '20
Android Studio 4.2 can preview @Compose functions in interactive mode
11
u/Balaji_Ram Freelance Android Dev Jun 12 '20
I have been working on Android app development since the Eclipse days. I never believed that Google will put this much effort into Android Studio. Andriod Studio is getting better and better each year. Keep rocking Android Studio Team!
9
3
u/pawaka2020 Jun 12 '20
I keep reading updates on Compose, but I still gotta ask....is it production ready? Or at least...demo ready?
I am thinking of making my next demo app using Compose to improve my resume further.
1
u/CuriousCursor Jun 11 '20
Can't type into a TextField yet :p
1
u/antonshilov Jun 11 '20
It works pretty well for me! Here is a short demo https://imgur.com/a/Ndm1zse
3
u/CuriousCursor Jun 11 '20
That's not interactive mode. I meant you can't type into a TextField in interactive mode
2
2
Jun 14 '20
This is pretty cool. Seems like they can render the components without needing an emulator or Android device. Hopefully we will be able to take advantage of that for testing (Facebook screenshot approach).
2
u/yo_asakura Jun 11 '20
I feel like coding in Compose is so much worse than SwiftUI. I don't know why but I feel that it is much more complicated. This is my observation but I didn't used it much, just simple stuff. This is just first impressions kind of thing.
-1
Jun 12 '20
SwiftUI is primitive, if you've tried anything else. Making UI purely by code is a waste of time.
1
u/UpbeatCup Jun 11 '20
I haven't done anything in Android for a while and haven't been following it much. So excuse my ignorance.
Will this replace constraint layout or any XML layout editing entirely? And this looks like it will be Kotlin only right?
3
u/lnkprk114 Jun 11 '20
Yes and (Mostly?) Yes.
They are planning on having a constraint based composable but honestly I doubt it'll be popular
37
u/antonshilov Jun 11 '20
Huge thanks to the Compose & Android Studio team, you are doing amazing job!