T thehe Member Licensed User Longtime User Sep 3, 2014 #1 What kind of animation does Basic4android support. I used gif animation but only static image display. Please help!
What kind of animation does Basic4android support. I used gif animation but only static image display. Please help!
S susu Well-Known Member Licensed User Longtime User Sep 3, 2014 #2 Android doesn't support animated gif file so you need to decode it by using this library http://www.b4x.com/android/forum/threads/animated-gif-decode-library.6879/ Upvote 0
Android doesn't support animated gif file so you need to decode it by using this library http://www.b4x.com/android/forum/threads/animated-gif-decode-library.6879/
Informatix Expert Licensed User Longtime User Sep 3, 2014 #3 thehe said: What kind of animation does Basic4android support. I used gif animation but only static image display. Please help! Click to expand... In the XXIst century, GIF animations are for me like dinosaurs. Anyway, PK made a library (MovieView) to animate them. An alternative is to use AnimationPlus or NineOldAndroids with PNG or JPG files. Upvote 0
thehe said: What kind of animation does Basic4android support. I used gif animation but only static image display. Please help! Click to expand... In the XXIst century, GIF animations are for me like dinosaurs. Anyway, PK made a library (MovieView) to animate them. An alternative is to use AnimationPlus or NineOldAndroids with PNG or JPG files.
LucaMs Expert Licensed User Longtime User Nov 2, 2015 #4 Informatix said: In the XXIst century, GIF animations are for me like dinosaurs. Anyway, PK made a library (MovieView) to animate them. An alternative is to use AnimationPlus or NineOldAndroids with PNG or JPG files. Click to expand... 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?] Upvote 0
Informatix said: In the XXIst century, GIF animations are for me like dinosaurs. Anyway, PK made a library (MovieView) to animate them. An alternative is to use AnimationPlus or NineOldAndroids with PNG or JPG files. Click to expand... 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?]
LucaMs Expert Licensed User Longtime User Nov 2, 2015 #5 susu said: Android doesn't support animated gif file so Click to expand... ??? http://stackoverflow.com/questions/3660209/display-animated-gif https://code.google.com/p/apidemos/...e/android/apis/graphics/BitmapDecode.java#103 Upvote 0
susu said: Android doesn't support animated gif file so Click to expand... ??? http://stackoverflow.com/questions/3660209/display-animated-gif https://code.google.com/p/apidemos/...e/android/apis/graphics/BitmapDecode.java#103
DonManfred Expert Licensed User Longtime User Nov 2, 2015 #6 LucaMs said: ??? Click to expand... 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
LucaMs said: ??? Click to expand... 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."
wonder Expert Licensed User Longtime User Nov 2, 2015 #7 1. Convert the GIF into a SpriteSheet (many online tool available) 2. Animate the SpriteSheet using GameView, Accelerated Surface or LibGDX. Upvote 0
1. Convert the GIF into a SpriteSheet (many online tool available) 2. Animate the SpriteSheet using GameView, Accelerated Surface or LibGDX.
LucaMs Expert Licensed User Longtime User Nov 2, 2015 #8 DonManfred said: 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." Click to expand... 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
DonManfred said: 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." Click to expand... 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
Informatix Expert Licensed User Longtime User Nov 2, 2015 #9 LucaMs said: 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?] Click to expand... 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
LucaMs said: 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?] Click to expand... 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?
DonManfred Expert Licensed User Longtime User Nov 2, 2015 #10 LucaMs said: class to show a gif Click to expand... 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
LucaMs said: class to show a gif Click to expand... 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!
Informatix Expert Licensed User Longtime User Nov 2, 2015 #11 LucaMs said: How AnimationPlus and NineOldAndroids work? Loading n images (which you must prepare)? GIF, if it is so, is the same. Click to expand... Not really. The main purpose of AnimationPlus and NineOldAndroids is to animate views (by translating them, rotating them, etc.) while your animated GIF is an animated image like the AnimationDrawable of AnimationPlus. Upvote 0
LucaMs said: How AnimationPlus and NineOldAndroids work? Loading n images (which you must prepare)? GIF, if it is so, is the same. Click to expand... Not really. The main purpose of AnimationPlus and NineOldAndroids is to animate views (by translating them, rotating them, etc.) while your animated GIF is an animated image like the AnimationDrawable of AnimationPlus.
LucaMs Expert Licensed User Longtime User Nov 2, 2015 #12 Informatix said: GIF is limited to 256 colors with very basic animation features. GIF images occupy in memory the same room as a PNG image with millions of colors so why bother with this old format. Click to expand... Sometimes 256 colors are enough. Upvote 0
Informatix said: GIF is limited to 256 colors with very basic animation features. GIF images occupy in memory the same room as a PNG image with millions of colors so why bother with this old format. Click to expand... Sometimes 256 colors are enough.
LucaMs Expert Licensed User Longtime User Nov 2, 2015 #13 Informatix said: Not really. The main purpose of AnimationPlus and NineOldAndroids is to animate views (by translating them, rotating them, etc.) while your animated GIF is an animated image like the AnimationDrawable of AnimationPlus. Click to expand... Well, then they are very different. A gif is almost a movie. Upvote 0
Informatix said: Not really. The main purpose of AnimationPlus and NineOldAndroids is to animate views (by translating them, rotating them, etc.) while your animated GIF is an animated image like the AnimationDrawable of AnimationPlus. Click to expand... Well, then they are very different. A gif is almost a movie.
LucaMs Expert Licensed User Longtime User Nov 2, 2015 #14 https://play.google.com/store/apps/details?id=com.gameloft.android.ANMP.GloftUOHM&hl=it ? Upvote 0
Informatix Expert Licensed User Longtime User Nov 2, 2015 #15 LucaMs said: Sometimes 256 colors are enough. Click to expand... For sure. But what's the major advantage of this format over the others? I can't see. A PNG image can have 256 colors if you wish. Upvote 0
LucaMs said: Sometimes 256 colors are enough. Click to expand... For sure. But what's the major advantage of this format over the others? I can't see. A PNG image can have 256 colors if you wish.
LucaMs Expert Licensed User Longtime User Nov 2, 2015 #16 Informatix said: For sure. But what's the major advantage of this format over the others? I can't see. A PNG image can have 256 colors if you wish. Click to expand... Ops, sorry, I'm talking about animated gif!!! [edit: the title of the thread... too ] Upvote 0
Informatix said: For sure. But what's the major advantage of this format over the others? I can't see. A PNG image can have 256 colors if you wish. Click to expand... Ops, sorry, I'm talking about animated gif!!! [edit: the title of the thread... too ]
Informatix Expert Licensed User Longtime User Nov 2, 2015 #17 LucaMs said: Well, then they are very different. A gif is almost a movie. Click to expand... 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
LucaMs said: Well, then they are very different. A gif is almost a movie. Click to expand... 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.
Informatix Expert Licensed User Longtime User Nov 2, 2015 #18 LucaMs said: Ops, sorry, I'm talking about animated gif!!! [edit: the title of the thread... too ] Click to expand... Yes, I can read. Upvote 0
LucaMs said: Ops, sorry, I'm talking about animated gif!!! [edit: the title of the thread... too ] Click to expand... Yes, I can read.
LucaMs Expert Licensed User Longtime User Nov 2, 2015 #19 Informatix said: 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. Click to expand... 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
Informatix said: 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. Click to expand... 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.
Informatix Expert Licensed User Longtime User Nov 2, 2015 #20 LucaMs said: 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. Click to expand... 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
LucaMs said: 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. Click to expand... 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.