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
Developer
Posts: 139
Registered: ‎05-24-2011
My Device: Z30 running 10.2 and Playbook 4GLTE running OS2.1
My Carrier: rogers
Accepted Solution

set a background image for a TextArea or Label?

Hey gang,

 

I'd like to set a background image for a TextArea or a Label.

 

is there a way to do this?

 

alternatively, if i set the background at the root container level and make the rest of the controls slightly transparent (opacity: 0.8 or something), will the background show through?

 

thanks,

 

J

bron: a cron-like scheduler for BlackBerry 10
http://apps.oddelement.com
Highlighted
Developer
Posts: 828
Registered: ‎10-16-2012
My Device: Red Z10
My Carrier: Rogers

Re: set a background image for a TextArea or Label?

for your text area, set backgroundVisible: false &/or turn the opacity down enough that you can see through it and place your background image behind the text area. (i belive opacity changes will affect the text as well though).  

 

for labels, i used the container method as you described.