Read complete story

Set Line Spacing in TextView

TextView displays text to the user and optionally allows them to edit it. A TextView is a complete text editor, however the basic class is configured to not allow editing.

In this blog you will know how to increase the spacing between two lines of TextView.

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().

Example-

That set for giving line spacing between lines of TextView.

 

. . .

Comment

Add Your Comment

Be the first to comment.

css.php
Hire Us!
Brief us about your requirements and we'll get back to you.
Woo! Hooy!
We have just recieved your project brief and our expert will contact you shortly.
Send Again
Close