StackLayout Module

Hi guys,

I’ve made a simple module to allow Corona programmers to position their objects in a stacklayout with ease! This module allows to stack display objects, grouped objects and widgets. It particularly great for business type apps.

You can find the library here: https://github.com/bramvbilsen/StackLayoutCoronaSDK

You can also add the stacklayout to a scrollview or to the sceneGroup by doing something like this:

for i=1, #stacklayout do sceneGroup:insert(stacklayout[i]) end

I hope some of you can put it to good use :slight_smile:

NvhqUtP.png

You should consider making a plugin out of this and submitting it to the Marketplace. See: https://coronalabs.com/blog/2015/06/23/tutorial-building-a-pure-lua-plugin-for-corona/

Rob

What Rob said.

Also, if you’re interested in layouts more generally, you might also consider building something on top of a constraint solver like Cassowary (I pointed to an implementation in this thread, but this one, by the same author as the UTF-8 plugin, still seems to updated regularly… if I’m reading his comments correctly, the linked file is just a Lua port of the C code also in the repository).

You should consider making a plugin out of this and submitting it to the Marketplace. See: https://coronalabs.com/blog/2015/06/23/tutorial-building-a-pure-lua-plugin-for-corona/

Rob

What Rob said.

Also, if you’re interested in layouts more generally, you might also consider building something on top of a constraint solver like Cassowary (I pointed to an implementation in this thread, but this one, by the same author as the UTF-8 plugin, still seems to updated regularly… if I’m reading his comments correctly, the linked file is just a Lua port of the C code also in the repository).