open a popup window in android

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

Hi, in my android app i need to create a popup window of 600x600 with white background color, how can i do it?

1 Answer

this should work

var w = Ti.UI.createWindow({
        backgroundColor:'white',
        width: 600,
        height: 600,
    });
    var b = Ti.UI.createButton({
        title:'Close',
        width:100,
        height:30
    });
    b.addEventListener('click',function()
    {
        w.close();
    });
    w.add(b);
    w.open({modal:true,navBarHidden:true});

Your Answer

Think you can help? Login to answer this question!