Animation for android

Asked

Viewed 89 times

0

How to make this kind of circle animation for android? CM SECURITY

1 answer

1


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.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.