Code example for StyleSpan

0
		setSpan(c, startPos, length(), 0);
		return this;
	} 
 
	public StyleableSpannableStringBuilder appendBold(CharSequence text) {
		return appendWithStyle(new StyleSpan(Typeface.BOLD), text);
	} 
 
	public StyleableSpannableStringBuilder appendColor(int color, CharSequence text) {
		return appendWithStyle(new ForegroundColorSpan(color), text);
	} 
 
	public StyleableSpannableStringBuilder appendClick(OnSpanClickListener clickListener, CharSequence text,
			CharSequence tag) {
		return appendWithStyle(new ClickSpan(tag, clickListener), text);
	} 
}