Hi, I have a working tableview, with many rows. Each row contains 3 lines of text, i.e a title and 2 other rows of content. The multi lines I have implemented using a new line character.
Objective:
to have the first line in each row in a larger font than the following two lines
Code:
local function onRowRender( event )
local row = event.row
local font = native.systemFontBold
local fontsize = 10
local rowHeight = row.height / 2
local options_id = {
parent = row,
text = row.params.Name … “\n” … row.params.Location … “\n” … row.params.Category,
x = 10,
y = rowHeight,
font = font,
fontSize = fontSize,
align = “left”
}
– add row object
row.id = display.newText( options_id )
row.id.anchorX = 0
row.id:setFillColor( 0, 0, 1 )
end
any ideas?
the fontsize setting currently is per row, not per line