I have TextView which should accept max 6 characters. If value has more than 6, I want to show 3 dots at the end. Used these attributes to achieve that but it just simply cut text at the end without 3 dots.
android:textAlignment="viewEnd"
android:maxLines="1"
android:maxLength="6"
android:ellipsize="end"