Answer the question
In order to leave comments, you need to log in
How to make animation start when the main thread is waiting for it to run?
How to make animation start when the main thread is waiting for it to run? Implementation via The join() method failed. Since I understand it is impossible to call the same thread. an error pops up: java.lang.IllegalThreadStateException: Thread already started
It is also important that all animations must be performed in turn
Answer the question
In order to leave comments, you need to log in
If we are talking about Android, use ObjectAnimator'om and AnimatorSet'om.
Write the problem as a whole, judging by the description you are solving it incorrectly. The main thread cannot wait for the animation to complete, it draws it.
As written above, AnimatorSet will make it possible to perform animations in turn. addListener will add a callback to the end of the animation.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question