How To Disable Row Highlight In Tableview (Widget V2)

Hi.

Anyone knows a way to disable the highlight of the row when you touch the row in a tableView?

My row in the tableview is a RoundRect and the tableview keep highlighting the row background (a rectangle) when the user touch a row.

Thanks,

Renato

I found it. I just need to use to set the alpha = 0 in the over property of the rowColor in the insertRow, like:

[lua]

              tableView:insertRow

                    {

                    isCategory = false,

                    rowHeight = rowHeight,

                    rowColor = { default = { 255, 255, 255, 0 }, over={0, 0, 0, 0} },

                    lineColor = {0,0,0,0} 

                   }

            end

[/lua]

Renato

(http://redbeachgames.com/)’]Red Beach Games

Try our new game  Cut My Puzzle  for free for (https://itunes.apple.com/us/app/cut-my-puzzle/id611051498?ls=1&mt=8)’]iOS or (https://play.google.com/store/apps/details?id=com.redbeachgames.cutmypuzzle)’]Android

This only works if the table is full screen and not using a mask. 

I found it. I just need to use to set the alpha = 0 in the over property of the rowColor in the insertRow, like:

[lua]

              tableView:insertRow

                    {

                    isCategory = false,

                    rowHeight = rowHeight,

                    rowColor = { default = { 255, 255, 255, 0 }, over={0, 0, 0, 0} },

                    lineColor = {0,0,0,0} 

                   }

            end

[/lua]

Renato

(http://redbeachgames.com/)’]Red Beach Games

Try our new game  Cut My Puzzle  for free for (https://itunes.apple.com/us/app/cut-my-puzzle/id611051498?ls=1&mt=8)’]iOS or (https://play.google.com/store/apps/details?id=com.redbeachgames.cutmypuzzle)’]Android

This only works if the table is full screen and not using a mask.