Yes I have searched this also before and this also works for single
line text so i think you have to use it this way..

Wouter

On Oct 20, 6:23 pm, Mark Wyszomierski <mar...@gmail.com> wrote:
> Hi Wouter,
>
> Yes that does work for single line text, but not for multiline -
> checking from other posts here it seems like the ellipsis does not
> handle multiline text correctly?
>
> Thanks
>
> On Oct 20, 12:06 pm, Wouter <wouterg...@gmail.com> wrote:
>
> > I use this in my layout xml file:
>
> > android:ellipsize="end"
> > android:singleLine="true"
>
> > And this works perfectly for text on 1 line..
>
> > On Oct 20, 5:42 pm, Mark Wyszomierski <mar...@gmail.com> wrote:
>
> > > Hi,
>
> > > I have a normal TextView which has multiple lines. I set its max
> > > number of lines to 3. I'd like it to show an ellipsis at the end if
> > > the text is too long:
>
> > >   TextView tv = new TextView(context);
> > >   tv.setLines(tv);
> > >   tv.setText("some really long text...");
>
> > > I tried the set ellipsis calls but it doesn't seem to do anything -
> > > the text appears the same way. How do we get this to work?
>
> > > Thanks
--~--~---------~--~----~------------~-------~--~----~
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