When adding a webView a white flash appears, how do I stop it?
On the ipad is there a way to stop the split second white flash that happens when a new web view is envoked? EG if I do this there will be a little white flash before the content loads.
var webView = Titanium.UI.createWebView({url:'index.html'});
var appWin = Titanium.UI.createWindow({fullscreen: true });
appWin.add(webView);
appWin.open();
2 Answers
-
Accepted Answer
To build on what @Ackman said, you could also put this into your app.js and make it the default background for all windows:
Ti.UI.setBackgroundColor('#000');
It works on iPhone, assuming it does on iPad too.
-
try
var webView = Titanium.UI.createWebView({url:'index.html'}); webview.backgroundColor='black';