TextView lineSpacingMultiplier less than zero chops last line

Viewed 4408

I have a TextView where I want the line spacing to be less than 1.0, i.e. there will be less than the default amount of space between lines. I've done this:

  <TextView
    android:id="@+id/text_header"
    android:layout_width="@dimen/text_header_width"
    android:layout_height="wrap_content"
    android:text="@string/header_text"
    android:textSize="@dimen/text_header_text_size"
    android:typeface="helvetica"
    android:lineSpacingMultiplier="0.95" />

But in the text on the bottom line, the descenders (e.g. y's, g's, and p's) are being slightly chopped off. In other words, there are about 2 or 3 pixels worth of the bottom of those letters missing.

I've tried playing with margins and padding with no success. I seem to be able to fix the issue by using a specified height (with a little extra room) instead of wrap_content, but I'd like to avoid that if possible.

2 Answers
Related