hi…
I’m triyng to change row color in a tableview and i have followed this topic :
https://forums.coronalabs.com/topic/40774-tableview-highlight-row-selected/
The code works fine, but when i try to scroll table view appears this error : attempt to call method setfillcolor .
Why that?
How can i solve this issue?
this is my code
local function onRowTouch( event ) local phase = event.phase local row = event.target local par = event.row.params if "press" == phase then for i = 1, myList:getNumRows() do if i == row.index then myList.\_view.\_rows[i].\_rowColor.default = { 1, 0,0 } else myList.\_view.\_rows[i].\_rowColor.default = {1,1,1} end end myList:reloadData() end end myList = widget.newTableView { top = 54, width = 410, height = 270, onRowRender = onRowRender, onRowTouch = onRowTouch } for i = 1, #data do myList:insertRow{ rowHeight = 15, rowColor = { default = { 232, 232, 232 }, over = {255, 100, 100} -- color on click }, lineColor = { 100, 100, 100 }, params = { cod = data[i].codcli, rsoc = data[i].ragsoc, inds = data[i].indiri, cit = data[i].citta } }