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: 238
Registered: ‎12-26-2010
My Device: BlackBerry Z10
My Carrier: Telus
Accepted Solution

Layout Problem

Hi, I would like to layout my buttons like the image below, I have tried using a StackLayout but it doesnt work, I have used the LeftToRight orientation, but instead of warping it down, it reduces the button width.

 

So any idea how to produce a layout that lays the button like the image below?

 

Thanks

 

button layout.png

www.jackdevora.com
Developer
Posts: 1,746
Registered: ‎04-08-2010
My Device: Passport Silver, PRIV
My Carrier: Telekom.de, O2, Vodafone

Re: Layout Problem

if you want it exaclty as shown, why not

StackLayout TopBottom

containing 2 StackLayout Left-Right

and each (Button ? Image ?) with same minWidth/maxWidth miHeight/maxHeigh

-------------------------------------------------------------------------------
ekke (independent software architect, rosenheim, germany)

BlackBerry Elite Developer
BlackBerry Platinum Enterprise Partner
International Development native Mobile Business Apps
BlackBerry 10 | Qt Mobile (Android, iOS)
Workshops / Trainings / Bootcamps

blog: http://ekkes-corner.org
mobile-development: http://appbus.org Twitter: @ekkescorner
Developer
Posts: 238
Registered: ‎12-26-2010
My Device: BlackBerry Z10
My Carrier: Telus

Re: Layout Problem

Yeah, I thought of that, but then i was wondering there is a more "cleaner" approach to it.

 

Thanks then, I will just use the double stacklayout method..

www.jackdevora.com