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
Super Contributor
Posts: 306
Registered: ‎08-10-2010
My Device: Not Specified

without co-ordinate is it possible to place multiple component in playbook?

hi,

in my  application  i have to add many component on one screen but i not specify the X,Y co-ordinate of the component

so it get overlapped so what is solution for this

 

 Playbook in some senario i able to know which component is added is only know at runtime then how we specify co-ordinate for that and how to align component on the screen

 

 

Developer
Posts: 1,269
Registered: ‎12-29-2010
My Device: PlayBook, Z10 LE, Dev Alpha C

Re: without co-ordinate is it possible to place multiple component in playbook?

Check out the qnx.ui.core package and the classes for containers and container layout:

 

http://www.blackberry.com/developers/docs/airapi/1.0.0/index.html

Super Contributor
Posts: 306
Registered: ‎08-10-2010
My Device: Not Specified

Re: without co-ordinate is it possible to place multiple component in playbook?

thanx for your reply

 

now i able to layout the component without giving co-ordinate

but when i have so many component and Playbook width is small so it must be align to next line so how can we achive this

 

in my app i have 7 to 8 button and i have to align in it in Horizontally right now 2 button is trancated on screen.it should be display in next line.

 

 

another layout possible except Horizontal or vertical ?

Developer
Posts: 1,269
Registered: ‎12-29-2010
My Device: PlayBook, Z10 LE, Dev Alpha C

Re: without co-ordinate is it possible to place multiple component in playbook?

You can do a lot with multiple hierarchical containers and combining horizontal and vertical layout at different levels of the hierararchy - e.g. make two containers with horizontal button layouts and then contain those containers in a higher level container and lay them out vertically, giving you two horizontal rows of buttons.

Super Contributor
Posts: 306
Registered: ‎08-10-2010
My Device: Not Specified

Re: without co-ordinate is it possible to place multiple component in playbook?

yes that can be possible to align the component

but is there any direct method is available in which container  automatically  align accordingly screen size ?

 

 

Highlighted
Developer
Posts: 1,269
Registered: ‎12-29-2010
My Device: PlayBook, Z10 LE, Dev Alpha C

Re: without co-ordinate is it possible to place multiple component in playbook?

Maybe qnx.ui.listClasses.TileList can do the job for you.