I have an ImageView that I use to show progress via an AnimationDrawable. When I want to show my progress spinner, I do this:
ImageView
AnimationDrawable
anim
With androidx you can use doOnEnd method which invoked when the animation has ended
val anim = ObjectAnimator.ofFloat(eva_image, View.TRANSLATION_Y, 0f, 500f) anim.setDuration(500) anim.doOnEnd { Toast.makeText(this, "Anim End", Toast.LENGTH_SHORT).show() } anim.start()