Youll find everything you need to get going quickly. This codelab is part of a series about Animation with Android. If you need, you may visit Android Tutorial for beginners page. This article doesnt use MotionLayout because I wanted to try and achieve this by using Android animation fundamentals. When the animation reaches the end and the repeat count is INFINTE_REPEAT or a positive value, the animation plays backward (and then forward again). Gets the acceleration curve type for this animation. Import it into Android Studio 3.4 or later, then build and run it on your device. Indicates whether this animation has ended or not. JS. Now add a new XML file in the same drawable folder and name it gube.xml and copy-paste below code: