question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Local gif only play once.

See original GitHub issue

I put a gif in drawable resource of my project and call setAutoPlayAnimations(true). But I found it only play once.

Later I change the local resource to a gif url, it works fine.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
oprisnikcommented, Oct 8, 2016

It looks like your GIF has no NETSCAPE2.0 block, which means that the GIF should only be repeated once.

I suppose that this GIF plays correctly: https://s3.amazonaws.com/giphygifs/media/4aBQ9oNjgEQ2k/giphy.gif

0reactions
niorgaicommented, Oct 8, 2016

You are right. i download this gif and it works fine. Thank you for your answer.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to stop an animated gif from looping - Stack Overflow
Open the Animated gif in Photoshop. · Go to the Window tab and select timeline(if the timeline is not already open). · At...
Read more >
Change GIF Loop Count - Online GIF Tools
This utility changes the GIF loop count. You can make a GIF animation repeat once, several times, or endlessly. It's free and entirely...
Read more >
How To Remove The Endless Loop From Animated GIF[2021]
The answer to the problem is very simple. Just open a GIF editor (or an editor that supports GIFs), then choose Remove loop...
Read more >
Animated gif loops stops after playing once on ios hardware only
On a real device animated gifs will play once and stop. Previously they used to loop forever correctly. Strangely they loop forever in...
Read more >
Change GIF loop count - add or remove endless loop from GIF ...
Online tool that lets you change animated GIF loop flag. You can use it to add or remove endless loop from animated GIF...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found