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

How to change the gif image using java code? #4

Closed
cnzhujie opened this issue Oct 10, 2013 · 5 comments
Closed

How to change the gif image using java code? #4

cnzhujie opened this issue Oct 10, 2013 · 5 comments
Assignees

Comments

@cnzhujie
Copy link

请问如何动态更换gif?

@koral--
Copy link
Owner

koral-- commented Oct 10, 2013

GIF associated with particular GifDrawable cannot be changed. If you have eg. an ImageView you can attach new GifDrawable as image or background (by calling setImageReosurce() or so)

@ghost ghost assigned koral-- Oct 10, 2013
@cnzhujie
Copy link
Author

好的,我试试。但你的代码中GifDrawable不是public,直接导入你的jar是访问不到这个类的。

@koral--
Copy link
Owner

koral-- commented Oct 11, 2013

Something is wrong with this issue tracker or post was deleted. I can see the following part of post in news feed:

For example: I have an activity A with an GifImageView on it. And I have another activity B with a button on it. When I click the button on B,it wi…

but nothing on this page.

Please add a post again.

@cnzhujie
Copy link
Author

Sorry,I will reorganize my question later.Thank you!

@cnzhujie
Copy link
Author

Sorry,I am a little busy these days.
Your answer is right:

If you have eg. an ImageView you can attach new GifDrawable as image or background (by calling setImageReosurce() or so

But there are some memory access exception in gif.c.I have post in here:
https://github.com/koral--/android-gif-drawable/issues/6

@koral-- koral-- closed this as completed Oct 16, 2013
@niplus niplus mentioned this issue Aug 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants