GIFView icon indicating copy to clipboard operation
GIFView copied to clipboard

Play animation once only

Open dgogoasa opened this issue 6 years ago • 3 comments

I am using your library and I can display animated gifs in Android. I would like to be able to play the animation only once from the begin to end. Is this possible? Kind Regards DanG

dgogoasa avatar Mar 18 '19 02:03 dgogoasa

No, sorry. In this version it is impossible to play gifs only once.

Gavras avatar Mar 18 '19 13:03 Gavras

I was under the impression that something like this:

m_gifView.setTimeInGif(m_gifView.getGifDuration());

should do it but it doesn't. It still plays in a loop. Is my interpretation wrong?

dgogoasa avatar Mar 19 '19 22:03 dgogoasa

GIFView.setTimeInGif() sets the gif to the passed time. Your code asked to start the gif from the last frame, if the gif is showing it should repeat from thr start.

Gavras avatar Mar 20 '19 06:03 Gavras