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

java - Intellij Synchronizing output directories .. -

git - Initial Commit: "fatal: could not create leading directories of ..." -