Android Question GIF animation

thehe

Member
Licensed User
Longtime User
What kind of animation does Basic4android support.
I used gif animation but only static image display.
Please help!
 
Upvote 0

EVERYthing you will find are libraries (or routines) which parses the gif to get the single frames and to show them afterwards. But not as GIF;most probably the gif is decoded into some images and the images are then animated to give the feeling of an animated gif. But this does not change the statement "Android does NOT support GIFs."
 
Upvote 0
EVERYthing you will find are libraries (or routines) which parses the gif to get the single frames and to show them afterwards. But not as GIF;most probably the gif is decoded into some images and the images are then animated to give the feeling of an animated gif. But this does not change the statement "Android does NOT support GIFs."

Yes, it could be a "workaround" but, anyway, that post contains two links:
http://developer.android.com/reference/android/graphics/Movie.html

the second one is an example about how to use that class to show a gif:
https://code.google.com/p/apidemos/...e/android/apis/graphics/BitmapDecode.java#103
 
Upvote 0
How AnimationPlus and NineOldAndroids work? Loading n images (which you must prepare)?
GIF, if it is so, is the same.


[BTW, what do you think about this question?]
GIF is limited to 256 colors and animated GIFs have very basic animation features. GIF images occupy in memory the same room as PNG images with millions of colors so why bother with this old format?
 
Upvote 0
class to show a gif
Like i already wrote: it just a workaround because android does not support GIF file format.
The Bitmap decode splits the gif into single images.

The link to the movie class is nothing other that to show some pictures in row to simmulate a animation.

It is NOT a native support for GIF!
 
Upvote 0
Well, then they are very different. A gif is almost a movie.
As I said, "your animated GIF is an animated image like the AnimationDrawable of AnimationPlus". So they are not completely different. It's just that the main purpose of AnimationPlus is to animate views not images, but it can do it. It's also possible with other libraries. None of them, but MovieView, accept GIF because this format is deprecated.
 
Upvote 0
As I said, "your animated GIF is an animated image like the AnimationDrawable of AnimationPlus". So they are not completely different. It's just that the main purpose of AnimationPlus is to animate views not images, but it can do it. It's also possible with other libraries. None of them, but MovieView, accept GIF because this format is deprecated.

Sorry, but I don't understand (because I don't know AnimationDrawable - AnimationPlus).

I asked to myself how the background of that game ("Uno and friends") is done.
I supposed it to be a gif. So, I searched B4X for how to show animated gifs.
 
Upvote 0
Sorry, but I don't understand (because I don't know AnimationDrawable - AnimationPlus).

I asked to myself how the background of that game ("Uno and friends") is done.
I supposed it to be a gif. So, I searched B4X for how to show animated gifs.
If it's a game, then it's very likely that the game engine is used to play the animation. There's absolutely no reason to use a GIF in a game for animations.

The only advantage of animated GIFs is that they can be played by your internet browser without a specialized plugin, and thus they can be used for animated avatars or short videos in forums, but in an Android app, I can't see any advantage over the alternative solutions. Moreover, as said above, their support is not guaranteed.
 
Upvote 0

Similar Threads

Back
Top