set android animation list programmatically -


i trying achieve adding animated gifs application.

1- able download animated gif server. 2- able decode animated gif (using custom decoder) , have separate bitmap corresponding frames.

now want animate using frame frame animation. read, perform frame frame animation first thing required "animation-list".

i want know how can create required "animation-list" programatically containing each bitmap separate frame.

you can use animationdrawable similiar http://androidforums.com/application-development/11620-programmatic-frame-frame-animation-examle-animationdrawable.html use own files instead of taken resources.

note have careful density of screen , bitmaps downloaded rather taken resources otherwise might differently on different screen sizes/resolutions. more here: http://developer.android.com/guide/practices/screens_support.html see particularly "scaling bitmap objects created @ runtime" chapter


Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -