Android TextView

I have an Android TextView where the view itself is limited to four lines. If the text exceeds this limit, I want the end of the view to end with something like .. <- to notify that there is more text, so you can click and open in full screen, for example. Don't just suddenly stop in the middle of a sentence. Is there a quick fix for this?

+5
source share
3 answers

Use the attribute android:ellipsize="end"in your XML layout file. He may still stop in the middle of the sentence, but in the end he will have an ellipsis (...).

+3
source

, ,

android:ellipsize="end"

4 . start, end, middle marquee. , "end"

+1
android:maxLines="4"
android:ellipsize="end"
0
source

All Articles