Try the Compose way  
Jetpack Compose is the recommended UI toolkit for Android. Learn how to add animations in Compose.  
[Animations in Compose →](https://developer.android.com/jetpack/compose/animation)  
![](https://developer.android.com/static/images/android-compose-ui-logo.png)  

When your UI changes in response to user action, you should animate the layout transitions.
These animations give users feedback on their actions and help keep them oriented to the UI.

Android includes the *transitions framework*, which enables you to easily
animate changes between two view hierarchies. The framework animates the views at runtime by
changing some of their property values over time. The framework includes built-in animations
for common effects and lets you create custom animations and transition lifecycle callbacks.

To get started, watch the video embedded here and read the
[Animations Overview](https://developer.android.com/training/animation/overview).  

## Documentation

- [Animations Overview](https://developer.android.com/training/animation/overview)
- [Property Animation Overview](https://developer.android.com/guide/topics/graphics/prop-animation)
- [Animate drawable graphics](https://developer.android.com/guide/topics/graphics/drawable-animation)
- [Reveal or hide a view using animation](https://developer.android.com/training/animation/reveal-or-hide-view)
- [Move a View with Animation](https://developer.android.com/training/animation/reposition-view)
- [Move views using a fling animation](https://developer.android.com/guide/topics/graphics/fling-animation)
- [Enlarge a view using a zoom animation](https://developer.android.com/training/animation/zoom)
- [Animate movement using spring physics](https://developer.android.com/guide/topics/graphics/spring-animation)
- [Auto animate layout updates](https://developer.android.com/training/animation/layout)
- [Animate layout changes using a transition](https://developer.android.com/training/transitions)
- [Create a custom transition animation](https://developer.android.com/training/transitions/custom-transitions)
- [Start an activity using an animation](https://developer.android.com/training/transitions/start-activity)
- [Slide between fragments using ViewPager](https://developer.android.com/training/animation/screen-slide)
- [Slide between fragments using ViewPager2](https://developer.android.com/training/animation/screen-slide-2)
- [Migrate from ViewPager to ViewPager2](https://developer.android.com/training/animation/vp2-migration)  

## Videos

## Additional resources


For more information about animation,
consult the following resources.

### Video

- [Get Animated (Android Dev Summit '18)](https://www.youtube.com/watch?v=N_x7SV3I3P0): Overview of the various animation technologies available. Includes a summary of [how to choose
  between the different animation options](https://www.youtube.com/watch?v=N_x7SV3I3P0&t=2265).

### Samples

- [Navigation
  \> Shared element](https://github.com/android/animation-samples/tree/main/Motion/app/src/main/java/com/example/android/motion/demo/sharedelement)
- [Navigation
  \> Fade through](https://github.com/android/animation-samples/tree/main/Motion/app/src/main/java/com/example/android/motion/demo/navfadethrough)
- [Layout
  \> Fade through](https://github.com/android/animation-samples/tree/main/Motion/app/src/main/java/com/example/android/motion/demo/fadethrough)
- [more...](https://developer.android.com/training/animation/additional-resources)