Code example for SpannableStringBuilder

Methods: setText

0
			// so we can just cast it 
			htmlSpannable = (SpannableStringBuilder) spanned;
		} else { 
			// but we have a fallback just in case this will change later 
			// or a custom subclass of Html is used 
			htmlSpannable = new SpannableStringBuilder(spanned);
		} 
 
		// now we can call setText() on the next view. 
		// this won't show any images yet 
		t.setText(htmlSpannable);
 
		// next we start a AsyncTask that loads the images 
		new ImageLoadTask(t.getContext(), htmlSpannable, t).execute();
		 
	} 
 
	private static class ImageLoadTask extends AsyncTask<Void, Object, Void> {
 
		private static final String TAG = "friendica01.Max.ImageLoadTask";