Adding simple animations to older Android applications with animateLayoutChanges

I was struggling to figure out how to add simple animations to an Android app while still trying to remain compatible with Android 4.1 until I just found this line:

android:animateLayoutChanges="true"

Just add that line of code to the root container of your layout, and it will add a little animation to your view widgets. It may not be exactly what you want, but hey, it’s better than widgets just appearing and disappearing without any transition at all. If that isn’t exactly what you want, there’s another LayoutTransition technique shown here on SO that may help. See the Android Animation and Graphics Overview for even more approaches.