Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gif ImageSpan? #83

Closed
sethgho opened this issue Sep 29, 2014 · 2 comments
Closed

Gif ImageSpan? #83

sethgho opened this issue Sep 29, 2014 · 2 comments
Labels

Comments

@sethgho
Copy link

sethgho commented Sep 29, 2014

Is it feasible to render a GifDrawable in an ImageSpan? I'm not seeing any way for the ImageSpan to invalidate itself.

@koral--
Copy link
Owner

koral-- commented Sep 30, 2014

Drawable needs to be invalidated, not the span. By default there is no Drawable.Callback instance associated with Drawable inside span thus animation is not working. But you can you can provide your own callback instance See this gist with sample.

@koral-- koral-- closed this as completed Sep 30, 2014
@sethgho
Copy link
Author

sethgho commented Sep 30, 2014

Fantastic. Thanks for the gist pointing me in the proper direction! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants