I want to know if it is possible to change text colour within strings in Java?
I have a peice of text below within my alert dialog and basically what I like is for all the text that are in bold (), I want the colour of those text to be red whilst the rest of the text is black. Is this possible and if so how to implement?
alertDialog.setMessage(Html.fromHtml("<b>Number of Human Players Required:</b>" + "<br/><br/>" +
" 2" + "<br/><br/>" +
"<b>Objective Of The Game:</b>" + "<br/><br/>" +
"The objective of Tic Tac Toe is to get three in a row either in a vertical line, " +
"horizontal line or diagonal line."
)
Thanks,