The container now wraps the components so you need to do:

Container cnt = LayeredLayout.encloseIn(con, progress);
con.getParent().replace(con, cnt, null);

Then to remove the infinite progress:

con.remove();
cnt.getParent().replace(cnt,con, null);

Notice the last argument can be a transition like fade, slide or something 
else if you so desire.

-- 
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/64f1a9fd-e944-4c54-a009-e7dde5f87ef4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to