0

I'm trying to achieve something like 9gag, where you have a list of gifs inside a recyclerview and you can start&stop each of them within a click on the image.

I can implement such feature on my own, but i was wondering if any of the current image loaders libraries (especially Fresco) has this feature built in?

bailando bailando
  • 2,121
  • 2
  • 13
  • 17

1 Answers1

2

Yes, Fresco allows manual control of animations. The simplest way is this:

Animatable animatable = mSimpleDraweeView.getController().getAnimatable();
if (animatable != null) {
  animatable.start();
  // later
  animatable.stop();
}
tyronen
  • 2,558
  • 1
  • 11
  • 15