ReadMoreTextView icon indicating copy to clipboard operation
ReadMoreTextView copied to clipboard

Can't see the readmore option within recyclerview

Open ImdStar-Pranesh opened this issue 7 years ago • 7 comments

Hi, I tried to implement the ReadMoreTextView but i cant see "readmore" option for some items. 1 And when i clicked on the readmore option of te previous item,i can see it. Is it an issue or the functionality,Can't figure it out. 2

ImdStar-Pranesh avatar Apr 07 '17 10:04 ImdStar-Pranesh

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.

bravoborja avatar Apr 07 '17 11:04 bravoborja

Hi,

Thanks for the update.

Regards,

Pranesh

From: Borja Bravo [mailto:[email protected]] Sent: Friday, April 7, 2017 4:46 PM To: bravoborja/ReadMoreTextView [email protected] Cc: ImdStar-Pranesh [email protected]; Mention [email protected] Subject: Re: [bravoborja/ReadMoreTextView] Can't see the readmore option within recyclerview (#22)

hi @ImdStar-Pranesh https://github.com/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.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/bravoborja/ReadMoreTextView/issues/22#issuecomment-292510877 , or mute the thread https://github.com/notifications/unsubscribe-auth/AYqS_-8-ZNJV07mwIMVqsck2eCO2AqPxks5rthrjgaJpZM4M2wPn .

ImdStar-Pranesh avatar Apr 07 '17 11:04 ImdStar-Pranesh

so,can i use it within recyclerViewew? Does the problem still exist?

shijia7 avatar May 26 '17 10:05 shijia7

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

bravoborja avatar May 26 '17 11:05 bravoborja

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

ahmaadyunus avatar Jul 16 '17 06:07 ahmaadyunus

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)

palanitringapps avatar Jan 19 '19 13:01 palanitringapps

It's working fine with trimModeLength

m6265m avatar Jul 12 '20 07:07 m6265m