socialview icon indicating copy to clipboard operation
socialview copied to clipboard

No ellipsize applied to SocialTextView

Open OneManStudioDotSe opened this issue 3 years ago • 2 comments

Thanks for this very useful library :)

I am facing a strange issue. I have a SocialTextView where I also want to apply an ellipsize after a maximum of 4 lines. For some reason though the rules for ellipsize don't get applied either at the Layout Preview or the actual app. Check the screenshot below: Screenshot 2021-09-21 at 10 56 37 AM

Notice that the top TextView shows the proper ellipsize while the SocialTextView below doesn't apply it.

What am I doing wrong? Should I add any customisation to the SocialTextView or the helper class in order to support ellipsize as well?

OneManStudioDotSe avatar Sep 21 '21 08:09 OneManStudioDotSe

Any news on the issue?

I still haven't managed to find a way to support ellipsize at a SocialTextView and I haven't found anything at the open or closed issues.

OneManStudioDotSe avatar Sep 28 '21 12:09 OneManStudioDotSe

Sorry for late reply. I honestly haven't touched ellipsize feature in TextView, so I can't say for sure why is this happening.

However, I did test a method from https://github.com/chrisjenx/Calligraphy/issues/43:

android:ellipsize="end"
android:maxLines="1"
android:singleLine="true"

Strangely, single line ellipsize works while 2 lines doesn't.

hanggrian avatar Nov 10 '21 18:11 hanggrian

Closed for inactivity.

hanggrian avatar Aug 29 '23 19:08 hanggrian