GUI design not same as shown in device simulation

15 views
Skip to first unread message

obi...@gmail.com

unread,
Feb 19, 2017, 12:01:43 AM2/19/17
to CodenameOne Discussions
If you are experiencing an issue please mention the full platform your issue applies to:
IDE: NetBeans/Eclipse/IDEA
Desktop OS
Simulator
Device

I am on Mac OS sierra and using InteliJ IDE.  My UI design layout is not same s shown in the device simulator for all skins.  The device simulator is missing component elements.  See screen grabs.

I have tried for three days now.  Please SoS
Screenshot 2017-02-18 23.52.12.png
Screenshot 2017-02-18 23.52.42.png

Shai Almog

unread,
Feb 19, 2017, 1:06:04 AM2/19/17
to CodenameOne Discussions, obi...@gmail.com
It's hard to tell from the screenshots but it looks like you used FlowLayout in the top level on a complex component. Flow layout is flaky, I suggest you try replacing it with a different kind of layout E.g. BoxLayout.X which behaves more consistently across devices.

obi...@gmail.com

unread,
Feb 19, 2017, 3:15:48 PM2/19/17
to CodenameOne Discussions, obi...@gmail.com
Shai, you're a magician. Everything is now ok once I changed it from flowLayout to BoxLayoutX.  I won't have been able to figure this out since that one layout affected other subsequent layout components.  Thanks a million and more success with this platform. Cheers
Reply all
Reply to author
Forward
0 new messages