Android Question Nine Old Androids Question

hatzisn

Well-Known Member
Licensed User
Longtime User
Hi everyone,

I am experimenting with the nine old androids library 0.93 and I am facing a problem.
I create as you will see nine panels and I want which ever panel I click to animate.
I have managed to do it with the first but when I click the second I get this error:

*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **

Error occurred on line: 49 (Main)
java.lang.IllegalStateException: Circular dependencies cannot exist in AnimatorSet
at com.nineoldandroids_b4a.animation.AnimatorSet.a(SourceFile:854)
at com.nineoldandroids_b4a.animation.AnimatorSet.Start(SourceFile:490)
at b4a.example.main._startanimation(main.java:486)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:710)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:339)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:249)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:139)
at anywheresoftware.b4a.BA$2.run(BA.java:360)
at android.os.Handler.handleCallback(Handler.java:751)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6077)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:866)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:756)

** Activity (main) Pause, UserClosed = true **

Anyone with a suggestion is welcome. Please also take a look at the FlipPanel class code to help me if you wish on the issue I am writing in there...
 

Attachments

  • FlipPanel.zip
    11.8 KB · Views: 197

hatzisn

Well-Known Member
Licensed User
Longtime User
Thanks a lot XbNnX_507. Meanwhile I have found the answer myself. AnimatorSet's PlaySequential sub should be called only once.
I also have found a workaround on the second problem mentioned in the FlipPanel Class. Watch the attached file.
 

Attachments

  • FlipPanel.zip
    11.9 KB · Views: 201
Upvote 0
Top