Closed ishaansrm closed 3 years ago
Yep, I remember running into this as well. Unfortunately, there's nothing a MovementMethod here can do to workaround this.
I encounter this problem too. Any updates?
Don't think there's anything the lib can do in this case, refer the stackOverflow link for a workaround
Ellipsize doesn't add ... at end of text with maxLines=4 when setting text with BetterLinkMovementMethod:
This is a platform issue as well; Ellipsize doesn't work with spannableStrings.
A workaround that seems to work is to use
Spannable.SPAN_EXCLUSIVE_EXCLUSIVE
flag for.setSpan()
, instead ofSpannable.SPAN_INCLUSIVE_INCLUSIVE
src: https://stackoverflow.com/a/21652979/2639476
This does seem to work for links at the beginning of text too, so not sure what side-effects the flag change may introduce.