I am facing a problem of android:ellipsize that doesn't work in TextView. But to work well for android:singleLine.
I've heard that android:singleLine is "Deprecated", but it is not written in the reference in Android Developer.
https://developer.android.com/reference/android/widget/TextView.html#attr_android:singleLine
android:singleLine is no longer in the "Deprecated"?
ADDED: I solved this problem myself.
As it turns out, android:scrollHorizontally="true" of TextView's attribute is not reflected in xml file.
So, I tried to use setHorizontallyScrolling method, it worked.
*xml:*
<TextView
android:id="@+id/text"
android:ellipsize="end"
android:layout_width="match_parent"
android:layout_height="wrap_content"
/>
*code:*
TextView textView = (TextView)findViewByID(R.id.text);
textView.setHorizontallyScrolling(true);
but, I add "android:inputType="text" in xml like following, it doesn't work. Please be careful.
*xml:*
<TextView
android:id="@+id/text"
**android:inputType="text"**
android:ellipsize="end"
android:layout_width="match_parent"
android:layout_height="wrap_content"
/>