So, I am experimenting further, and am finding that no matter what I do, I am only getting 2 lines while using the ellipsize attribute on my TextView. So, either I am doing something terribly wrong or something has gone awry. Maybe I never have actually seen it go more than 2 lines and I am actually just dreaming? Now, I suppose I'll dive into the source of the ellipsize function (in android.text.TextUtils) and see what's going on in there.
On Jun 10, 1:10 pm, "nEx.Software" <[email protected]> wrote: > Thanks for the quick reply Romain. Unfortunately, I'm seeing a > different result in my app. When I use ellipsize on a multiline > TextView, I get inconsistent results. For example, sometimes a piece > of text that could easily fill the 4 lines that I have set as max, > gets stopped and ellipsized on the second line, or the third line. > Other times, these go the full four lines. I guess I assumed that it > was deciding that a word on the second or third line needed to be > ellipsized and then just stopped rather than wrapping and continuing > on. Maybe it was my own mis-evaluation of my problem? > > If see if I can get the custom ellipsize characters working, and (if I > do) figure out how to submit a patch... Unfortunately, one place where > I wanted to use this was a Widget, so I'll still need to figure > something else out for that, since I can't use a subclassed TextView. > Again, I appreciate the quick response. > > On Jun 10, 10:03 am, Romain Guy <[email protected]> wrote: > > > > 1) Is there anyway to get ellipsize to work on a multiline TextView? > > > So that the ellipses are shown at the end of the text, rather than at > > > the end of the line? If not what is the best way to handle this on my > > > own?]] > > > That's already what it does, see the Home screen's list of apps for > > instance. > > > > 2) Is there any way to change the character used for eellipsize? For > > > example, use "... [Read More]", this obviously coincides with question > > > 1 above since one wouldn't want to take half of the single line to say > > > read more, but on a multiline, it would be nice to be able to have > > > like 3 or 4 lines and then a read more? Maybe there is a better way to > > > do this that I haven't figured out yet? > > > Not at the moment. Patches are most welcome though :) > > > -- > > Romain Guy > > Android framework engineer > > [email protected] > > > Note: please don't send private questions to me, as I don't have time > > to provide private support. All such questions should be posted on > > public forums, where I and others can see and answer them --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

