lua - TableView/List inside Scrollview -


i'm learning lua/corona , wondering if possible have tableview inside of scrollview?

i've got below scroller enable below navbar become scrollable.

--setup nav bar   local navbar = display.newimagerect("assets/images/navbar.png", display.contentwidth + 15, 44) navbar.x = display.contentwidth*.5 navbar.y = math.floor(display.screenoriginy + navbar.height*0.5)  local navheader = display.newtext("my game", 0, 0, "handlee", 36) navheader:settextcolor(255, 255, 255) navheader.x = display.contentwidth*.5 navheader.y = navbar.y      local scroller = widget.newscrollview     {         top = 44,         width = display.contentwidth,         height = 568,         scrollwidth = display.contentwidth,         scrollheight = display.contentheight,         hidebackground = true,         horizontalscrolldisabled = true,         maskfile = "assets/images/mask-320x568.png"     } 

i'm trying add tables scrollview. possible use widget.newtableview? issue have table dynamic in number of rows contain. retrieve json data api call. won't able define height of table, 0 rows or 10. want tableview static within scrollview.

essentially i'm trying re-create this: http://cdn.thenextweb.com/wp-content/blogs.dir/1/files/2013/01/ruzzle.jpg (the right image - says waiting opponent)

i have custom background image want assign each row. thinking render image each row of data render text etc on top of each image, i'd won't have onrowtouch events , i'd want assign each row id believe possible tableview?

i believe tableview functions scrollview. meaning once tableview exceeds screen height, provides mechanism scrolling itself. understanding, tableview must exist on scene itself. have not seen example has along tableview on same scene (storyboard).


Comments