hanks-zyh / hanks-zyh/HTextView

"Scale" effect , multiline error

Open
#79 0 comments 0 reactions 0 assignees View on GitHub
Backlog
Dominant language
Java
Stars
5.6k
Forks
815
PR merge metrics
No merged PRs in 30d

Description

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 .

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.