AnimatedVectorDrawable was added in Android 21. It provides us with the power of animation by using XML only. It…