Cell Style for Table View List

Dear sirs,

How to create a Table View List with different Cell Styles (Title and Subtitle bellow, Title Left and Subtitle Right, …) ?

Just for explain another way, these is the Object C structure:

typedef enum {
UITableViewCellStyleDefault,
UITableViewCellStyleValue1,
UITableViewCellStyleValue2,
UITableViewCellStyleSubtitle
} UITableViewCellStyle;

Thank You !

Each row is a group and within that group you can place one or more things whichever way you like.

Example:

[lua]

local function onRowRender( event )

    

    local row = event.row

    local rowTitle  = display.newText( row, “Im the title”, 0, 0, native.systemFont, 12)

    rowTitle: setReferencePoint(display.TopLeftReferencePoint)

    rowTitle.x = 10

    rowTitle.y = 5

    local subTitle  = display.newText( row, “Im under”, 0, 0, native.systemFont, 12)

    subTitle: setReferencePoint(display.TopLeftReferencePoint)

    subTitle.x = 10

    subTitle.y = rowTitle.y + rowTitle.height

   

end

[/lua]

OK. I understood. 

Thank You!

And How about “Acessory” property:

  1. None

  2. Disclosure indicator

  3. Detail disclosure Button

  4. Checkmark

Thank you again !

Not sure what you mean by None.

Disclosure indicator is just an arrow image you would place to the right in the row. 

You could use the button widget and just place the button in the row group as other things.

I don’t believe there is any official checkmark widget, but would be easy to create and if  you google there is something in the code share.

Check the samples in the Corona simulator (under sampleCode->Interface->listView*

Thank you very much.

Each row is a group and within that group you can place one or more things whichever way you like.

Example:

[lua]

local function onRowRender( event )

    

    local row = event.row

    local rowTitle  = display.newText( row, “Im the title”, 0, 0, native.systemFont, 12)

    rowTitle: setReferencePoint(display.TopLeftReferencePoint)

    rowTitle.x = 10

    rowTitle.y = 5

    local subTitle  = display.newText( row, “Im under”, 0, 0, native.systemFont, 12)

    subTitle: setReferencePoint(display.TopLeftReferencePoint)

    subTitle.x = 10

    subTitle.y = rowTitle.y + rowTitle.height

   

end

[/lua]

OK. I understood. 

Thank You!

And How about “Acessory” property:

  1. None

  2. Disclosure indicator

  3. Detail disclosure Button

  4. Checkmark

Thank you again !

Not sure what you mean by None.

Disclosure indicator is just an arrow image you would place to the right in the row. 

You could use the button widget and just place the button in the row group as other things.

I don’t believe there is any official checkmark widget, but would be easy to create and if  you google there is something in the code share.

Check the samples in the Corona simulator (under sampleCode->Interface->listView*

Thank you very much.