Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

android

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?

like image 793
user1293519 Avatar asked Jul 20 '12 08:07

user1293519


People also ask

How do I increase line spacing in android?

Just we need to add an attribute with your TextView that give the spacing with lines. These are –android:lineSpacingExtra, android:lineSpacingMultiplier – use these two attributes with your TextView in XML file. or Programatically call setter method of that attribute textView. setLineSpacing().

How do I reduce line spacing in TextView?

You can use TextView. setLineSpacing(n,m) function. Show activity on this post. You can use lineSpacingExtra and lineSpacingMultiplier in your XML file.

What is line spacing extra?

Line spacing determines the amount of vertical space between lines of text in a paragraph. By default, lines are single-spaced, meaning that the spacing accommodates the largest font in that line, plus a small amount of extra space. Paragraph spacing determines the amount of space above or below a paragraph.


1 Answers

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

like image 69
Buda Gavril Avatar answered Oct 13 '22 07:10

Buda Gavril