How to play animated GIF?

4 messages - 96 views

Hi,

Can anybody give me example how to play animated gif in a container. I have the following inside my splash.xml:

<container style="layout:borderlayout">

<picture src="logo.gif"/>

</container>

where logo.gif is animated gif. The problem is it does not play. I tried to experiment with frameduration, frameheight, framesequence and framewidth attributes but I just coudn't make it work. Can this be done from XML anyway?

Any suggestion would be helpfull. Thanks.

 

Still no answer :( I have finished application, but client insists on animated intro.

I know how to play gif on a lcdui.Form so is there a way to use Form in combination with Kuix components?

Or maybe I should create my own canvas and play a gif in it? Any hints would be helpfull. Thanks

Kuix do not support animated GIFs. BUT it support lcdui Sprite animation style (animation images come from a mosaic). For more help on how to inclue animation in Picture widget, first take a look at the Sprite javaDoc, after create you own picture mosaic and adjust frameHeight, frameWidth attributes.

This is what I realy needed, and I did it in 5 minutes. Thanks.