Android RelativeLayout : Text getting clipped
-
23-12-2019 - |
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?
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