Question

I think an image will explain this far better than words. The screenshot is from the layout viewer thingy in Intellij, but this happens on device as well. I want the cut off text to not be displayed at all. Is this possible?

Clipped Text

Was it helpful?

Solution

<TextView
   ....
   android:lines="2"

or:

<TextView
   ....
   android:maxLines="2"

First option sets exact number of lines for your text view, second options sets the maximum number.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top