How to adjust line height in TextView with multiple type sizes?

后端 未结 4 448
既然无缘
既然无缘 2021-01-31 17:54

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

4条回答
  •  无人及你
    2021-01-31 18:38

    You can try using one of these TextView properties:

    android:lineSpacingMultiplier
    android:lineSpacingExtra
    

    to at least try to make all lines the same height (same as the first one).

提交回复
热议问题