Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Intro to Motion Layout - Lightning Talk

Jossi Wolf
October 02, 2018

Intro to Motion Layout - Lightning Talk

A short introduction to what MotionLayout is, why you should and how you can use it. Presented on 02/10/18 @GDG Hamburg Android October Meetup.

Jossi Wolf

October 02, 2018
Tweet

More Decks by Jossi Wolf

Other Decks in Programming

Transcript

  1. <Transition motion:constraintSetEnd="@layout/constraints_start" motion:constraintSetStart="@layout/constraints_end" motion:duration="1000"> <OnClick motion:mode="toggle" motion:target="@+id/button" /> <KeyFrameSet> <KeyPosition

    motion:framePosition="25" motion:keyPositionType="pathRelative" motion:percentY="-0.25" motion:target="@id/button" /> <KeyPosition motion:framePosition="50" motion:keyPositionType="pathRelative" motion:percentY="0" motion:target="@id/button" /> <KeyPosition motion:framePosition="75" motion:keyPositionType="pathRelative" motion:percentY="-0.25" motion:target="@id/button" /> </KeyFrameSet> </Transition>