Hi all,
I am wondering if there is a way to make the row height flexible to the content that is inserted into it ? like for example tweeter …
my data is read from database and it can vary in size. So I want the height to match the data .
[lua]
list = widget.newTableView
{
left =0,
top = 200,
height = _H - 300 ,
width = _w,
onRowRender = onRowRender,
onRowTouch = onRowTouch,
--listener = scrollListener
}
local function InsertRows()
for i = 1, #listRecs do
list:insertRow{
rowHeight = 150,
--isCategory = true,
rowColor = { default={ 1, 1, 1 }, over={ 1, 0.5, 0, 0.2 } },
lineColor = { 0.5, 0.5, 0.5 }
}
end
[/lua]
I appreciate your advice
Abdul