I am new to Android, and I looked at similar questions asked by others, with no definite answer, because I think my problem is a little different.
I use TextView in my program, which can contain links, text, numbers, etc., the next one is the TextView that I use.
<TextView
android:id="@+id/viewText"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:paddingBottom="5dp"
android:autoLink="web"
android:linksClickable="false"
android:ellipsize="end"
android:maxLines="7" />
Although this works for normal texts, the ellipsis does not work when links are present in the TextView. I use "autoLink" to show the user that this is a link, but set android:linksClickableto false. Right now, I added an ellipsis from the code, but I want to know if I can do this from the XML file itself.
Thank.