Can't see the readmore option within recyclerview
Opened this issue · 7 comments
hi @ImdStar-Pranesh it is an issue.
At this moment, I don't have time to fix it. A Pull Request is welcome ;)
When I get time, I'll try to see the problem.
so,can i use it within recyclerViewew?
Does the problem still exist?
Hi,
What trim mode are you using? With TRIM_MODE_LINES it is possible that the library not working.
Can you try to use the TRIM_MODE_LENGTH? It's working with this?
Thanks for the feedback
I have same problem. The recyclerview first time set data adapter. Colapse work normally ONLY in first index. When, "read more" clicked readmoretextview in other index colapse normally. And, when the device lock, and open again its work normally in all index automatically.
Notes: 1 index have 1 readmoretextview and full screen. So, second index not show in first set data to adapter.
Hopefully fix this soon.
Thank you
Hey, i have the problem in recyclerview, when text.lenght() is 0 then app get crashed, Here i have mention the logs
java.lang.StringIndexOutOfBoundsException: length=0; index=120
at java.lang.String.substring(String.java:2032)
at java.lang.String.subSequence(String.java:2079)
at com.handlrlib.views.ReadMoreTextView.updateCollapsedText(ReadMoreTextView.java:168)
at com.handlrlib.views.ReadMoreTextView.getTrimmedText(ReadMoreTextView.java:149)
at com.handlrlib.views.ReadMoreTextView.getDisplayableText(ReadMoreTextView.java:126)
It's working fine with trimModeLength