Code example for ImageSpan

0
		} 
 
		int len = mSB.length();
		mSB.append("\uFFFC");
 
		mSB.setSpan(new ImageSpan(d, src), len, mSB.length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
	} 
 
	private void endFont(TagMarker tm) {
		int end = mSB.length();
		int start = tm.getStart();
		if (start != end) {
			String color = tm.getAttributes().getValue("", "color");
			String face = tm.getAttributes().getValue("", "face");
			String size = tm.getAttributes().getValue("", "size");
			if (!TextUtils.isEmpty(color)) {
				int c = Util.getHtmlColor(color);
				if (c != -1) {
					mSB.setSpan(new ForegroundColorSpan(c | 0xFF000000), start, end, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
				}