Animated GIFs aren't currently supported. GIFs are currently represented by the Picture class, which is a subclass of Image. The Image class is designed to be static. It doesn't include any API for "playing" an sequence of frames. That's what the Movie class (and subclasses) are designed to do. The plan was to implement animated GIF support using a concrete subclass of Movie called Video (Image ~= Movie, Picture ~= Video, Drawing ~= Animation). However, this has not been done. You are welcome to try to implement it if you like.
G On Jun 16, 2011, at 5:32 PM, Edvin Syse wrote: > To show intederminate progress while loading children for a TreeBranch using > a TreeViewBranchListener, I do the following: > > 1. branch.clear() to remove all children > 2. Add a <spinner> Please wait... node > 3. Kick off a task to load the content from db > 4. Populate the branch from a TaskAdapter(TaskListener) > > This works very well and the app looks so much more snappy after I added > this, but it would be great if the spinner actually rotated. I use an > animated gif spinner, but it only shows one "frame". > > I just wanted to check if you have concidered adding support for animated > gifs, or if I should create the animation manually :) > > -- Edvin
