Android: LinearLayout addView Animation

android, android-animation, android-layout, android-view, animation

Solution

It's a very old question, but still interesting: you can use the attribute `android:animateLayoutChanges="true"`

For example:

<LinearLayout

                android:orientation="horizontal"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:animateLayoutChanges="true"
               />

Problem

I currently have a working Android program that programmatically adds views to a LinearLayout. I would like those views to be animated in and cannot find any good resources on figuring out how to do this. Could someone point me in the right direction?

Original source