What's new in Jetpack Compose | Session

  Рет қаралды 98,528

Android Developers

Android Developers

Күн бұрын

Пікірлер: 84
@codinginflow
@codinginflow 3 жыл бұрын
Who's learning Compose right now? ✋
@mohsinhasan9723
@mohsinhasan9723 3 жыл бұрын
me, Florian!
@kulbabus
@kulbabus 3 жыл бұрын
Me )
@GG9K71
@GG9K71 2 жыл бұрын
Я
@ItsTimeToCode
@ItsTimeToCode 3 жыл бұрын
XML never again.
@calebemiquissene
@calebemiquissene 3 жыл бұрын
Hahahahah for sure
@sonicCat
@sonicCat 3 жыл бұрын
Please add LazyColumn cell change animation like we have with diffUtils now
@thelittlenaruto
@thelittlenaruto 3 жыл бұрын
...wait! Is it Flutter? I can see "Column", "Text" widgets... My mind is spinning .....
@OliverRhyme
@OliverRhyme 3 жыл бұрын
Same developers, almost same product
@daschewie
@daschewie 3 жыл бұрын
Compose looks like SwiftUI, SwiftUI looks like Flutter, Flutter looks like QtQuick, and QtQuick looks like JavaFX script. There is nothing new under the sun, just another implementation of a good idea.
@onlinechatter8578
@onlinechatter8578 3 жыл бұрын
Effortless waiting for a Menu with options "Migrate Xml to Compose".. Press and wala.. all converted!!😁😁😁😁... Deja-Vu... like migrate to AndroidX
@ทนงศักดิ์ยอดดําเนิน-ฟ6น
@ทนงศักดิ์ยอดดําเนิน-ฟ6น 2 жыл бұрын
@as-qh1qq
@as-qh1qq 3 жыл бұрын
Maintaining radio button/ checkbox state explicitly across menus and settings was always a pain..no more😭
@MK-to4et
@MK-to4et 3 жыл бұрын
I find compose intriguing - how does it handle different screen size buckets and configuration changes? The xml system had structured folder hierarchy system for choosing the right resources based on runtime layout/dimens/etc, I'm yet to see anything with compose that addresses this? Until I see how this is handled its just not viable for me .. plus copy/pasting entire chunks of code just to preview a view - you have keep copy/pasting code each time you make a change to the composable function? The IDE needs to be as rich design system as it does for xml layouts - if that happens I'm sold on compose, until then it seems a bit rough around the edges.
@MK-to4et
@MK-to4et 3 жыл бұрын
@Krzysztof Dróbek I have used Compose for a while now, I see how Previews should be used, but still this should be unnecessary boilerplate - hopefully the @Preview function requirement will be removed in future updates. As for your link - that specifically deals with dimens, which is only one facet of resources (I'm sure flutter devs already do something similar already). I was talking about where layouts change based on screen size - changing a bunch of dimens doesn't cut it in a lot of use cases and is simply a limitation. The XML system was organised and structured towards mobile and tablet devices giving the developer a lot of flexbility in an intuitive way. Compose lacks this out of the box, sure you can have a screen in compose with a bunch of if/elses to lay itself out differently - but this leads to difficult to read code that can be hard to reason about and more error prone. Compose looks great for a play around right now, but currently for me the traditional View system is superior. I'll see what updates come along.
@toppaintings4840
@toppaintings4840 2 жыл бұрын
faster?? :))))) I hardly think so. Why did Android need a new UI toolkit? So that we can make developers busy
@renascienza.bazarclub
@renascienza.bazarclub 3 жыл бұрын
Is an all brand new way to write UI, and we need "unlearn" the view way of thinking. This isn't so straightforward as seems to be, guys! You can't just jump on to it like "just a new feature that I can grab on 15 minutes". There is a learning curve. So let's do it.
@thanhtung1990tung
@thanhtung1990tung 3 жыл бұрын
I hope Jetpack Compose dev team will bring more amazing features in near future. Android dev love Declarative UI as iOS dev love SwiftUI. Hope they will make us surprise .
@engineeringwithai
@engineeringwithai 3 жыл бұрын
this is so cool. being on react + ts this is something i would love to take up
@dylanhoo3530
@dylanhoo3530 2 жыл бұрын
眼睛不知所措,不知道是该看代码还是该看翻译的汉字🤣
@bayou__
@bayou__ 2 жыл бұрын
update terus sempurnakan ui
@gioabashidze6960
@gioabashidze6960 3 жыл бұрын
nice, its much easier when you know flutter, I really prefer this approach than xml views
@toppaintings4840
@toppaintings4840 2 жыл бұрын
it was made for people coming from Frontend, Flutter, etc
@immersivevr3605
@immersivevr3605 3 жыл бұрын
wait ?? , just LazyColumn , one line of code to replace recyclerView 😭
@sumitsk1
@sumitsk1 3 жыл бұрын
React Native or flutter developer will love this 🙌🏻
@SamirRolemberg
@SamirRolemberg 3 жыл бұрын
it's basically flutter widgets on android...
@manshalkhatri9289
@manshalkhatri9289 2 жыл бұрын
Wow it's life changing !
@MrDocomox
@MrDocomox 2 жыл бұрын
Thank f**k compose is here. It was an absolute torment to code in native android.
@naorohana5513
@naorohana5513 3 жыл бұрын
How does it make the xml and drag and drop method in the layout editor less good?
@ThEGeEeK
@ThEGeEeK 3 жыл бұрын
Inspired by flutter 😄
@DavidMoffett
@DavidMoffett 3 жыл бұрын
LOL, we are back to the 80's where user interfaces were developed in code. Modern? There is a reason for having something like xml, json or html define a UI. The UI can be created on the fly which is useful. Creating code on the fly is possible but much more difficult if the code needs to be compiled. Imo a step backward.
@noobbot831
@noobbot831 3 жыл бұрын
Why you make too many frameworks instead of concentrating on one framework? We have old way to create apps, flutter and now this.
@SpectatorAlius
@SpectatorAlius 3 жыл бұрын
My best guess at the answer: it is done because Google can't get its developers to concentrate on a single framework until it is really done. Either that or Product Management is deliberately pushing the engineers to put things out before they are really done -- which explains why this happens with so many of their products, not just frameworks!
@steel0803254
@steel0803254 2 жыл бұрын
Its like we're going back to 2001. Ugh
@pxnx
@pxnx 3 жыл бұрын
Looking forward to it :) Any fixes regarding multiple sheets within ModalBottomSheetLayout yet?
@sahil-dq9cy
@sahil-dq9cy 3 жыл бұрын
Can you suggest best source to learn jetpack compose
@zohaib9381
@zohaib9381 3 жыл бұрын
BottomSheetScaffold with composables with different states?
@praveenpanishetti5279
@praveenpanishetti5279 3 жыл бұрын
@@sahil-dq9cy They have pathway on site visit official site
@pxnx
@pxnx 3 жыл бұрын
@@zohaib9381 No, ModalBottomSheetLayout :)
@tonnie7079
@tonnie7079 3 жыл бұрын
Was skeptical on Compose until I tried it, no Dev can resist compose.
@tonnie7079
@tonnie7079 3 жыл бұрын
@Палмер Элдрич Let's talk in an year's time ...
@НадеждаБурова-ж5й
@НадеждаБурова-ж5й 2 жыл бұрын
Большое спасибо автору, классное видео)
@finchicoph
@finchicoph 3 жыл бұрын
kotlíìn
@MxMayers
@MxMayers 3 жыл бұрын
finally! future is coming!) compose + kotlin multiplatform mobile = will be best multiplatform solution ever!
@agung-adhinata
@agung-adhinata 3 жыл бұрын
@Палмер Элдрич why? can you tell me why and what's good solution on it? i'm web developer trying to learn android right now so idk about that
@SpectatorAlius
@SpectatorAlius 3 жыл бұрын
So does Jetpack Compose make MVVM obsolete already? Or can we count on Compose to go the way of JavaFX, which is/was also 'declarative'?
@giancarlosjuarezvelasquez814
@giancarlosjuarezvelasquez814 3 жыл бұрын
I think the only that deprecate is binding but MVVM remain useful as in some samples with compose it is still used
@mzarunej2866
@mzarunej2866 3 жыл бұрын
How is composable compared to flutter's widget?
@hamidmahmoodi6690
@hamidmahmoodi6690 2 жыл бұрын
Nerver back to XML 😎
@skyfeelan
@skyfeelan Жыл бұрын
5:40
@Verrisin
@Verrisin 3 жыл бұрын
can I write a background @Composable, that does not produce a view, but just some value? Ideally, one that could be observed like LiveData or Flow. - it could be used for control flow (better than xml Navigation) by treating the composition as a monad, effects would be wrapped to run the "first" time, one could easily revert to older state, have access to all variables, as they are just defined previously... - it could handle the only issue I have with coroutines, that you cannot re-run back from a point in past, like a Gui monad. - only limit is, that sometimes the @Compose function would have to get 'suspended' and stop running, until that part of 'decision tree' is reached...
@Verrisin
@Verrisin 3 жыл бұрын
essentially: can it be used for generic backtracking?
@OliverRhyme
@OliverRhyme 3 жыл бұрын
Yes just create a function that return a value but still annotated with @Composable
@Verrisin
@Verrisin 3 жыл бұрын
@@OliverRhyme Awesome! Thanks for telling me. - I'm looking forward to explore it more, once I have some free time!
@vengateshm2122
@vengateshm2122 3 жыл бұрын
Can this support RXJava?
@daniloespinozapino8848
@daniloespinozapino8848 2 жыл бұрын
this is gorgeous!
@fernando123502
@fernando123502 3 жыл бұрын
Thanks for sharing
@abdulrahmanalniema7182
@abdulrahmanalniema7182 3 жыл бұрын
When will version 1 come to life?, and should I use Compose in a real production app now?
@grudingOyster
@grudingOyster 3 жыл бұрын
It's been out for 3 years as they mentioned, which means the library is stable to use in production now
@Sunny-zh6go
@Sunny-zh6go 3 жыл бұрын
July
@MK-to4et
@MK-to4et 3 жыл бұрын
..... I'd wait until 1.0.20+ for production releases .. at least some bugs will be fixed by then .. doesn't stop you develpoing now though as the api is decided for the first major release
@thanhtung1990tung
@thanhtung1990tung 3 жыл бұрын
@@MK-to4et I am also waiting for it. Next month
@Alex-qy9zm
@Alex-qy9zm 3 жыл бұрын
Finally!!! this is great step forward!
@masoudshokohi4750
@masoudshokohi4750 3 жыл бұрын
👍👍❤❇
@roycorroy
@roycorroy 3 жыл бұрын
So it's Flutter running on Kotlin. Nice to have but Dart is still nicer.
@MahbuburRahman-uc7np
@MahbuburRahman-uc7np 3 жыл бұрын
Exactly flutter like syntax on kotlin. I still remember people saying flutter 's syntax is garbage its not good. Well android just went the same route 😂. Though Kotlin has more features than dart.
@kunalkotiyal9566
@kunalkotiyal9566 3 жыл бұрын
Good bye XML
@bhanukemburi
@bhanukemburi 3 жыл бұрын
does jetpack compose works with android TV ?
@igorlima8666
@igorlima8666 3 жыл бұрын
reminds me of react, worth a try a guess
@lakshmanpalli2925
@lakshmanpalli2925 3 жыл бұрын
great feature, looking forward to dive
@Rong.404
@Rong.404 3 жыл бұрын
Row, Column and ... Box? Why not call it Stack/VStack?
@ferryzet
@ferryzet 3 жыл бұрын
They don't want to copy SwiftUI that much :D
@Krushard
@Krushard 3 жыл бұрын
Why call it Stack or ugly VStack? You're clearly influenced by something and try to pass it as a common sense.
@Rong.404
@Rong.404 3 жыл бұрын
Well maybe, it sounds interesting anyways and doesn’t make compose less exciting. Thanks for replies guys
@Paul_Jones
@Paul_Jones 3 жыл бұрын
How many of you love XML over Compose ?
@SnoopyDoofie
@SnoopyDoofie 3 жыл бұрын
You'll notice that they never use dependency injection in any of their Compose samples. In fact, DI is practically never used in any of the source code for Android. That should tell you how useless DI is.
@abdelilahelaissaoui1827
@abdelilahelaissaoui1827 3 жыл бұрын
Why would they add DI to a COMPOSE sample? This would make knowing DI as a requirements to understand the samples. Not using it doesn't make it bad by any means. Why have you got against DI?
@SnoopyDoofie
@SnoopyDoofie 3 жыл бұрын
@@abdelilahelaissaoui1827 Check the Android source code. DI is virtually never used. DI doesn't belong in application code. It was designed for testing code and as such, the tooling (Android Studio) should have a feature that allows you to swap a class with a mock class. Google just doesn't seem to get it, like many things they have never figured out over the years. If you need to swap different classes during runtime in a production app, the factory pattern has long esisted for that purpose.
@gryzor
@gryzor 3 жыл бұрын
@@SnoopyDoofie DI doesn't belong in Compose samples. Seems to me you're missing the point of dependency injection and inversion of control or you are just trolling.
@EugeneRambo
@EugeneRambo 3 жыл бұрын
I always try to avoid DI. DI makes it a mess for onboarding new workers. It removes connections and basic visual understandings of what is being implemented. Its for the birds and takes away from my joy of coding.
@ferryzet
@ferryzet 3 жыл бұрын
@@EugeneRambo oh really? Maybe you still code Android apps in Java? How do you test things without a DI.. now everybody knows Dagger or Hilt which is piece of cake to get into.
Jetpack Compose basics | Workshop
39:55
Android Developers
Рет қаралды 143 М.
Lazy layouts in Compose
24:32
Android Developers
Рет қаралды 93 М.
Nastya and balloon challenge
00:23
Nastya
Рет қаралды 70 МЛН
Incredible: Teacher builds airplane to teach kids behavior! #shorts
00:32
Fabiosa Stories
Рет қаралды 11 МЛН
Understanding Compose (Android Dev Summit '19)
36:15
Android Developers
Рет қаралды 72 М.
A Compose state of mind: Using Jetpack Compose's automatic state observation
21:04
What's new in Flutter
36:30
Flutter
Рет қаралды 207 М.
Performance best practices for Jetpack Compose
21:17
Android Developers
Рет қаралды 85 М.
Thinking in Compose
25:27
Android Developers
Рет қаралды 87 М.
Kubernetes Course - Full Beginners Tutorial (Containerize Your Apps!)
2:58:01
What's new in Android | Keynote
29:24
Android Developers
Рет қаралды 93 М.
Learn Web Development And ACTUALLY Get A Job | Ultimate Guide
1:33:52
James Cross
Рет қаралды 1,4 МЛН
Swift Programming Tutorial for Beginners (Full Tutorial)
3:22:45
CodeWithChris
Рет қаралды 7 МЛН
Deep dive into Jetpack Compose layouts
28:25
Android Developers
Рет қаралды 60 М.