Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
デフォルトでは、すべての子の最大サイズが VeiwAnimator のレイアウト サイズとして使用されます。表示する子のサイズによって高さが変わるViewAnimatorの作成方法は?
android:measureAllChildren="false"を ViewAnimator XML 属性として指定するかviewAnimator.setMeasureAllChildren(false)、コードで指定します。
android:measureAllChildren="false"
viewAnimator.setMeasureAllChildren(false)