hanggrian / socialview

Android TextView and EditText with hashtag, mention, and hyperlink support
https://hendraanggrian.github.io/socialview/
Apache License 2.0
322 stars 81 forks source link

No ellipsize applied to SocialTextView #111

Closed OneManStudioDotSe closed 10 months ago

OneManStudioDotSe commented 2 years ago

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 commented 2 years ago

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.

hanggrian commented 2 years ago

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 commented 10 months ago

Closed for inactivity.