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?
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 (...).
android:ellipsize="end"
, ,
4 . start, end, middle marquee. , "end"
android:maxLines="4" android:ellipsize="end"