Description
A stack layout prints all elements added to it on top of each other with their center in the center of the biggest sprite. This layout will resize itself depending on its content.
Example
public class TestScene extends Scene2D
{
@Override
public void load()
{
StackLayout layout = new StackLayout();
add(layout);
// Add 2 buttons to the layout
layout.add(ButtonFactory.createLabeledButton("First button"));
layout.add(ButtonFactory.createLabeledButton("Second"));
}
}