title: SpannableString: Is it possible to apply two or more RelativeSizeSpans?
body: <p>I am trying to construct a SpannableString such that it looks like this:</p>
  
  <p><img src="https://i.stack.imgur.com/cc5cu.png" alt="enter image description here"></p>
  
  <p>Two characters (m, s) should be smaller than the rest.
  I have tried to hold all the text in one SpannableString, and I also tried to concatenate two SpannableStrings via a SpannableStringBuilder.
  The code for one Spannable looks like this:</p>
  
  <pre><code>spannable.setSpan(new RelativeSizeSpan(0.75f), spannable.length() - 1, spannable.length(), 0);
  </code></pre>
  
  <p>However, only one formatting is applied - when using the SpannableStringBuilder, only the "m" is smaller, and when using one SpannableString for the whole text, only the "s" is smaller.</p>
  
  <p>Debugging also showed that Spannables seem to hold only one instance of RelativeSizeSpan, meaning there can be only one Span of one type. Is this true or expected behaviour?
  Would it be advisable to concatenate TextViews instead?</p>
  
  <p>EDIT: By the way, I am trying to remove a HTML.fromHtml() call here for performance reasons (many GC calls).</p>