Label with different color words.

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

Hi, i'm having the label combination of 2 words(for eg:ScoreMore). I want this label with different colors.The 'Score' should be in one color and 'More' Should be in another color.Is there a solution for this kind of Labels?

3 Answers

The Styled Label Module will do what you are asking.

— answered 1 year ago by Stephen Feather
answer permalink
2 Comments
  • I don't think the module (version 1.3) has been rebuilt to match the new titanium module format (2) though.

    Here is how it looks on iOS:

    text

    — commented 1 year ago by Stephen Feather

  • correct that, i hadn't installed the latest archive:

    Android and iOS:

    text

    — commented 1 year ago by Stephen Feather

On iPhone: No On Android: if you use label.html rather than label.text, you might be able to give it a color using HTML tags, I don't know.

But you can use two labels, or you can use a webview

— answered 1 year ago by Esben Maaløe
answer permalink
3 Comments
  • I think On Iphone device html on label is not possible ... just check it out.

    — commented 1 year ago by Moiz Chhatriwala

  • yes Esben is right, on iPhone its not possible but you can do that with android ...

    tell me first in which os you want this..?

    — commented 1 year ago by Mitul Bhalia

  • Is there any other option to get this done on Iphone , rather then using webview.

    — commented 1 year ago by Moiz Chhatriwala

Then you have to split your string into two words using JavaScript split() function and use 2 labels to get it done. I thing its not possible in single label.

Your Answer

Think you can help? Login to answer this question!