Compose by example

Поделиться
HTML-код
  • Опубликовано: 27 ноя 2024

Комментарии • 67

  • @LasseMagnussen
    @LasseMagnussen 4 года назад +34

    My mind was blown 5 minutes in with the dynamic theme.

  • @PedroBarbosaRoman
    @PedroBarbosaRoman 4 года назад +25

    So simple, yet so powerful

  • @goobar
    @goobar 4 года назад +7

    Really looking forward to these new samples 💯

  • @shist2536
    @shist2536 3 года назад

    I think this is the beginning of a new era in mobile development.

  • @RoshitGopinath
    @RoshitGopinath 4 года назад +3

    Great video! Can you guys also make videos on how compose and Architecture Components (Room, livedata & navigation) can be used together?
    Also, big fan of Nick! Plaid was the app which opened my senses on how UI design development should be done. Great work, y'all!

  • @shhaabu
    @shhaabu 4 года назад

    This API looks promising. What I need now is to shake my head and get this right on

  • @chebbaelyes
    @chebbaelyes 2 года назад

    Awesome video !

  • @rohanmanchanda5250
    @rohanmanchanda5250 3 года назад +1

    By the way, your codelabs are really nice

  • @deepmodi9354
    @deepmodi9354 4 года назад

    Android Team always motivating me to do more and more in android.
    Thank You for this video.

  • @LEGENDMORTAL
    @LEGENDMORTAL 4 года назад

    Oh boy, I am really excited to use this new animation stuf in stable release

  • @hiteshchalise3988
    @hiteshchalise3988 4 года назад +11

    ah yes google releasing more things I'll suck at doing 🤣... joking aside, I am really excited to try these out 😍😍

  • @GakisStylianos
    @GakisStylianos 4 года назад +14

    You lost me on the custom layout logic. Let's hope it gets easier with some more experience and practice!

    • @NickButcher
      @NickButcher 4 года назад +9

      Sorry if I went too fast, was trying to pack an overview of a lot of things into this video! Have you checked out the sample code?

    • @GakisStylianos
      @GakisStylianos 4 года назад +4

      @@NickButcher Yes I have. It gets easier the more I look into it. I believe by the time this is more stable (1-2 years) the entire way of thinking will make so much more sense. Thanks for the videos, they have been very helpful!

    • @digitaliabe
      @digitaliabe 4 года назад

      I had to pause and replay this part a few times because it goes fast but it wasn't so hard to understand.
      @@NickButcher Yet one thing I don't understand in that code is why do you use constraints.minHeight in the layout() call, while you use constraints.maxHeight to vertically center the items? Shouldn't these 2 values be the same?

  • @bjugdbjk
    @bjugdbjk 4 года назад +3

    Now...I feel Good to be an Android Developer...

  • @mpx41
    @mpx41 4 года назад +4

    Can you talk more about what's going on under the hood i. e. how compose ui is integrated into the current android view layout and draw process?

  • @iyxan23
    @iyxan23 3 года назад

    Absolutely awesome! what about the performance?

  • @hmtamim3499
    @hmtamim3499 4 года назад

    This is just amazing

  • @AshwinR
    @AshwinR 4 года назад +3

    10:16 Flutter devs: Hey wait, I feel like I have seen this before

  • @albab790
    @albab790 Год назад

    Thanks

  • @tashi7160
    @tashi7160 4 года назад +1

    Great presentation as always. If the animation with the compose is really easy then, do we still need MotionLayout? Already constraint layout with the compose seems overkill compare to XML based.

    • @keithkaranu4258
      @keithkaranu4258 4 года назад

      XML isn't going anywhere anytime soon so it's still getting features.

    • @tashi7160
      @tashi7160 4 года назад

      @@keithkaranu4258 I think you missed the point. Since compose is the new UI toolkit that doesn't use XML and gives developers full control over UI development, the question was will there be a compose equivalent to MotionLayout and if the animation is way easier as they claimed than do we even need MotionLayout.

    • @keithkaranu4258
      @keithkaranu4258 4 года назад

      @@tashi7160 From what I gather because motion layout is xml is easier to develop tooling for. As such I don't think there will be a visual editor for any jetpack compose animations which is one of the main benefits of motion layout. Also keep in mind that even if there is overlap between the two tools it doesn't mean that motion layout is already obsolete. Jetpack compose will be in alpha for a while so for the time being motion layout is probably the go to for any UI that needs to be animated.

  • @rohanmanchanda5250
    @rohanmanchanda5250 3 года назад

    Mr. Butcher, I have been trying to create the custom color palette as you mention in the video for three days now. I have literally copied every logic from Jetsnack Sample App Theme, but it JUST DOES NOT WORK. If I copy the Theme.kt from the Codelab, it works, but after scanning through each and every line in my code and the Codelab's, I could find no difference other than the names. Could you please publish an official how-to on this?
    Thank you,

  • @rohanmanchanda5250
    @rohanmanchanda5250 3 года назад

    Guys now the ambientOf is renamed to compositionLocalOf, also, does this JetColorPallette need to extend Colors? It is kinda confusing

  • @SuegroLM
    @SuegroLM 3 года назад

    13:00
    Hours struggling because I didn't know how to Alignment.CenterStart the Text Composable, until I realized I could use .wrapContentSize(Alignment.CenterStart).
    If I had known from the start that I could just use padding and re-arrange the order of my modifier properties to get my Composable completely selected, I'd have done that 😂.
    I was kind of conscious about the fact that modifier order affects the result, but I didn't know it was up to this extent 😳.

    • @rohanmanchanda5250
      @rohanmanchanda5250 3 года назад +1

      The gravity modifier has been changed to align modifier. You could use Modifier.align(Alignment.CenterStart) now to achieve the effect

  • @Lucas-hh4oh
    @Lucas-hh4oh 4 года назад +1

    damn, this is beautiful

  • @mohammadcs5708
    @mohammadcs5708 3 года назад

    great 😌😌👌🏻

  • @mohsenteymouri5426
    @mohsenteymouri5426 2 года назад

    Nice technology. great flexibility

  • @pvarela
    @pvarela Год назад

    makes the hard things harder!!

  • @MasterA6858
    @MasterA6858 3 года назад +1

    So under the hood the custom layout is same as before? Thats bad, as comparing to SwiftUI this is a huge drawback, it should have been needed to be way simpler. Those measure + layout combo was highly painful things in Pre compose.

  • @TLTthatsME
    @TLTthatsME 2 года назад

    Hi, Can u do a video using lazycolumn headers with a list of class objects? Thanks!

  • @rperez93
    @rperez93 4 года назад +1

    How different layouts for different screen sizes or orientations are going to be managed? (Right now if I want a different layout I just need to create a new layout folder with the rules but how will that be managed with Compose?)

    • @GakisStylianos
      @GakisStylianos 4 года назад +1

      Ask this on the reddit AMA they have tomorrow. There will be answers to everything there.

    • @techieasif1
      @techieasif1 4 года назад +2

      'remember' (for this see think in compose video) function will remember state, height and width can be managed using orientation .i.e if(horizontal) 60 else 20

    • @NickButcher
      @NickButcher 4 года назад +3

      Check out the `WithConstraints` composable. developer.android.com/reference/kotlin/androidx/compose/ui/package-summary#WithConstraints(androidx.compose.ui.Modifier,%20kotlin.Function1)

    • @rperez93
      @rperez93 4 года назад +2

      @@NickButcher Just what I was looking for. Thanks!

  • @steveyao7321
    @steveyao7321 3 года назад

    cool!!!!

  • @ozgurtas4508
    @ozgurtas4508 4 года назад +1

    soooo many changesss for android UI and it seems to me compose is more than complex xml system

  • @correabuscar
    @correabuscar 2 года назад

    10:18 I think Stack is now named Box, right?

  • @SouravBagchigoogleplus
    @SouravBagchigoogleplus 4 года назад +1

    New things to try. But migration will be painful

  • @SiamakAshrafi
    @SiamakAshrafi 3 года назад

    This is using the older APIs. Most of these examples will not compile. Now that Beta is released it needs to be updated ...

  • @jean-paulzimmermann6366
    @jean-paulzimmermann6366 3 года назад

    Many examples won't open in Android studio Canary (Invalid gradle) - How many hours lost!

  • @rahulkumar-td7pn
    @rahulkumar-td7pn 3 года назад

    Compose will be a revolution in android community, lets see Compose vs Swift Ui whose gonna win

  • @vishalgaware7598
    @vishalgaware7598 3 года назад

    Where do we get the slides?

  • @LucasdeAlmeidaMarciano
    @LucasdeAlmeidaMarciano 3 года назад

    The ambientOf is not present in the beta version

  • @kevinkuan1756
    @kevinkuan1756 3 года назад

    Oh my goodness

  • @avirias
    @avirias 4 года назад

    that's all i want

  • @vxcloudxv
    @vxcloudxv 3 года назад

    In this moment that Compose are 1.0.0 version stable, they have changed from ambient to compositionLocalOf, and the @Compose will only works above get() = ...

  • @Dpk950
    @Dpk950 4 года назад +1

    There's too much to digest...

  • @nguyenhuutinh001
    @nguyenhuutinh001 4 года назад +1

    Flutter Flutter Flutter :))

  • @TheBlackManMythLegend
    @TheBlackManMythLegend 4 года назад

    ha ha....

  • @h3w45
    @h3w45 4 года назад +5

    Flutter is still better.

    • @keithkaranu4258
      @keithkaranu4258 4 года назад

      Why

    • @h3w45
      @h3w45 4 года назад

      @@keithkaranu4258 you can't build complex UI with this, in flutter you already have pre-build widget that are 100% customizable for almost all your needs.

    • @keithkaranu4258
      @keithkaranu4258 4 года назад +1

      ​@@h3w45 Jetpack Compose already comes with material design and as shown in other videos It's trivial to create more complex widgets from the privatives already provided.

    • @h3w45
      @h3w45 4 года назад

      @@keithkaranu4258 we will see how will it will do.

    • @zacharylippard2994
      @zacharylippard2994 4 года назад

      Can you give an example of a complex UI where Flutter provides an easier solution over Compose?