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
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

Developer
Posts: 322
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****
New Developer
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.