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

Posts: 63
Registered: ‎12-10-2012
My Device: Blackberry 9900
My Carrier: Vodafone-in

Set image at bottom of screen

Helloo am new to BB10 Development. I wanna set two images side by side at bottom of screen.. Any advice is appreciated. Thanks in advance.

Help is available everywhere but you have to look at the correct place.
By Me :-)
Posts: 427
Registered: ‎02-22-2012
My Device: BlackBerry Z10, BlackBerry Dev Alpha C, BlackBerry PlayBook
My Carrier: Bell

Re: Set image at bottom of screen

Start by getting the height of the stage and then the height of an image. Set the y property of the image to the height of the stage minus the height of the image. To set an image beside do the same thing then add the width of image 1 to the x property.


If you want to get more advanced you can use a container and a layout. Read the documentation on how to do this here - https://developer.blackberry.com/air/documentation/bb10/organizing_ui_containers_layouts.html 




Follow me on Twitter: @dustinmalik
Keep up to date on BlackBerry development: http://devblog.blackberry.com/