How can set Gap in a Command?

18 views
Skip to first unread message

Ulises Escobar

unread,
Oct 3, 2013, 4:02:46 PM10/3/13
to codenameone...@googlegroups.com
How can set Gap between icon and text in a SideMenuBar Command?

Shai Almog

unread,
Oct 4, 2013, 1:59:48 AM10/4/13
to codenameone...@googlegroups.com
You can override createTouchCommandButton but this seems like a reasonable use case so for the next update I'll add:

cmd.putClientProperty("iconGap", new Integer(myGapValue));

This should work for all touch commands not just sidemenu.
Reply all
Reply to author
Forward
0 new messages