I use a custom font / custom Typeface for a TextView on my app. The TextView displays a paragraph of a text, but with the additional line spacing from the font itself it's rather irritating. So there's like a quite gap between one line with another on the paragraph. Can anybody know how to reduce the spacing through XML or programmatically?
You can use the lineSpacingMultiplier
attribute of your TextView to reduce/increase the spacing. Like this:
<TextView
android:lineSpacingMultiplier="0.6"
...
/>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With