If I don't call registerAnimated() -> animate() is not invoked so it 
doesn't work !!

About the fact is it expensive, it's not a problem in my situation because 
it concern my loading form which is shown only when launching the app.

On Friday, September 30, 2016 at 5:48:31 AM UTC+2, Shai Almog wrote:
>
> Hi,
> that's probably not the right solution.
> If you don't call registerAnimated is animate() invoked?
> If not then that's the problem. 
>
> Returning true from animate() indicates that you need a repaint() that 
> might be very expensive as you prevent the EDT from sleeping at all as long 
> as the component is shown.
>
> We sometimes deregister animations aggressively to avoid the overhead that 
> prevents the device from sleeping and keep battery usage in the low zone. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/7395966c-3f78-45c8-89af-fd16ece118a1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to