I can't manage to get my textSwitcher to be able to support superscript text. No matter what I try it shows up as regular size text.
Here is what I've tried:
Spanned span = Html.fromHtml("<sup>TM</sup>");
String subscript = span.toString();
mSwitcher.setText(getText(R.string.desc_about1) + subscript);
Then I tried setting it in the XML string file:
<string name="desc_about1">Android<sup><small>TM</small></sup></string>
Neither one of these will work. Is there another way?
My textSwitcher code for reference:
<TextSwitcher android:id="@+id/switcher"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
@Override
public View makeView() {
TextView t = new TextView(this);
t.setGravity(Gravity.TOP | Gravity.LEFT);
t.setTextSize(18);
return t;
}
Thanks all!