Android Animations Cookbook

Code on the Rocks
2 min readMay 28, 2020

In all honesty, this article is for my own reference but hopefully someone else can find it helpful too. I’ll be adding to it over time.

Basics

Single Property Animations

Use the ObjectAnimator to change the property. Most View properties are here. This section of the Property Animation guide also is good to have on hand.

ObjectAnimator.ofFloat(textView, "translationX", 100f).apply {
duration = 1000
start()
}

--

--