I have a VerticalGroup of Buttons on my screen. The problem is that buttons located very closely one to one. I want to add some spaces between buttons, something like padding or margin. I find pad method in Table in API, but VerticalGroup doesn’t extends Table and therefore doesn’t contain this method. Please point me how I can add some spacing between buttons inside VerticalGroup
Sample code
VerticalGroup buttons = new VerticalGroup();
buttons.addActor(btn1);
buttons.addActor(bnt2);
// ... and so on
Instead of adding padding from the parent (the
VerticalGroup) add the padding to each element (theButtons).A libGDX Button is also a Table and Tables support various pad methods. Those are documented to change the padding around the outside of the table (or button in your case).