could you provide a detailed example on how to use 
the animateUnlayout(final int duration, int opacity, Runnable callback) 
method of Container? 
Because, if I look at the code I don't really understand. It takes a 
pending layout and animate a morphing from the pending layout to the 
current one. But what is the point of this? if the container is displayed 
it will switch from its current layout to the pending one and then comme 
back to its current layout during the animation time. I don't see any 
situation where I would want an animation to do that. Usually an animation 
is supposed to take place from a current layout and have a pending layout 
as a final goal (what is exactly what animateLayout does). and this even 
when I want to remove a component (what is what the animateUnlayout method 
is labeled to be usefull for but I don't understand how), in which case I 
want my animation to go from this current component layout to a pending 
disposed component layout (and at the end of the animation I can remove 
this component from its parent or hide it) 
Also it is supposed to leave the container in an "invalid state" but I see 
nothing in the code that would deinitialise the container at the end 

-- 
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/af4855b9-ffa8-4136-9456-0d40e95187c1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to