Do the Loco-MotionLayout: Building Animations with MotionLayout - droidcon UK 2019

แชร์
ฝัง
  • เผยแพร่เมื่อ 13 ก.ย. 2024
  • Find the code for the talk here: bit.ly/github-...
    You’ve heard, seen or witnessed the buzz around MotionLayout. But what does it look like in real life? What are some of its current limitations? How easy is it to use? Are the demos that you’ve seen actually possible? Or is it all a ruse?
    In this session, you’ll use MotionLayout to develop an animation taken straight from a crazy designer’s mock-up. A mock-up that you see and crumble at just how long it would typically take you to build it on Android. Throughout this talk, you’ll see some animated goodness and you’ll learn some of the fundamentals of how MotionLayout works. You’ll find out what a MotionScene is and how you can use it to separate your states and transitions from your layout, how to use click and swipe handling to trigger transitions, how you can take advantage of KeyAttributes to tweak animations at certain frames, how to use CustomAttributes to animate certain parts of a View and more!
    You will leave this session armed with the basic knowledge required to start having fun with MotionLayout and creating your own animations and transitions. And you'll realise that the mad animations or transitions that your designers give you are now possible! To never saying “no” to designers again*! *Ok, sometimes you’ll still have to say no.

ความคิดเห็น • 14

  • @sudesh6807
    @sudesh6807 3 ปีที่แล้ว

    Give this man a medal. This is how presentations should be, crisp and concise.

  • @rhntnj
    @rhntnj 4 ปีที่แล้ว

    This is a gold-mine for anyone like me who started working with MotionLayout but got confused at a few places. Thanks for this talk Mike!

  • @shivam-dua
    @shivam-dua 4 ปีที่แล้ว +2

    Thank you for this

  • @eduardomarin7575
    @eduardomarin7575 4 ปีที่แล้ว +1

    hi michael it's awesome thanks a lot. i have a one question how do you make liquid background?

  • @mnouman6736
    @mnouman6736 4 ปีที่แล้ว

    super amazing talk. Thanks alot

  • @BeDb_MeDb
    @BeDb_MeDb ปีที่แล้ว

    Hello) MotionLayout is a good thing, but... For example, I ran into a problem and still don't know how to solve it. By clicking on the button, Transition1 is triggered, which translates the layout from start to end. start is the state in which the TabLayout and ViewPager2 have their vertices anchored to the bottom of the parent so that they are not visible. Eventually they show up. This Transition1 works like clockwork, but there's a Transition2 that swipes down within the TabLayout to bring it back to the start state. Problem: crash on a resource not found if you have time to click on the animation in ViewPager2. And if I connect TabLayout and ViewPager2 with a mediator, then swipe within the TabLayout does not work!

  • @AlexGnok
    @AlexGnok 3 ปีที่แล้ว

    Nice one!

  • @thibautbernard41
    @thibautbernard41 4 ปีที่แล้ว +1

    Nice job there, thanks a lot, by the way, Sir Didymus ;)

  • @star-warsien
    @star-warsien 4 ปีที่แล้ว

    Nice! Really enjoyed this! For the caveats, the RecyclerView and Lists... You said look at droidcon NY? Could I get a link to him?

  • @VuNguyen-lf4lm
    @VuNguyen-lf4lm 2 ปีที่แล้ว

    thanks god

  • @akaraze749
    @akaraze749 4 ปีที่แล้ว

    Sir How did you fixed the shadow glitch which at 11:06

  • @kamilfracala3011
    @kamilfracala3011 4 ปีที่แล้ว

    Could you share the source code from the presentation with us?

    • @MikeScamell
      @MikeScamell  4 ปีที่แล้ว +1

      Here you go! bit.ly/github-loco-motionlayout

    • @kamilfracala3011
      @kamilfracala3011 4 ปีที่แล้ว

      @@MikeScamell Thx!