10. @mikescamell
2019-03-20 19:45:26.529 28239-28239/? E/MotionLayout: WARNING NO app:layoutDescription tag
2019-03-20 19:45:26.683 28239-28239/? E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.mikescamell.locomotionlayout, PID: 28239
java.lang.NullPointerException: Attempt to invoke virtual method 'int
androidx.constraintlayout.motion.widget.MotionScene.getDuration()' on a null object
reference
Scene 1 - Part 2
123. @mikescamell
Considerations
• No GUI (in progress)
• Doesn’t work with RecyclerViews (likely in alpha04)
• It’s in alpha!
• Performance?
• Elevation shadow tweaking is only 28+
• Difficult to have multiple transitions using same target
125. @mikescamell
Considerations
• No GUI (in progress)
• Doesn’t work with RecyclerViews (coming soon )
• It’s in alpha!
• Performance?
• Elevation shadow tweaking is only 28+
• Difficult to have multiple transitions using same target
126. @mikescamell
Summary
• Start out simple
• Use an empty project
• Read the blog posts & ask questions! #motionlayout
• Take advantage of Apply Changes
• HAVE FUN!
130. @mikescamell
THANK YOU!
Want to read the latest blog posts from Android Developers around
the world? Checkout:
androiddev.io
(please it’s costing me $5 a month)
Twitter: @mikescamell
Website: mikescamell.com
Podcast (on hiatus): androidsnacks.com
(Skip to the “funny” bits at the end)
Slides:
131. @mikescamell
Links
• Slides
- TODO
• Loco-MotionLayout Repo
- https://github.com/mikescamell/Loco-MotionLayout
• Nicolas Roard’s MotionLayout Series:
- https://medium.com/google-developers/introduction-to-motionlayout-part-i-29208674b10d
- https://medium.com/google-developers/introduction-to-motionlayout-part-ii-a31acc084f59
- https://medium.com/google-developers/introduction-to-motionlayout-part-iii-47cd64d51a5
- https://medium.com/google-developers/defining-motion-paths-in-motionlayout-6095b874d37
• Google Constraint/MotionLayout Example Repo
- https://github.com/googlesamples/android-ConstraintLayoutExamples
132. @mikescamell
Links
• MotionLayout Sunday 🎉 ™ (where the idea for this talk originated):
- https://twitter.com/MikeScamell/status/1071810532888457217
- https://twitter.com/MikeScamell/status/1074342193102495746
- https://twitter.com/MikeScamell/status/1076790689659322368
- https://twitter.com/MikeScamell/status/1079508256857436160
- https://twitter.com/MikeScamell/status/1082037771362029574
• ShapeShifter (Creating AnimatedVectorDrawables)
- https://shapeshifter.design/
• PorterDuff.Mode
- https://developer.android.com/reference/android/graphics/PorterDuff.Mode