Can't get ellipsis to work on Android

Posted by Mark on Stack Overflow See other posts from Stack Overflow or by Mark
Published on 2009-11-09T03:00:05Z Indexed on 2010/05/26 12:31 UTC
Read the original article Hit count: 214

Hi,

I have a TextView. I want it to ellipsize if longer than its available width. This does not work unless the input string has no spaces... can anyone provide an example of this working? I've tried different combinations of:

singleLine="true" maxLines="1" scrollHorizontally="false"

none of these have any effect. Again, if I supply a string that has no spaces in it, then the ellipsis appears correctly. What am I missing? I've tried this on 1.5, 1.6, 2.0, all same problem.

Thanks

© Stack Overflow or respective owner

Related posts about android

Related posts about android-sdk