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
Trusted Contributor
itcraps
Posts: 238
Registered: ‎12-26-2010
My Device: BlackBerry Z10
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
Please use plain text.
Developer
ekke
Posts: 1,544
Registered: ‎04-08-2010
My Device: Z10 (red Limited Edition), Q10, Z30
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 Mobile Apps BlackBerry 10 Cascades
Cascades - Workshops / Trainings / Bootcamps

blog: http://ekkes-corner.org videos: http://www.youtube.com/user/ekkescorner http://vimeo.com/ekkescorner/videos
bb10-development: http://appbus.org Twitter: @ekkescorner
Please use plain text.
Trusted Contributor
itcraps
Posts: 238
Registered: ‎12-26-2010
My Device: BlackBerry Z10

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
Please use plain text.