Using Databinding and maxlines make ellipsize not work in TextView

181 Views Asked by At

when I replace maxlines with singleLine or replace text(databinding) with static text, ellipsize = "end" is fine. And this is not constraintLayout's problem. how can I fix this problem except truncating text and replacing by adding '...'?

1

There are 1 best solutions below

0
On

In my case, ellipsis got broken by setMovementMethod(LinkMovementMethod.getInstance()), used to get links working.