Im using constraint layout and i want to achieve the following:
The app:layout_constraintBaseline_toBaselineOf attribute bottom aligns the two textviews, is there any way to top align the two? The regular app:layout_constraintTop_toTopOf is not working of course because of the size differences.
Do this way
http://android.okhelp.cz/whittled-superscript-sup-tag-textview-android-issue/
So it seems there is no a convenient way of doing this and a custom view must be implemented. I've taken inspiration from here:
https://github.com/fabiomsr/MoneyTextView
try this you can use Html.fromHtml for this purpose
or try this use SpannableString
Try this .
Like this .