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?
Either by specifying the android:measureAllChildren="false"
as a ViewAnimator XML attribute or viewAnimator.setMeasureAllChildren(false)
in code.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With