Hi Mark, It looks like we need to set a deprecated property on cupcake to make android:ellipsize work properly.
android:Single line (Deprecated) = true (<--- without this, the ellipsis will not show up) android:ellipsize = end I tried setMaxLines(1) without setting Single line property, it doesn't work Looks weird, maybe a SDK bug? Correct me if I am wrong. On Jun 5, 2:25 pm, Tao <[email protected]> wrote: > gotcha, thx :) > > On Jun 5, 1:27 pm, Mark Murphy <[email protected]> wrote: > > > 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#a... > > > -- > > 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

