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: 313
Registered: ‎03-13-2013
My Device: Z10
My Carrier: Tim

alignament

i put three labels in the first line and three texts in the second line, how can align them?

If this post is helpful, please click the "like" button! Smiley Happy
Developer
Posts: 1,524
Registered: ‎12-18-2012
My Device: Z30, Z10 LE, DevAlpha C, PlayBook

Re: alignament

Hi,
Assign them the same spaceQuota or preferredWidth depending on situation.

If you have horizontal StackLayout, spaceQuota can be set like this:

Label
{
  layoutProperties: StackLayoutProperties { spaceQuota: 1 }
}

 


Andrey Fidrya, @zmeyc on twitter
Developer
Posts: 313
Registered: ‎03-13-2013
My Device: Z10
My Carrier: Tim

Re: alignament

thank you so much! Smiley Happy

If this post is helpful, please click the "like" button! Smiley Happy
Developer
Posts: 366
Registered: ‎07-15-2013
My Device: blackberry Z10
My Carrier: Personal

Re: alignament

That way want to align these texts?
You could look out here

https://developer.blackberry.com/cascades/documentation/ui/layouts/

https://developer.blackberry.com/cascades/documentation/ui/layouts/layouts_set_up_project.html

 

 

If you find this information useful please click like --->
@mezeitune on twitter