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
Contributor
subhaMaz
Posts: 18
Registered: ‎02-18-2011
My Device: Not Specified

Relative parent container layout according to the child containers [issue]

Hi

 

This is Subha. Basically I'm a BlackBerry developer. Recently I 've started Playbook application. I need some help related to playbook UI designing.

 

I want to make a dynamic design in hierarchical order depending upon the XML I get from web . For that I need to fix the size of the containers in highest depth. Other Outer containers need to be adjusted according to the child containers accordingly.

 

I am very new to the ActionScript Environment, any help from your side is hardly appreciated.

 

Thanks

 

Subha Maz

Developer
jtegen
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10

Re: Relative parent container layout according to the child containers [issue]

What is your development environment (IDE vs command line)?

What do you have done already that needs to be built upon?

Have you looked the the QNX/BB SDK/API yet (suggest looking at containers)?

Contributor
subhaMaz
Posts: 18
Registered: ‎02-18-2011
My Device: Not Specified

Re: Relative parent container layout according to the child containers [issue]

[ Edited ]

Hi Jtegen 

 

Thanks for the quick response.

 

I am using Flash Builder 4 Standard and running my application as described in RIM doc

 

http://docs.blackberry.com/en/developers/deliverables/25068/Run_app_FB4_1375417_11.jsp

 

and I 've gone through the tutorial related to UI design which described here

 

http://docs.blackberry.com/en/developers/deliverables/23959/Using_containers_to_design_layout_144674...

 

Here myMain container's size is set like this.

 

myMain.setSize(stage.stageWidth, stage.stageHeight);

 

stage.stageWidth and stage.stageHeight are supposed to be the screen size. am i right???

 

if it is, my reruirement is different

 

my requirement is to fix the child containers size (mySub, mySubRight, mySubBottom) in PIXEL and according to the size of these subContainers the outer container myMain should be adjusted.

I dont want to fix the size of myMain.

 

Thanks -

Subha