title: Android Text with Spannable image on top/bottom of text
body: <p>I am developing a simple devotional app, which has a Kannada (a language in India) sentence to be displayed. I am successful in using typeface and displaying the content. </p>
  
  <p>In few places I have word which has a line on top/bottom of the word as shown below. I tried with a spannable image but I am still not able to achieve it properly. </p>
  
  <p>This is a sample of the code which I am referring to. Here I am using a small icon to display it in between the string. </p>
  
  <pre><code>Spannable span1 = new SpannableString("The  imageplace");
  Drawable android = TestImageActivity.this.getResources().getDrawable(R.drawable.end);
  android.setBounds(5, 0, 20, 5);
  ImageSpan image = new ImageSpan(android, ImageSpan.ALIGN_BASELINE);
  span1.setSpan(image, 3, 4, Spannable.SPAN_INCLUSIVE_EXCLUSIVE);
  tvTextImage3.setText(span1);
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/SMrWW.png" alt="small line above and below text"> </p>