Java – Android view animation lifecycle
•
Java
I would like to ask if the animation will be cancelled if the view is destroyed when the configuration changes
I have delayed animation and callback So I worry that if I destroy the view, the callback will be executed
view.animate()
.setStartDelay(2000)
.withEndAction(new Runnable() {
@Override
public void run() {
//do something
}
});
Solution
You can call anim cancel(); You can also call anim reset();.
Reference here
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码
