Showing posts with label lineSpacingExtra. Show all posts
Showing posts with label lineSpacingExtra. Show all posts

Change the line spacing between lines of text in an TextView/EditText, using lineSpacingExtra

How to Change the line spacing between lines of text in an TextView/EditText, using lineSpacingExtra

added in API Level 1.

1. Create an Android project, if you don't already have one.

2. Add an EditText.

3. In the main.xml file, add the code below.

 <EditText
android:text = "40 sp. This is text. This is text. This is text. This is text.This is text.  This is text. This is text. This is text. This is text. This is text. This is text. This is text. This is text. This is text. This is text."
android:lineSpacingExtra = "40sp"
        />