title: Edit text view with image and text wrapped around image
body: <p>I am building a rich text editor. 
  I have implemented text formatting like bold italic etc and also paragraph formatting like blockQuote. Now I would like to add images in editor and text should wrap around it. 
  I have implemented all these using <code>SpannableString()</code> and <code>Spanned()</code> and <code>StyleSpan()</code>. </p>
  
  <p>I can add image to a line using <code>ImageSpan()</code>, but that add it inline and its just there in place of a character
  , what I want is to insert it in paragraph and rest of text should wrap around it. I am able to add image at the beginning of text by following code.. but I cannot align it center and right. </p>
  
  <pre><code> SpannableString string = new SpannableString("Text with icon and padding");
   string.setSpan(new IconMarginSpan(bitmap, 30), 0, string.length(),
   Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
  </code></pre>
  
  <p>How to do it ? any example? or what procedure to follow?  </p>