Code example for ForegroundColorSpan

0
  } 
 
  public StyleableSpannableStringBuilder appendGray(CharSequence text) {
//    Log.d(TAG, "appendBlue: " + text); 
    if (text != null) {
      return appendWithStyle(new ForegroundColorSpan(Color.GRAY), text);
    } 
    return null; 
  } 
}