Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

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

— asked November 17th 2010 by James Everington
  • bulletedlist
  • label
0 Comments

2 Answers

  • Accepted Answer

    I found using hexidecimal character codes works too. Use \u2022 in your text for bullets.

    — answered February 24th 2011 by Eugene Gibson
    permalink
    3 Comments
    • Thanks :)

      — commented March 14th 2012 by Amit Kothari
    • Thanks.

      — commented May 17th 2012 by sridhar davuluri
    • http://stackoverflow.com/questions/15760088/list-bullet-size – Any tips please?

      — commented April 2nd 2013 by prasad katankot
  • 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.

    — answered November 17th 2010 by Paul Dowsett
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.