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

not start gif animation of image when start activity. #8

Open
MikhilPastagia opened this issue Nov 18, 2014 · 0 comments
Open

not start gif animation of image when start activity. #8

MikhilPastagia opened this issue Nov 18, 2014 · 0 comments

Comments

@MikhilPastagia
Copy link

when start my application, i want to snimate my image using GIFanimateddrawable class... but its not working... my code is below,

try {
little = new GifAnimationDrawable(getResources().openRawResource(R.drawable.pentagonalicositetrahedroncw);
imageGIF.setImageDrawable(little);
((GifAnimationDrawable)imageGIF.getDrawable()).setVisible(true, true);
little.run();
little.setVisible(true, true);
} catch (NotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}

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

1 participant