Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android ViewAnimator height changing base on child

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?

like image 626
Ігар Цімошка Avatar asked Jul 17 '13 12:07

Ігар Цімошка


1 Answers

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

like image 162
Tadej Avatar answered Oct 10 '22 19:10

Tadej