I'm trying to show an animated gif. By the way I'm doing it with the class Movie. But the Android Developer page dont grant info about the methods.
How can I make the gif to be resized to fit the layout?
Thanks in advance
I'm trying to show an animated gif. By the way I'm doing it with the class Movie. But the Android Developer page dont grant info about the methods.
How can I make the gif to be resized to fit the layout?
Thanks in advance
I know, this is very old post.
But you can try this ...
I've been trying to do the same thing (to display animated GIF) using this method.
It works only if you specify uses-sdk android:minSdkVersion="3"
For scaling ...
Now you can get and pass a Movie object to the class in one of two ways ...
Get input GIF Movie object from project drawable folder
Or get input GIF Movie object from external storage (/mnt/sdcard ... /mnt/extSdCard ... etc)
Now set the moving GIF image / Movie object into your activity view:
If you get the GIF image / Movie object from external storage (second example) you'll need the supporting routine: