ZakTaccardi ZakTaccardi - 1 year ago 67
Android Question

Is android:animateLayoutChanges supposed to work when a child view's height is updated?


Let's say
's height increases at runtime. I would expect
to animate downward. Instead, it snaps directly into its new position.

Why does my desired animation not occur?

Answer Source

According to

By default, all transition types except CHANGING are enabled.

So if you want to animate when a child changes its size. You can do so by

LayoutTransition layoutTransition = new LayoutTransition();
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download