Heba
October 1, 2023, 4:53pm
1
Hello... Can you tell me why a animated image in GIF format does not appear animated in the campaign, but rather appears fixed, and its size is small, only 200 KB... Thank you.
Heba
October 1, 2023, 6:05pm
3
Where can i find load GIF in Blocks please
You can't use a changing gif with Blocks unless you view the gif in the WebVIewer or you use an extension.
Using a WebViewer, App Inventor Code Snippets | Pura Vida Apps you can try this..
Using an extension
(This topic was edited on 2022/06/21)
Hello friends,
this extension is about inserting animated gifs in our applications.
It needs an Image component.
The image can be clickable and transparent background.
Blocks:
LoadGif, needs a Image component. Image file can be in asset, it is only necessary to write its file name.
[It could also be in the SdCard, in this case we would write the absolute address /mnt/sdcard/directorio/file.gif]
We can set a color mask for the transparent backgroun…
Hello friends,
with this extension we can create an animated GIF by adding static images.
Blocks:
Start: Output file name. Example: /mnt/sdcard/my_gif.gif
SetRepeat: Sets the number of times the set of GIF frames should be played. Default is 1; 0 means play indefinitely. Must be invoked before the first image is added.
AddFrame: Adds next GIF frame. The frame is not written immediately, but is actually deferred until the next frame is received so that timing data can be inserted. Invo…
There may be other extensions There isn't a Block that allows loading an animated GIF to an Image so that the animation works. You can load a gif to an image but the animation will not work.
Heba
October 2, 2023, 4:47pm
5
I made two attempts and attached screenshots of them, but they did not work. Can you please guide me to my mistake? Thank you
Heba
October 2, 2023, 5:45pm
7
I did it right, THANKS a lot.
system
Closed
October 9, 2023, 5:46pm
8
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.