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
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
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
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
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
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:
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
7 matches
Mail list logo