I\'m trying to add a little space between lines to my TextViews using android:lineSpacingMultiplier
from the documentation:
Extra spacing
I used a style to solve this issue. The official link is here.
Pretty useful stuff. You make a file to hold your styles (like "styles.xml"), and define them inside it. You then reference the styles in your layout (like "main.xml").
Here's a sample style that does what you want:
Let's say you want to alter a simple TextView with this. In your layout file you'd type:
Try it--this is essentially how all the built-in UI is done on the android. And by using styles, you have the option to modify all sorts of other aspects of your Views as well.