So, I’m using widget.newTableView() as a convenient way to have a series of scrollable buttons. Everything works as I’d like, except that when you touch on a row, the row’s background turns to a sort of grey colour until either you release or start to scroll. Does anyone know how to stop this from happening? I’ve had a look through the documentation but there seems to be nothing relevant there.
I’ve discovered that it only happens if you are using an onRowTouch listener. Since I won’t actually need the listener there’s no problem anymore, but it would still be nice to know for again how to address this issue.
Hi @hasty,
This can be solved by including the “rowColor” parameter in the “:insertRow()” API and setting the alpha value of each color to 0. So, something like the following (it doesn’t matter what the first three numbers are, just the last needs to be 0):
[lua]
rowColor = { default={ 1, 1, 1, 0 }, over={ 1, 1, 1, 0 } }
[/lua]
https://docs.coronalabs.com/api/type/TableViewWidget/insertRow.html
Hope this helps,
Brent
I’ve discovered that it only happens if you are using an onRowTouch listener. Since I won’t actually need the listener there’s no problem anymore, but it would still be nice to know for again how to address this issue.
Hi @hasty,
This can be solved by including the “rowColor” parameter in the “:insertRow()” API and setting the alpha value of each color to 0. So, something like the following (it doesn’t matter what the first three numbers are, just the last needs to be 0):
[lua]
rowColor = { default={ 1, 1, 1, 0 }, over={ 1, 1, 1, 0 } }
[/lua]
https://docs.coronalabs.com/api/type/TableViewWidget/insertRow.html
Hope this helps,
Brent