Hello, I’ve done a fair amount of digging and searching and if I’ve simply missed the answer already stated, I apologize.
I just downloaded and started working with Corona yesterday and so far am loving it ! Generally, the ease of getting something functional so quickly is a little intoxicating. Great work by everyone!
Now to my question – I downloaded and have been experimenting with the ListView2 example here: http://developer.coronalabs.com/content/list-view-2
and am trying to figure out how to control the rowHeight. I don’t see any actual declaration or even a clear place to insert one. The specific tableview creation *appears* to be in the lines below:
myList = tableView.newList{ data=data, default="listItemBg.png", over="listItemBg\_over.png", onRelease=listButtonRelease, top=topBoundary, bottom=bottomBoundary, cat="category", order=headers, categoryBackground="catBg.png", backgroundColor={ 255, 255, 255 }, callback=function(item) local t = display.newText(item.title, 0, 0, native.systemFontBold, textSize) t:setTextColor(0, 0, 0) t.x = math.floor(t.width/2) + 12 t.y = 36 return t end }
Am I correct in assuming this creates the tableView and if that’s true, can someone point me to the spec where it describes how to spell out things like rowHeight?
I read through the newTableView page and while it appears to be setting rowHeight by iteration, I still don’t see rowHeight listed in the parameter list of options under “Syntax” I feel like I’m standing on the dock but can’t find the lake …
http://docs.coronalabs.com/api/library/widget/newTableView.html
Thanks so much … and again, I’m sorry if my noob enthusiasm has me blinded a bit …
- Gary