[android-developers] Re: Question about using TextView

2009-06-05 Thread Mark Murphy
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

[android-developers] Re: Question about using TextView

2009-06-05 Thread Tao
gotcha, thx :) On Jun 5, 1:27 pm, Mark Murphy mmur...@commonsware.com 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

[android-developers] Re: Question about using TextView

2009-06-05 Thread Tao
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

[android-developers] Re: Question about using TextView

2009-06-05 Thread Mark Murphy
Tao wrote: 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