Adding bullet points to labels
This is going to sound a stupid question, but how do you add bullet points into the text element of a label?
Thanks
2 Answers
-
Accepted Answer
I found using hexidecimal character codes works too. Use \u2022 in your text for bullets.
-
I don't think it's a stupid question at all, but strangely I have never actually considered it before.
One (probably) not particularly graceful approach would be to create a loop that creates two objects per iteration: a small imageView (styled with backgroundColor and borderRadius to give it a nice aesthetic) for the bullet and a label containing the text. At each iteration, add them both to a vertical layout view. Use the left property to keep them in line along the left-hand side.
It doesn't sound too difficult, but I'd be open to suggestions of a better way.
Please let us know your final solution.