Titanium Community Questions & Answer Archive

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

Titanium.UI.createTableView

Hi!
I have a problem with an image. Pls can you help me?
I have this code:
var data = [
{title:'Das Spiel', image:'../images/golf_ball.png', hasChild:true, test:'das_spiel.js'}
];
var tableview = Titanium.UI.createTableView({
data:data
});
When I launch the app, the image is not shown (the golf_ball.png).What is the problem?
And another thing: Do I have the possibility to change the font color of the navigation tab bar text?
Thank you!
Roxana

— asked May 19th 2010 by Roxana Oprea
  • and
  • bar
  • image
  • iphone
  • navigation
  • tab
  • text
0 Comments

3 Answers

  • Hi
    if you want to use an image in your row you need to specify

    leftImage:"../images/golf_ball.png"
    

    not only "image"

    — answered May 19th 2010 by Dan Tamas
    permalink
    0 Comments
  • Thank you very much for your response! It works!
    And how about the font color of the navigation tab bar text. Can I change it? I have tried, but it is still white

    — answered May 19th 2010 by Roxana Oprea
    permalink
    0 Comments
  • I'm not sure, maybe you could set a label as titleControl for the window.
    Let me know if it works :)

    Also for table row don't forget to add the same className to rows, to improve the performance on large tables.

    — answered May 19th 2010 by Dan Tamas
    permalink
    0 Comments
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.