Skip to content

Instantly share code, notes, and snippets.

@toriaezunama
Created January 12, 2012 02:36
Show Gist options
  • Save toriaezunama/1598214 to your computer and use it in GitHub Desktop.
Save toriaezunama/1598214 to your computer and use it in GitHub Desktop.
#lua #corona #template #scrollView widget basic usage
local widget = require "widget"
local scroller = widget.newScrollView{
width = 320,
height = 480,
scrollWidth = 700,
scrollHeight = 1000
}
local obj = display.newImage( "myobject.png" )
obj.x = 400
obj.y = 500
scroller:insert( obj )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment