Get a nice list inside a label - How to do it?

You must Login before you can answer or comment on any questions.

Hey guys,

I just finished my first real App with Titanium and it works really nicely but there is one point which just refuses to work / look pretty:

I got several labels with text in them inside this app and in several of them there are lists with bulletpoints.

I got to do those with \u2022 and it works just fine.

the problem is that if the text after that bulletpoint is too long for one line it goes to the next one, which is bad because i cant indent the text at this point.

This is my question: How do you manage to get these lists looking pretty.

I already tried fixing it with a lot spaces (failed), doing a HTML list(failed) and by adding silly <br/> marks

Thank you in advance

1 Answer

Hi Tobias.

Sounds like you have had a lot of fun.

OK Labels I think are intended to be a label, not a list.

The way I would do this is to create a parent view, with a view for each item, and in that create an image view on the left for the bullet and then a label next to that for the text. Using the layout vertical on the parent view.

It may seem a little long winded but it will give a really nice display.

Hope this helps

T.

Your Answer

Think you can help? Login to answer this question!