I'm adding line spacing in my textview which spans multiple lines.
What's the difference between android:lineSpacingExtra
and android:lineSpacingMultiplier
?
lineSpacingExtra with 2dp worked fine for me but I was wondering what the Multiplier does instead?
The difference is that android:lineSpacingExtra
adds extra spacing between lines of text of TextView and android:lineSpacingMultiplier
works as a scale factor for height of line space. In other words, each line height will be height*multiplier + extra
.