HeaderPullView Content not visible on IPAD

You must Login before you can answer or comment on any questions.

Peepz,

The code below need to add a simple headerpullview to my tableview but its not visible (i can see the backgroundcolor when im pulling down but no black square ('tpv1'))

What im doing wrong? Do i need to make it 'visible' or set it to 'show()'?

var instance = Ti.UI.createTableView({
        /*separatorStyle:Titanium.UI.iPhone.TableViewSeparatorStyle.NONE,*/
        separatorColor: '#f1f1f1',
        showVerticalScrollIndicator:false,
        top:globals.mainBorderWidth,
        width:myWidth,
        left:globals.mainBorderWidth,
    }); 
 
 
    var tpv = Ti.UI.createView({
        backgroundColor:"#fcfcfc",
        left:0,
        right:0,
        height:30
    }); 
 
    var tpv1 = Ti.UI.createView({
        backgroundColor:"#000",
        left:0,
        right:0,
        height:30,
        width:20
    }); 
 
    tpv.add(tpv1);
    instance.headerPullView = tpv
Hope someone can help?

— asked 11 months ago by Blaat Orx
1 Comment
  • Fixed it by setting the bottom of the tpv1!

    — commented 11 months ago by Blaat Orx

Your Answer

Think you can help? Login to answer this question!