[android-developers] Re: Showing ellipsis in a TextView?

2009-11-11 Thread Mark Wyszomierski
nEx, I finally took a look at the TextUtils class. It doesn't seem to consider height at all, just width - you found the same thing right? I think I have to measure each character at a time and handle wrapping myself until it gets to a maxLines parameter I'll set, then do the ellipsizing, Thanks

[android-developers] Re: Showing ellipsis in a TextView?

2009-10-21 Thread Mark Wyszomierski
Ok, that confirms what I'm seeing. I wonder if there really is a way to get the ellipsis to work for multiline text. If not, I will have to write a widget for it unfortunately! Thanks On Oct 20, 12:37 pm, Wouter wouterg...@gmail.com wrote: Yes I have searched this also before and this also

[android-developers] Re: Showing ellipsis in a TextView?

2009-10-21 Thread nEx.Software
I have ellipsize working for multiline text. I had to write my own ellipsize function to do it. I wanted to replace the ... with ...Read More so my implementation is highly customized. A tip, you can clone the ellipsize function from the AOSP then use it directly. The problem appears to be not in

[android-developers] Re: Showing ellipsis in a TextView?

2009-10-21 Thread Mark Wyszomierski
Ha that's the same exact control I'm looking to create, multiline and if it spills over three vertical lines, replace the last few characters with an ellipsis and More text - the user clicks that and the textview expands to full height. I have written this kind of control for blackberry but was

[android-developers] Re: Showing ellipsis in a TextView?

2009-10-20 Thread Wouter
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

[android-developers] Re: Showing ellipsis in a TextView?

2009-10-20 Thread Mark Wyszomierski
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-developers] Re: Showing ellipsis in a TextView?

2009-10-20 Thread Wouter
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