Android ViewAnimator base change height per child

By default, the maximum size of all children is used as the size of the VeiwAnimator layout. How to create a ViewAnimator, what height changes depending on the display size of the child?

+4
source share
1 answer

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

+8
source

Source: https://habr.com/ru/post/1491880/


All Articles