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
Regular Contributor
Guillaume_LACHAUD
Posts: 60
Registered: ‎12-19-2012
My Device: BB10 Alpha B
My Carrier: SFR
Accepted Solution

Nine-Slice for background

Hi !

 

I am using an Image as a background for my container :

 

background: back.imagePaint
attachedObjects: [
ImagePaintDefinition {
id: back
imageSource: bgButton
}
]

 

How can I specify sliceMargin for the Image used as a background ? Thanks

Please use plain text.
Developer
peter9477
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
My Carrier: none

Re: Nine-Slice for background

This may be what you were looking for: https://developer.blackberry.com/cascades/documentation/ui/image_resources/nine_slicing.html

Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!
Please use plain text.
Regular Contributor
Guillaume_LACHAUD
Posts: 60
Registered: ‎12-19-2012
My Device: BB10 Alpha B
My Carrier: SFR

Re: Nine-Slice for background

**bleep**, I read it too fast and didn't notice the part about the .amd file, thanks

Please use plain text.