7

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?

4

1 回答 1

13

通过将 指定android:measureAllChildren="false"为 ViewAnimator XML 属性或viewAnimator.setMeasureAllChildren(false)在代码中。

于 2014-01-06T09:34:06.140 回答