hanks-zyh / HTextView

Animation effects to text, not really textview
Apache License 2.0
5.61k stars 810 forks source link

"Scale" effect , multiline error #79

Open CapMH opened 6 years ago

CapMH commented 6 years ago

When i input text more than one line to HTextView "scale" effect , the application crashes . This is the error :

D/AndroidRuntime: Shutting down VM W/dalvikvm: threadid=1: thread exiting with uncaught exception (group=0x94c6db20) E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.moham.myapplication, PID: 2856 java.lang.ArrayIndexOutOfBoundsException: length=100; index=100 at com.hanks.htextview.animatetext.HText.prepareAnimate(HText.java:88) at com.hanks.htextview.animatetext.HText.animateText(HText.java:74) at com.hanks.htextview.HTextView.animateText(HTextView.java:107) at com.example.moham.myapplication.MainActivity$1.onClick(MainActivity.java:34) at android.view.View.performClick(View.java:4438) at android.view.View$PerformClick.run(View.java:18422) at android.os.Handler.handleCallback(Handler.java:733) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:136) at android.app.ActivityThread.main(ActivityThread.java:5019) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595) at dalvik.system.NativeStart.main(Native Method)

I've spent some time on HTextView library in order to find this exception issue and solve it , but i couldn't :((( , help me please .