How to increase the spacing between lines in a textview.?

Android

Android Problem Overview


> Possible Duplicate:
> Is it possible to style the android fonts styles with leading and tracking?

How to increase the spacing between lines in a textview in android?

Android Solutions


Solution 1 - Android

from code you can use textView.setLineSpacing() or from xml you can use android:lineSpacingExtra

Solution 2 - Android

You can use lineSpacingExtra and lineSpacingMultiplier in your XML file.

android:lineSpacingMultiplier="1.2" 

or a number greater than 1

android:lineSpacingExtra="xxdp"

Solution 3 - Android

You can use this: lineSpacingExtra="xxdp"

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
Questionuser1293519View Question on Stackoverflow
Solution 1 - AndroidBuda GavrilView Answer on Stackoverflow
Solution 2 - AndroidPravitha VView Answer on Stackoverflow
Solution 3 - AndroidIonică BizăuView Answer on Stackoverflow