Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3548

Re: How to apply different colors to all texts in a text box in design studio

$
0
0

Hi,

If you use formatted text view instead of text view, you could achieve it. In formatted text view you could set a html using script. To achieve that you can set html like this.

 

FORMATTEDTEXTVIEW_1.setHtmlText("<p><span class='red'>Red</span> color <span class='green'>Green</span></p>");

 

After that define your custom css as below.

 

.red {color: red; }

.green{color: green;}

 

Hope this helps.

 

Thanks,

Mohan Raj D.


Viewing all articles
Browse latest Browse all 3548

Trending Articles