Android: Last line of textview cut off

I had the same problem, and found that simply adding

android:includeFontPadding="false"

the final line of text no longer had its descenders clipped.


I've encountered the same cut-off issue as shown at the screenshot. It is caused by the baseline alignment in the horizontal LinearLayout. TextView and Spinner have different baselines due to font size difference. To fix the issue it is needed to disable baseline alignment for the layout by setting:

android:baselineAligned="false"

or in the code:

layout.setBaselineAligned(false);

After trying a million different things, I think I have the answer.

I applied a LayoutGravity to the TextView item:

android:layout_gravity="fill"

Seems to solve all clipping issues I had. Hope this helps someone with the same problem.