Webview with Transparent BG
Hi Folks,
Is it possible to have a webview with a transparent BG? I was hoping to display html (just text and some h1/h2 tags) in a scrollview with a transparent BG so i can see the background of the app itself! All works fine apart from the current white background! :(
(Tried setting body background: transparent; in the css of the webview as i thought i saw that mentioned somewhere.. no luck!)
Thanks! :)
Scott
2 Answers
-
Accepted Answer
You can had backgroundColor transparent in your webview :
var win = Titanium.UI.currentWindow; win.backgroundColor = '#B5D5FF'; var web = Titanium.UI.createWebView({html:'<html><body><h1>some test</h1></body></html>',backgroundColor:'transparent'}); win.add(web);
-
Hi!
#
EvenbackgroundColor:'clear'
works for me!