Titanium Community Questions & Answer Archive

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

What am I doing with my tableViewRow?

So in this picture my tableViewRows look good:

row up

but when I click down, it looks as if the down state is showing the bottom of this type of row:

row down

— asked October 15th 2010 by Ronnie Swietek
  • row
  • state
  • wrong
0 Comments

3 Answers

  • Do you have custom images for the background? You might've just defined the wrong image for that row?

    — answered October 15th 2010 by Colton Arabsky
    permalink
    0 Comments
  • 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.

    — answered October 18th 2010 by matt raj
    permalink
    0 Comments
  • 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);
    }
    
    — answered October 15th 2010 by Ronnie Swietek
    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.