No idea about the animated gif side of things but... I have a vague memory about a Decorator that overlays an animated ActivityIndicator over a Component.
I'm not sure if it is tucked away in one of the Pivot tutorial or example applications, if it is something that I hacked together, or just my imagination! http://pivot.apache.org/demos/itunes-search.html The iTunes demo accomplishes something similar with a StackPane (you can see when you search a 2nd or 3rd time), but it is just centered on top of the other component. It should be possible to align the ActivityIndicator and size it as required. Chris On 17 June 2011 04:32, Edvin Syse <[email protected]> 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 >
