I am appending String to Editbox.
here appendToMessageHistory is method.
I want to set separate separate color for the Both String Username and messge
please give solution before you vote down and think it is not relevent in android.
public void appendToMessageHistory(String username, String message) {
if (username != null && message != null) {
messageHistoryText.append(username + ":");
messageHistoryText.append(message + "\n" + "\n");
}
}
any suggestion is appreciated.