All. I am a new in android developing. Now I am working with TextView. As the case may be I set differnt text. But sometime text is very big. For example, I insert this "abcdefgh_myword", and i get something like that "abcdefg" in my small TextView, but i want to get this "..._myword". So i want to count the number of letters that i see (programly) and set text what i want to see. How to do this? Any ideas?
....
android:ellipsize="start" doesn't work how i want... Please watch what happen when i constrict width my TextView
before
after
<TextView
android:id="@+id/textView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="15dp"
android:layout_marginRight="15dp"
android:ellipsize="start"
android:gravity="center"
android:maxLines="1"
android:text="abcdef1234567" />
Any ideas?