Following is my textview in android layout and I want that after a certain width of text, it adds '...' at the end of string. I don't want to do it in java while setting the text but want this to be handled by this textview itself. Is it possible?
<TextView
android:id="@+id/list_contact_name"
android:layout_width="220dp"
android:layout_height="wrap_content"
android:layout_toRightOf="@+id/list_contact_icon"
android:paddingLeft="10dp"
android:paddingBottom="10dp"
android:textColor="#222"
android:text="Sandeep Choudhary Mahabali"
android:textSize="18sp" />