Android ViewAnimator height changing base on child

734 Views Asked by At

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?

1

There are 1 best solutions below

1
On

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