I have a TextView, that should be max 15 characters and at the end it should have three dots. With my XML it cuts 15 characters but doesn't add three dots ...
at the end.
IMPORTANT: I know it works when I limit the text with line count -
android:maxLines="2"
. But I need limit it with max characters count, as stated in question.
<TextView
android:layout_height="match_parent"
android:layout_width="match_parent"
android:maxLength="15"
android:ellipsize="end"
tools:text="123456789qwertyuiopasdfghjklzxcvbnm"
android:textSize="50sp"
/>
The result: