9 Best Android Animation Libraries

It is kind of hard to implement animations in native Android with either Kotlin or Java. These animation libraries for Android will help you make this task more comfortable.

Lottie

Lottie can render After Effects animations natively on Android and iOS, Web, and React Native. It parses Adobe After Effects animations exported as json with Bodymovin and renders them natively on mobile.

Read also: 8 Best Flutter Animation Libraries

AndroidViewAnimations

This library is a collection of useful animation views. It supports lots of animation types, including attension, special (hinge, roll, landing, etc..), bounce, fade, flip, rotate, slide, and zoom.

You can start an animation on a view with a line of code

YoYo.with(Techniques.Tada)
    .duration(1000)
    .repeat(20)
    .playOn(findViewById(R.id.my_view));

Transition Everywhere

Transition Everywhere is a set of extra Transitions on top of AndroidX Transitions library.

This framework automatically animates layout change caused by a state of your children views. It supports new animation chaining while old one is still running.

TransitionManager.beginDelayedTransition(findViewById(R.id.my_view_container));

Aphid FlipView

This library is a view which allows card flipping animation like Flipboard does. It supports horizontal flipping, an event listener to get notified when flipping finishes, content reloading when flipping, and different bitmap format for animation.

FragmentTransactionExtended

FragmentTransactionExtended makes switching fragments no longer boring. It is a plugin which provides a set of custom animations between fragments.

Supported animation types:

  • SCALEX
  • SCALEY
  • SCALEXY
  • FADE
  • FLIP_HORIZONTAL
  • FLIP_VERTICAL
  • SLIDE_VERTICAL
  • SLIDE_HORIZONTAL
  • SLIDE_HORIZONTAL_PUSH_TOP
  • SLIDE_VERTICAL_PUSH_LEFT
  • GLIDE
  • SLIDING
  • STACK
  • CUBE
  • ROTATE_DOWN
  • ROTATE_UP
  • ACCORDION
  • TABLE_HORIZONTAL
  • TABLE_VERTICAL
  • ZOOM_FROM_LEFT_CORNER
  • ZOOM_FROM_RIGHT_CORNER
  • ZOOM_SLIDE_HORIZONTAL
  • ZOOM_SLIDE_VERTICAL
FragmentTransactionExtended fte = new FragmentTransactionExtended(context, fragmentTransaction, firstFragment, secondFragment, containerID);

FragmentManager fm = getFragmentManager();
FragmentTransaction fragmentTransaction = fm.beginTransaction();
FragmentTransactionExtended fte = new FragmentTransactionExtended(this, fragmentTransaction, firstFragment, secondFragment, R.id.fragment_place);
fte.addTransition(FragmentTransactionExtended.GLIDE);
fte.commit();

EasyAndroidAnimations

With 50+ builtin animations, EasyAndroidAnimations is designed to help developer create view animations in an Android app easier. It can create many complex animation effects with one or two lines of code.

BounceAnimation(yourView)
    .setBounceDistance(100)
    .setBounces(10)
    .setDuration(1000)
    .animate();

InterfaceInteraction

InterfaceInteraction library is an interesting animation library. It can capture any interface (screen or view) and throws its UI elements over under the influence of gravity which depends on device’s accelerometer data. Those views then move them from side to side obliquely.

KenBurnsView

It is an extension to ImageView and add Ken Burns effect (a type of panning and zooming effect) to the view.

Features

  • Control: Duration and pause/resume state can be changed easily. It supports events like onTransitionStart() and onTransitionEnd() for developers to control the effect better.
  • Highly extensible: Options like rectangles to be zoomed and panned can be set.
  • Libs friendly: This is a direct extension of ImageView so it seamlessly works out of the box with your favorite image loader library.
  • Easy to use: The effect can be done by just replacing ImageView view in your XML layout files by com.flaviofaria.kenburnsview.KenBurnsView one.

ViewRevealAnimator

The library allows you to create a smooth animated transition between views, hence reveal animator.

mViewAnimator.showNext();
mViewAnimator.showPrevious();

Leave a Comment

Your email address will not be published. Required fields are marked *

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close