B4A Library Animated Label Old Style (Medieval Style...)

MarcoRome

Expert
Licensed User
Longtime User
Hi. Your test file give me this error:

*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
java.lang.RuntimeException: java.lang.ArrayIndexOutOfBoundsException: length=20; index=20
at anywheresoftware.b4a.keywords.Common$13.run(Common.java:1682)
at android.os.Handler.handleCallback(Handler.java:789)
at android.os.Handler.dispatchMessage(Handler.java:98)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6944)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)
Caused by: java.lang.ArrayIndexOutOfBoundsException: length=20; index=20
at b4a.example.animatedlabel$ResumableSub_Open.resume(animatedlabel.java:354)
at anywheresoftware.b4a.keywords.Common$13.run(Common.java:1680)
... 7 more
 

ac9ts

Active Member
Licensed User
Longtime User
Hi. Your test file give me this error:

It looks like the width of the view is causing it.

Changing
B4X:
Anim.AddViewToParent(Activity,Lab,True,0,1,100,10)
to
B4X:
Anim.AddViewToParent(Activity,Lab,True,0,1,95,10)

allows it to run. You can break any of the labels by making the width > 95
 
Top