Android String color manipulation -


i have 1 text view in android text "hi how you?"

my query can keep color of "hi how" blue , "are you?" red in 1 line below

see image

cause using 2 text view show "hi how" , "are you" respectively want show in 1 text view above requirement?

can give 2 color code @ time 1 text in string file? reference?

try this:

string text = "<font color=#0000ff>hi how</font> <font color=#ff0000>are you</font>"; mtxtvw.settext(html.fromhtml(text)); 

Comments

Popular posts from this blog

How to access named pipes using JavaScript in Firefox add-on? -

multithreading - OPAL (Open Phone Abstraction Library) Transport not terminated when reattaching thread? -

node.js - req param returns an empty array -