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: 146
Registered: ‎07-03-2013
My Device: BB 9360
My Carrier: WIND

Re: multiple lines in a list item

I had that already, but the problem is the margin between the two labels. I dont want too big margin for a single list item. 

 

Developer
Posts: 366
Registered: ‎07-15-2013
My Device: blackberry Z10
My Carrier: Personal

Re: multiple lines in a list item

Not understand well
Could you give me a concrete example.

I also believe that what you are asking, you can customize the labels and layouts

If you find this information useful please click like --->
@mezeitune on twitter
Developer
Posts: 146
Registered: ‎07-03-2013
My Device: BB 9360
My Carrier: WIND

Re: multiple lines in a list item

Sorry for responding a bit late. 

I have the exact same code in my listItemComponent, but the margins between the labels is very wide. I want something like (for instance): The second screenshot of this page.

http://appworld.blackberry.com/webstore/content/20402621/?countrycode=CA

 

Thanks!

Developer
Posts: 1,524
Registered: ‎12-18-2012
My Device: Z30, Z10 LE, DevAlpha C, PlayBook

Re: multiple lines in a list item

Hi!

Labels have non-zero margins by default. Try setting all their margins to 0.

If this won't move them close enough, they can be moved closer by adjusting translationX / translationY properties, but this won't change their 'logical' position and is a bit hacky.

Andrey Fidrya, @zmeyc on twitter
Highlighted
Developer
Posts: 146
Registered: ‎07-03-2013
My Device: BB 9360
My Carrier: WIND

Re: multiple lines in a list item

Changing all the labels to 0 margins for all sides actually worked.
Thanks.