I have a TextView that holds a Spannable string. The string contains a bunch of text, the first word of which is double the typesize as the rest of the string.
The prob
After a lot of trial and error I got a very hacky solution to work:
I added spannables with the same doubled text size as the emphasized word to every space inside the text. This way the whole TextView got the same (big) line spacing. Be aware that you can not reuse a spannable.
Then I gave the TextView a negative lineSpacingExtra so the line spacing looked nice again.
To avoid unnatuarally wide spaces due to the increased text size I added a ScaleXSpan to every space, scaling them to 50% of their original big size.
This method should work even for TextViews that hold localized strings (where you never know at which position the emphasized word appears or how long your line will be) as long as every line holds at least one space character.