My favorites | Sign in
Project Home Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
StackLayout  
A stack layout prints all elements added to it on top of each other.
Updated Dec 20, 2009 by tom.verg...@gmail.com

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"));
	}
}
Powered by Google Project Hosting