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"
/>
4. Compile and run!
Related Articles:
Change the line spacing between lines of text in an EditText, using lineSpacingMultiplier
Related Articles:
Change the line spacing between lines of text in an EditText, using lineSpacingMultiplier