Android ViewAnimator height changing base on child

android, java, viewanimator

Solution

Either by specifying the `android:measureAllChildren="false"` as a ViewAnimator XML attribute or `viewAnimator.setMeasureAllChildren(false)` in code.

Problem

By default, the max size of all children is used as the VeiwAnimator's layout size. How to create ViewAnimator, which height changes depending on the size of displaying child?

Original source