I have created a SpannableString
, with the first character, and last 2 smaller than the rest. It looks like this:
sBBBBss
I would like to align the smaller characters so they are aligned with the top of the bigger text, instead of the bottom (as they appear here).
Is this possible?
I guess I am looking for something like this pseudo-code:
myAmount.setSpan(new RelativeAlignSpan(View.TOP), 0, 1, 0);
My only other alternative is to create a new layout, with multiple TextViews, that I populate independently, and align however I please. I think this is kind of messy, and would prefer to use the SpannableString approach.