How can i grab the maximal size for a label in a gridlayout

29 views
Skip to first unread message

tobias...@googlemail.com

unread,
Sep 20, 2018, 4:00:42 AM9/20/18
to CodenameOne Discussions
Hi,

I have a gridlayout with 4 components. The 1st, the 3rd and the 4th are images with a given size. Now i want to have a label on 2nd place which fills the size, so the 3rd and 4th Component in the grid will be as right as possible.

Thanks for helping.
Tobias


If you are experiencing an issue please mention the full platform your issue applies to:
IDE: Eclipse
Windows

Thomas

unread,
Sep 20, 2018, 10:46:03 AM9/20/18
to CodenameOne Discussions
use a TableLayout and give the second column a width of -2 (to make it take all the available remaining space)
Reply all
Reply to author
Forward
0 new messages