Tao wrote: > Hi all, > > I just have a question which may be very simple to some of you. > How can I make a TextView cut off long strings automatically? > I noticed that Activity title can do that: from "abcdefgh" to "abc..."
Use android:ellipsize http://developer.android.com/reference/android/widget/TextView.html#attr_android:ellipsize -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Development Wiki: http://wiki.andmob.org --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---