ReadMoreOption
ReadMoreOption copied to clipboard
Convert your TextView in ExpandableTextView with added options ReadMore/ReadLess.
java.lang.StringIndexOutOfBoundsException: String index out of range: -4 at java.lang.String.substring(String.java:2064) at java.lang.String.subSequence(String.java:2107) at com.devs.readmoreoption.ReadMoreOption$1.run(ReadMoreOption.java:102) at android.os.Handler.handleCallback(Handler.java:883) at android.os.Handler.dispatchMessage(Handler.java:100) at android.os.Looper.loop(Looper.java:224) at android.app.ActivityThread.main(ActivityThread.java:7590) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:539) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:950)
I'm using the TextViewOptions in RecyclerView. Following is the crash that I'm facing: `E/AndroidRuntime: FATAL EXCEPTION: main Process: com.haxxan.xzit, PID: 15726 java.lang.StringIndexOutOfBoundsException: length=16; index=108 at java.lang.String.substring(String.java:2060) at com.devs.readmoreoption.ReadMoreOption$1.run(ReadMoreOption.java:97) at android.os.Handler.handleCallback(Handler.java:888)...
Fix StringIndexOutOfBound
How to set custom font for ReadMoreOption text?
It's working well. ` TextView tv_content = holder.tv_content; tv_content.setText(strContent); tv_content.post(new Runnable() { @Override public void run() { int lineCount = tv_content.getLineCount(); if (lineCount < 4) { return; } int start...
java.lang.NullPointerException: Attempt to invoke virtual method 'int android.text.Layout.getLineCount()' o
It is behaving weird when expanded animation mode is true, other views are waving after
Here is the stack trace of crash java.lang.NullPointerException: Attempt to invoke virtual method 'int android.text.Layout.getLineCount()' on a null object reference at com.devs.readmoreoption.ReadMoreOption$1.run(ReadMoreOption.java:90) at android.os.Handler.handleCallback(Handler.java:873) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:193) at android.app.ActivityThread.main(ActivityThread.java:6692)...
Please check when the content is in paragraph then this library will merge the all content without space plz check asap and give response as early as possible.
Fixed issue mentioned here: https://github.com/devendroid/ReadMoreOption/issues/5