Try android:ellipsize="end" on the TextView in XML.

j

On Thu, Jun 4, 2009 at 1:29 PM, Tao <grea...@gmail.com> wrote:
>
> Hi All,
>
> Maybe it is a simple problem for some of you. But how do
> you automatically cut off long strings and add "..." to the right end
> in TextViews, like Activity title does?
>
> Sorry for posting twice coz I didn't see my previous post in the list
>
> >
>



-- 
Jeff Sharkey
jshar...@android.com

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to