Code example for BackgroundColorSpan

0
		if (mImageGetter != null) {
			d = mImageGetter.getDrawable(src);
		} 
 
		if (d == null) {
			mSB.setSpan(new BackgroundColorSpan(0), mSB.length(), mSB.length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
			return; 
		} 
 
		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");
Stop searching for code, let great code find you!  Add Codota to your java IDE