0
You can use an animated gif with this animation already ready and load it into an Imageview like any other image. You can use the Glide library for this. Example:
Glide.with(this)
.load(R.drawable.gifanimation2)
.asGif()
.into(image_view);
Don’t forget to add the Glide dependency to the build.Radle:
dependencies {
compile 'com.github.bumptech.glide:glide:3.7.0'
}
When the processing is finished, you exchange the animated gif for a static image in the return callback.