Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Custom tableview

Hi everyone,

In previous 0.9 sdk, i was able to do custom tableview with cool background image.
To do so i used something like :

var data = [{title:'my title', backgroundImage:'images/MyPicture.png', 
rowHeight:73},
var template = {layout:[ {type:'text', fontsize: Blabla....}
var tableview = Titanium.UI.createTableView({data:data,
 template:template' ......

But this seems not to work anymore with latest titanium SDK.

Anyone have informations/links about that ?
Thank You very much.

— asked June 10th 2010 by Yann Marzack
  • custom
  • tableview
  • template
0 Comments

1 Answer

  • Hi Yann. I'm in the same boat; I'm converting my apps from 0.8, and although it's not that different, there's a bunch of stuff that doesn't work as expected :)

    Re. your question

    1. In your sample, you've got the backgroundImage set against a row of data.. don't do it there.. do it in the createTableView call.

    2. If that doesn't work couldn't you make the window/view have a background image, and then make the tableView transparent (using the opaque property)?

    Let us know what works or doesn't work! :)

    Matt.

    — answered June 11th 2010 by Matt Collinge
    permalink
    1 Comment
    • Matt,
      Thanks for your reply.
      I've found on appcelerator a link to a tutorial for custom tableview.
      Seems to be the correct way to do it :
      http://cssgallery.info/custom-row-for-tableview-in-appcelerator-titanium/

      Best regards,
      Yann

      — commented June 14th 2010 by Yann Marzack
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.