Code example for SpannableStringBuilder

Methods: insert

0
				break; 
			case android.graphics.Typeface.NORMAL :
				starttag = "";
				endtag = "";
		} 
		ssb.insert(startoffset, starttag);
		ssb.insert(endoffset + starttag.length(), endtag);
		return starttag.length() + endtag.length();
	} 
 
	private int insertLinksAndFixSpans(String URL, int startoffset,
			int endoffset, SpannableStringBuilder ssb) {
		String starttag = "<a href = \'" + URL + "\'>";
		String endtag = "</a>";
		ssb.insert(startoffset, starttag);
		ssb.insert(endoffset + starttag.length(), endtag);
		return starttag.length() + endtag.length();
	} 
 
	private int insertHTMLAndFixSpans(String html, int startoffset,
Connect your IDE to all the code out there  Get Codota for Java