New window is transparent. Why?
On my app, I have a button that loads a window. Both the main window and the one that is loaded both have the same background image set.
However, on the new window, when it loads, you can see through it to the calling window. It does this as a regular window and as a modal window.
How can I get rid of this? Anyone have code they can share?
This is the code for the main window that creates the new one
var w = Titanium.UI.createWindow({
backgroundImage:'images/darkstripes_bg.png',
title:'Location',
url:'addlocation.js'
});
w.open({animated:true});
And on the new window, all of the Views have
backgroundImage:'images/darkstripes_bg.png',
Yes, the files are in the appropriate locations, so I know its not that type of issue.
2 Answers
-
w.open({animated:true, modal:true});
That worked for me when I had the transparent background. -
That sort of works I guess. But I dont want ANY transparency. I'd rather it not be modal if I didnt have to.