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

Adobe AIR Development

Reply
Developer
Deevych
Posts: 93
Registered: ‎02-05-2011
My Device: Not Specified
Accepted Solution

BB10 - Transparent TileList?

Hello,

 

I tried to use TileList for images positioning, but  can't make it to be transparen...

Meaning, I can add elements to a TileList, and show needed images in CellRenderer, but all images (transparent) are places on black opacue background...

 

Is there a way to set cell BG to be transparent?

 

Thanks

Please use plain text.
Developer
UberschallSamsara
Posts: 930
Registered: ‎12-29-2010
My Device: PlayBook, Z10 LE, Dev Alpha C

Re: BB10 - Transparent TileList?

Did you set the alpha of your TileList component itself to zero or some other low number?

 

Please use plain text.
Developer
shaan_softwaredvlpr
Posts: 172
Registered: ‎01-17-2011
My Device: 9500 series
My Carrier: Airtel

Re: BB10 - Transparent TileList?

You may need to set skin for your custom cell renderer

See UI Skin examples to do so.
Please use plain text.
Trusted Contributor
osus
Posts: 199
Registered: ‎04-26-2012
My Device: Z10
My Carrier: Vodafone

Re: BB10 - Transparent TileList?

I had a similar problem and is the skin of the cell renderer the responsible for painting that baground.

 

In the skin I did something like this. I leave the down and select skin for UI feedback purposes when selecting

 

 

		override protected function getSkinForState(param1:String):DisplayObject{
			var _loc_2:DisplayObject = null;
			switch(param1)
			{
				case SkinStates.DOWN:
				case SkinStates.SELECTED:
					_loc_2=super.getSkinForState(param1);
					break;
				default:
				{
					_loc_2=new Sprite();
					break;
				}
			}
			return _loc_2;
		}

 

My apps for Playbook: PlayEpub Book Reader with epub and FB2 support, Google Reader, ReaditLater - Net Files Share Explorer Get access to your network shared files- FFSync Sync your Firefox bookmarks and passwords
Please use plain text.
Developer
Deevych
Posts: 93
Registered: ‎02-05-2011
My Device: Not Specified

Re: BB10 - Transparent TileList?

Thank you, this worked just fine.

Sad that in order to achieve such a simple task I need to create a bunch of classes.
Please use plain text.