How to change tableView line width?

How do I change the length of the lines between rows in a tableView widget?

There are options for line color e.t.c but is it possible to change the line length - I’m actually just trying to get the lines to span the whole length of the table, but it isn’t happening.

From the Docs:

Basic TableView

local widget = require( “widget” )

– The “onRowRender” function may go here (see example under “Inserting Rows”, above)

– Create the widget
local tableView = widget.newTableView(
{
left = 200,
top = 200,
height = 330,
width = 300,
onRowRender = onRowRender,
onRowTouch = onRowTouch,
listener = scrollListener
}
)
– Insert a row into the tableView
tableView:insertRow(
{
isCategory = isCategory,
rowHeight = rowHeight,
rowColor = rowColor,
lineColor = lineColor,
params = {},

}

)

end

There are a couple of solutions.

First, the widgetLibrary is written in Lua and is Open Source. You can get the library from our github repository at:

https://github.com/coronalabs/framework-widget

You are free to build the tableView that you need from that code.

Or if you don’t want to do this, you can tell the tableView to use noLines = true in its constructor. Then in your onRowRender() function you can put whatever decorations you want at the bottom of the row.

Rob

There are a couple of solutions.

First, the widgetLibrary is written in Lua and is Open Source. You can get the library from our github repository at:

https://github.com/coronalabs/framework-widget

You are free to build the tableView that you need from that code.

Or if you don’t want to do this, you can tell the tableView to use noLines = true in its constructor. Then in your onRowRender() function you can put whatever decorations you want at the bottom of the row.

Rob