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?
Either by specifying android:measureAllChildren="false" as an XML attribute of ViewAnimator, or viewAnimator.setMeasureAllChildren(false) in the code.
android:measureAllChildren="false"
viewAnimator.setMeasureAllChildren(false)
Source: https://habr.com/ru/post/1491880/More articles:uninitialized enum variable - c ++A simple Moq example - connecting to a database and processing files - c #MySQL: Column automatically current insert time - mysqlASP.NET MVC Embedded Package - optimizationReading data from Tenma 72-7732 multimeter using PyUSB - pythonSlow MySQL queries in Python, but fast elsewhere - pythonChanging additional store options before a grid sorting event - extjsstored procedure with out parameter - sql-serverSearch in elasticsearch search - javaCustom function call after extjs 4 grid sorting - extjsAll Articles