How to Change the line spacing between lines of text in an TextView/EditText, using lineSpacingMultiplier
added in API Level 1.Extra spacing between lines of text, as a multiplier. Must be a floating point value, such as "1.2".
1. Create an Android project, if you don't already have one.
2. Add a EditText.
3. In the main.xml file, add the code below.
<EditText android:text = "3 - 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:lineSpacingMultiplier = "3" />
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