ProAndroidDev

The latest posts from Android Professionals and Google Developer Experts.

Follow publication

Member-only story

Android MotionLayout: Creating the Twitter splash screen in the simplest way possible (Part I)

Remember the Twitter’s “oh so famous” splash screen that everyone talked about and had their version to imitate it? It’s now easier than ever to achieve that with the new MotionLayout from the Android Jetpack library. And that’s what we’ll create in this post and in addition, learn some basics about how MotionLayout works.

For those who wonder about the Twitter splash screen, here’s the animation that we’re going to achieve in this post:

Background ✍️

  • MotionLayout is a subclass of Android ConstraintLayout which allows you to animate just about any view or layout in the app very easily.
  • Good news is that it is backwards-compatible to API level 14 (Android 4.0), so the animations you create can pretty much work on all Android versions your users might use.
  • Even though you can create the MotionLayout animations with Android Studio < 4.0, there are better tools in AS 4.0 that I’d strongly recommend to use when you work with MotionLayout.
  • While it is still in beta, it’s not widely adopted…

Create an account to read the full story.

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Or, continue in mobile web

Already have an account? Sign in

Published in ProAndroidDev

The latest posts from Android Professionals and Google Developer Experts.

Written by Waseef Akhtar

Android Engineer, Design Lead at Instabridge.

Responses (5)

Write a response

<KeyAttribute
motion:motionTarget=”@+id/imageView”
motion:framePosition=”0"
android:scaleY=”1.0"
android:scaleX=”1.0" />
It will also work...

--

Thanks for your wonderful tutorial, very very helpful.

--

Definitely wanna try today!!

--