Hi all!
I’ve created a tableView for a high score overview. I need some icons in there using display.newImageRect, but they just won’t show up.
When I replace the newImageRect with a newRect, these rectangles DO show up. Weird, right?
Also, when I DON’T add the icon to the rowGroup, they appear on screen, but won’t move with the tableView.
Here’s the code of the onRowRender ( render listener of the tableView ):
[lua]local onRowRender = function( e )
local rowGroup = e.view
– icon
local icon = display.newImageRect( “img/icon.png”, 50, 52 )
icon.x, icon.y = 100, 25
rowGroup:insert( icon )
end[/lua]
Anybody has a suggestion? I’ve been working with tableViews before, but they are so incredibly buggy, that this is the last time I’ll be using them until it works the way it should. Unless I’m doing something wrong myself, of course, but the fact that all other elements do show up is pretty weird. [import]uid: 86582 topic_id: 31189 reply_id: 331189[/import]