This course is available as part of the raywenderlich.com Professional subscription. To learn more click here
Pro

Jetpack Compose Animations

Sep 14 2021 · Video Course (1 hr, 21 mins) · Intermediate

Jetpack Compose is revolutionizing the way Android developers build Android applications, so it’s no surprise that it’s also revolutionizing the ways Android developers create animations! In this course, you’ll learn how to use Jetpack Compose to make practical and visually pleasing animations. You’ll learn how to use simple animations to control things like visibility while also using more complex animations to dazzle your users.

5/5 4 Ratings

Version

  • Kotlin 1.5.21, Android 11, Android Studio Arctic Fox | 2020.3.1

Introduction to Animations in Jetpack Compose

In this episode, learn the fundamental philosophy and principles behind animations in Jetpack Compose. Learn how they differ from animations in the old XML UI paradigm and how you can orient your thinking to make the transition from old animations to new Jetpack Compose animations smooth.

1

Learn how to animate content size changes in Jetpack Compose with using a convenient new Modifier.

2

In this episode, get introduced to the set of animate*AsState methods included in the Jetpack Compose framework to animate the rotation property of an icon in a Floating Action Button.

3

In this episode, learn how to use the AnimatedVisibility composable to animate in a post creation composable. You’ll also learn about the fun and easy ways you can customize the enter and exit animations of AnimatedVisibility.

4

Most applications have to show a loading state before they show some type of content. In this episode, learn how to use the CrossFade composable to easily fade between a loading state and the full applications social media feed.

5

Advanced Animations in Jetpack Compose

In the world of animations, it’s often necessary to control your animation at a high level of granularity. In this episode, get introduced to the updateTransition composable and learn how it differs from the animation tools you’ve used so far.

6

In this episode, learn how to coordinate multiple animations via the updateTransition composable. You’ll then use your new knowledge to animate like counts as a user likes or unlikes a post in the application.

7

In the previous episode you used updateTransition to create a fancy new animation animating changes in a like count for a post. In this episode, learn how to pull that animation code out of the composable it’s currently in and into its own reusable composable for future use.

8

In this episode, learn how to customize the transitionSpec property of transitions to control length, interpolation, and the look and feel of the animation. Learn the difference between tween, spring, and keyframe animations, when to use each, and how to customize their properties.

9

One of the wonderful things about animations in Jetpack Compose is that they come with lots of tooling support. In this episode, learn how to use the Animation Preview window in Android Studio to easily test your animations.

10

In this application, you’re using the HorizontalPager composable from the Accompaniast library to show a pager of images for a post. In this episode, learn how to animate the transition between different pages, and how Jetpack Compose makes these types of animations easy.

11

Designing Complex Animations

Lots of social media applications have put a lot of effort into making like a post a visually pleasing action. In this episode, learn what the animation we’re trying to achieve looks like and how to show the heart when a user likes a post.

12

In this episode, learn how to animate the size of the heart so that it grows from zero size up to the full heart, and how to make sure that the timing of the heart growing and collapsing is visually pleasing.

13

One of the most important things that hearts do is beat! In this episode, use the keyFrame transitionSpec to animate a heart beat into your like animation. You’ll also double down on using the Animation Preview utility to make testing the heart beat as easy as can be.

14

In this episode, learn how to add some extra pizazz to your heart animation by drawing a burst of yellow light behind the heart. You’ll learn how to combine the drawBehind modifier with your animating values to finish off this animation.

15

Who is this for?

Students who already understand the basics of Jetpack Compose

Covered concepts

  • Using AnimatedVisibility to animate component visibility
  • Using CrossFade to fade between components
  • Using the useTransition transition animation system
  • Taking advantage of Android Studios Animation Preview
  • Customizing animation internals

Contributors

Comments