Titanium Community Questions & Answer Archive

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

tableview/tableviewrow text size

I am using an array to store tableviewrow data and then appending the row to the tableview.

data ={title:'Title',height:22};
tableview.appendRow(data);

This code is part of a loop, which is why I am using this approach. I was wondering if there is any way to adjust the text size of the title to display while using this approach? Some of my text is rathar long and is getting truncated while displaying.

— asked August 19th 2010 by Johnny Basu
  • tableview
  • tableviewrows
0 Comments

1 Answer

  • Accepted Answer

    You will need to create a custom row for this, with a label. And you will be able to set the font of the label.
    Here is a tutorial on how to do it:

    http://cssgallery.info/custom-row-for-tableview-in-appcelerator-titanium/

    — answered August 19th 2010 by Dan Tamas
    permalink
    1 Comment
    • appreciate the help very much Tamas. I'd kiss you right now if you were a girl :D

      — commented August 19th 2010 by Johnny Basu
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.