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
3 Answers
-
Hi
if you want to use an image in your row you need to specifyleftImage:"../images/golf_ball.png"
not only "image"
-
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 -
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.