[Library] Creating toolbar on applications

Hello, on my way to help Corona be better at business app, I’m sharing another library which I developed. You can use this one to create toolbars (top and bottom bars) on your application.

Top container contains a background, text and up to two actions buttons. When clicked these actions opens customizable composer scenes.

Bottom container has a background and up to four actions buttons. When clicked these actions opens customizable composer scenes.

 

Example:

toolbar_example_zpsqjwxzsxm.png

Code: https://github.com/lsoaresesilva/corona_toolbar

 

It is very easy to use, for example:

local toolbarLibrary = require("toolbar") local toolbar = toolbar:new({ containers = { topContainerProperties = { bgColor = {1,0.8,0.8}, textProperty={text="Top"}, actions={ {defaultFile="search\_icon.png", scene="search"}, {defaultFile="home.png", scene="home"}, } } }})

Nice work!

Also, wasn’t there a Corona business app sample shipping with simulator? I couldn’t find it within sample projects so that’ll come in handy.

It’s not in the core samples, but on our GitHub sample’s repo:  https://github.com/coronalabs-samples/business-app-sample

There is also a weather app there too:

https://github.com/coronalabs-samples/CoronaWeather

Rob

Nice work!

Also, wasn’t there a Corona business app sample shipping with simulator? I couldn’t find it within sample projects so that’ll come in handy.

It’s not in the core samples, but on our GitHub sample’s repo:  https://github.com/coronalabs-samples/business-app-sample

There is also a weather app there too:

https://github.com/coronalabs-samples/CoronaWeather

Rob