web123456

Set the line spacing of TextView in Android system (non-row height)

In AndroidTextViewDefault displayChineseIt will be compact and not very beautiful. To keep each line a certainLine spacing, you can set the properties android:lineSpacingExtra or android:lineSpacingMultiplier.

Regarding the Chinese line wrapping problem of TextView under Android, you can view itAndroid custom view - text wrapping automatically

1、android:lineSpacingExtra
Set the line spacing, such as "3dp".

2、android:lineSpacingMultiplier
Set multiples of line spacing, such as "1.2".

/android-textview-linespacingextra/?utm_source=rss