What am I doing with my tableViewRow?
So in this picture my tableViewRows look good:
but when I click down, it looks as if the down state is showing the bottom of this type of row:
3 Answers
-
Do you have custom images for the background? You might've just defined the wrong image for that row?
-
I think it's a bug. This happens when I use appendRow also. You would have to use setData to just update all the data.
-
No, no custom images. I guess I should have included some code eh?
This is looping based on the length of XML.
for (var i = 0; i < category.length; i++) { var categoryTitle = category.item(i).getAttribute("title"); var row = Ti.UI.createTableViewRow({ hasChild:true }); var label = Ti.UI.createLabel({ left:9, text: categoryTitle }); row.add(label); main_menu.appendRow(row); }