pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Bartlett <cbartlet...@gmail.com>
Subject Re: Activity Indicator in accordion header
Date Mon, 21 Mar 2011 11:44:46 GMT

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.


On 21 March 2011 15:16, Simon Chatelain <schatela@gmail.com> 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

View raw message