Deep dive into Jetpack Compose layouts

Поділитися
Вставка
  • Опубліковано 6 вер 2024

КОМЕНТАРІ • 41

  • @this-is-bioman
    @this-is-bioman 2 роки тому +4

    Why is it on your channel that the sound quality is always so terrible? :-\

  • @nCodeLab
    @nCodeLab 2 роки тому +7

    5th time watching this video..every single concept blow my mind. and i think about it for hours and then watch this video again 😇😇

    • @denkling
      @denkling 2 роки тому

      I looked the 3rd time :) It helps really

  • @alaershov
    @alaershov 2 роки тому +26

    The part on the lambda-style animation progress value is really useful and non-obvious, thanks for that. And the rest of this great tutorial)

    • @debdutsaha4316
      @debdutsaha4316 2 роки тому +1

      I am unable to figureout how this will work? After changing the state how it will change? Can you explain?

    • @ErnieZee
      @ErnieZee Рік тому +1

      @@debdutsaha4316 compose compiler tracks when the snapshot value is read so by passing it to lambda you actually read it in a layout stage not a composition stage and the compiler tracks it automatically. You just have to stop thinking of snapshot values as observable values but rather as values that report to the compiler at what stage they are accessed.

  • @isaissb
    @isaissb Рік тому +2

    15:48 can you please clarify if the word "measure" on the slide at the timestamp provided is referring to the function MeasureScope.measure from interface LayoutModifier, the function measure from interface Measurable, or something else?

  • @dev_jeongdaeri
    @dev_jeongdaeri 2 роки тому +2

    Super great tutorial! 👍

  • @HariKrishnan-es6po
    @HariKrishnan-es6po 2 роки тому +1

    Dear team, kindly make a functioality for smooth scrolling for two lazy column at same time

  • @pxnx
    @pxnx 2 роки тому +3

    Congrats to 1 Million Subs✨✨✨

  • @LightDante
    @LightDante 2 роки тому +1

    Best video of compose ever!

  • @mukhtarbimurat5106
    @mukhtarbimurat5106 Рік тому

    Great video!

  • @damercy
    @damercy 2 роки тому +1

    thanks a lot for this deep dive!

    • @AndroidDevelopers
      @AndroidDevelopers  2 роки тому +2

      Don't mention it! Be sure to visit these resources to help you progress further. 😁
      Compose → bit.ly/3OBebbl
      Jetpack Compose pathway → bit.ly/3QFlFfj
      Layouts in Jetpack Compose → bit.ly/3tSbjPq

  • @mobiledev6037
    @mobiledev6037 2 роки тому +3

    All looks and sounds great except 1 year later this is all going to end up being deprecated! 'now use this new amazing thing we just created'.

  • @witoldsienski1709
    @witoldsienski1709 2 роки тому +1

    Thanks for material :)

  • @hj2931
    @hj2931 2 роки тому

    thanks for the tutorial! now have better understading on the layout things.

  • @academialuminary
    @academialuminary 2 роки тому +2

    Go Compose!

  • @grazianorizzi8343
    @grazianorizzi8343 2 роки тому +4

    It would be interesting to know how the LazyColumn works, I tried to create a custom Layout and not call the place method for those measurables that I didn't want to be displayed on the screen, but using the layout inspector there were the outlines of the measurables not placed. But I suspect it was a problem related to the animation that I had given to my component and to an inaccuracy of the inspector. So if I don't call the place method for a measurable it is actually not placed on the screen? Is there a saving of resources?

  • @user-rd2ox1dl1k
    @user-rd2ox1dl1k 2 роки тому

    why there is no doc about LazyLayout ? i need that

    • @NickButcher
      @NickButcher 2 роки тому

      There is guide to Lists and Grids: developer.android.com/jetpack/compose/lists
      We'll add more on building custom Lazy Layouts as support stabalizes.

  • @as-qh1qq
    @as-qh1qq Рік тому

    A lot of engineering has gone into this framework

  • @Babaybagbdhd
    @Babaybagbdhd 2 роки тому

    Thanks for the great tutorial

  • @mikhailshirokov8464
    @mikhailshirokov8464 Рік тому

    Thank you

  • @vy12021
    @vy12021 2 роки тому

    Compiler Magic

  • @rahulkatte3402
    @rahulkatte3402 2 роки тому +1

    With navigation graph, you moved the fragment transaction logic from code to xml and told us that that is great. Now with compose, you are asking us to move the ui building from xml to code and telling us that this is great.
    I think google has so much money and resources that their teams don't know what to do and the teams there are like creating their own shiny libraries without any harmony.

    • @ErnieZee
      @ErnieZee Рік тому

      You are partially right, but the point of compose is to give you a new option of building ui. You don't need to use it. You can still build with fragments and use xml but compose allows you to drop these since it's been widely known for years that the Fragment was probably the worst designed component in the system. You can just have one single activity, no fragments and perfectly usable, lightweight and fast ui.

  • @st4849
    @st4849 2 роки тому

    What a fascinating & informative video! Learned a lot and it does seem very simple now.

  • @imranhossain3504
    @imranhossain3504 2 роки тому

    Respectful

  • @faizaaslam100
    @faizaaslam100 2 роки тому +10

    How to leave android development? fed up of this keep changing keep learning curve...

    • @visvajeet5609
      @visvajeet5609 2 роки тому +3

      learn iOS development

    • @KeySabre
      @KeySabre 2 роки тому +5

      Sooner or later they'll deprecate Android itself lol

    • @pxnx
      @pxnx 2 роки тому +2

      Flutter?

    • @sanek1985t
      @sanek1985t 2 роки тому +4

      Yes, things are changing very quickly, and this is bad :(. Developers need constantly to learn instruments instead of building features.
      Compose UI seems good for building *dynamic ui* when xml is only for static ui. But when you need connect all parts together (data +ui), compose is not so easy - now you should know mvvm(viewmodel), states, patterns to working with ui states (hoisting states etc), many remember* fuctions, helpers, extentions, idioms - really it's like bird language :).
      I think that entry level for beginners is up!
      I think that Google should think about good solid Android SDK, APIs, which are not quickly changing, not quickly deprecated. These APIs should be enough to develop good andtoid app from scratch (may be with little set of app external libs)

    • @deepakbisht4957
      @deepakbisht4957 2 роки тому

      @@visvajeet5609 iOS also moved to Swift UI so what's your point?

  • @andrewdunbar828
    @andrewdunbar828 11 місяців тому

    while creature are useful

  • @KeySabre
    @KeySabre 2 роки тому +3

    I'd rather to have an IDE to drag-and-drop UI components, then do some fine-tune by coding. Lambdas without auto-complete means we need to remember many things and hope them will remain undeprecated in the next few years...

    • @KeySabre
      @KeySabre 2 роки тому +2

      And the point is, the gap between developers and designers is still huge. The developers need to find the balance between designers/Google's UI design/Google's UI tech. Some tools like Zeplin can generate some simple codes for developers, but I think the best way is to directly let designers be able to export UI components to the codebase, then developers can focus more on the behaviors and business logic.

    • @jeckonly5853
      @jeckonly5853 2 роки тому +4

      HaHa, it will be too easy to develop if we can drag and drop, so more and more people can develop a app so then we can't get well paid!! Ha Ha, so it won't be better if it is so easy to develop , it need some thresholds