Android - is there a way to edit color in a part of a string that is displayed?
<p>I have a part of the code that calls a toString on an object and the toString basically spits out the string that will be shown on the screen.</p>

<p>I would like to change the color of one part of the string.  </p>

<p>I just tried something like this:</p>

<pre><code>        String coloredString =  solutionTopicName + " (" + commentCount +  ")";
        Spannable sb = new SpannableString( coloredString );
        ForegroundColorSpan fcs = new ForegroundColorSpan(Color.rgb(140, 145, 160));
        sb.setSpan(new ForegroundColorSpan(Color.BLUE), solutionTopicName.length(), solutionTopicName.length()+3, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);

        return sb.toString();   
</code></pre>

<p>But I am still seeing the same colors appear without change.  </p>

<p>Thanks!</p>
