Simon,

I think that a renderer will only be used when the area it is responsible
for is invalidated or repainted.  If the Accordion's skin doesn't think it
needs to repaint the header, then it wont, and therefore ActivityIndicator
will not animate.

Have a look at the default ActivityIndicator skin to see the callback it
sets up to take care of the animation. You might want to use some similar
code to schedule repaints of the Accordion's header when the
ActivityIndicator is active.
http://svn.apache.org/repos/asf/pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraActivityIndicatorSkin.java

Chris

On 21 March 2011 15:16, Simon Chatelain <[email protected]> wrote:

> Hello all,
>
> I am trying to display an animated component inside the headers of an
> accordion. For that I defined a subclass of AccordionHeaderDataRenderer
> inserting a ActivityIndicator at first position in the header.
>
> But the activity indicator animation is not refreshed unless I move the
> mouse cursor over the header. What am I doing wrong and is there a way to do
> that ?
> You can find in attachment a sample application showing the described
> behavior.
>
> Thanks
>
> Simon
>

Reply via email to