On Wednesday, May 2, 2018 at 6:30:56 AM UTC+2, Shai Almog wrote: > > We try to be smart and "deregister" when possible to keep > performance/battery usage going. So if a component has its own animation it > will try to do that. > You can skip the call for super if the builtin animation doesn't matter or > you can re-register the animated if you still need it (it won't add you > twice). >
Yes the parent builtin animation doesn't matter (as it is just an "empty" Component without any animated background image or whatsever) . What I don't understand though is why calling super.animate() before returning true in my child custom component animate() function makes this function to only be called once whereas it works well if I don't... Imagine I had an animated background image in my parent component, how would I do to animate both this background image and my child component? -- 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 [email protected]. 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/1d32a994-7bc4-47e3-bcbc-7a46fabadac3%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
