Titanium Community Questions & Answer Archive

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

TableViewRow is blank when image added.

Hi,

If I add a TableViewRow like this:

var row = Ti.UI.createTableViewRow({
            backgroundColor: '#003874',
            height: 100,
            title: "hello"
        });
tableView.appendRow(row);

This works great, but if I add an image like this:

var row = Ti.UI.createTableViewRow({
            backgroundColor: '#003874',
            height: 100
        });

        /*

        var f = Ti.Filesystem.getFile(Titanium.Filesystem.resourcesDirectory, 'images/weathericons/1.png');

        var imageView = Ti.UI.createImageView({
            image: f,
            width: 24,
            height: 24,
            top: 3,
            left: 3
        });

row.add(imageView);

tableView.appendRow(row);

Then the entire table gets blank. Any ideas?

— asked September 16th 2010 by Magnus Ottosson
  • iphone
  • tableview
  • tableviewrow
0 Comments

2 Answers

  • This seems to be a bug, it's reported here: https://appcelerator.lighthouseapp.com/projects/32238-titanium-mobile/tickets/1477-standalone-window-with-grouped-view-does-not-display-section-rows

    — answered September 18th 2010 by Magnus Ottosson
    permalink
    0 Comments
  • hi,

    please check this pastie & inform me if u have any douts still

    http://www.pastie.org/1099675

    Thks & regards…

    — answered September 18th 2010 by Varun Atluri
    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.