Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
New Developer
joegeyijun
Posts: 35
Registered: ‎03-08-2009
My Device: Not Specified
Accepted Solution

[Question] Make WebView with transparent background instead of white color of background

I am develop something in Cascades and use WebView control.

By default, the background of WebView is white color.

I put WebView in a container.

I want WebView has no white color background and need it to be transparent and show image in container.

Anybody has same experience?

Thanks.

 

Joe

Please use plain text.
Developer
steve_web
Posts: 319
Registered: ‎05-07-2009
My Device: BlackBerry Z10, PlayBook, 9900
My Carrier: Telus

Re: [Question] Make WebView with transparent background instead of white color of background

[ Edited ]

Inside your Webview just set:

 


WebView{
    settings.background: Color.Transparent
}


PlayBook Apps: DataMine, Dots + Boxes, 5 Marbles
BlackBerry SmartPhone Apps: 5 Marbles Soon: **** (D.Z.A), ****Quest, **** Challenge, VaultCracker, DevBrowser, Radial****
Please use plain text.
New Developer
joegeyijun
Posts: 35
Registered: ‎03-08-2009
My Device: Not Specified

Re: [Question] Make WebView with transparent background instead of white color of background

Yes, it works.

Thank you very much.

 

 

Please use plain text.