1. Needs, need to add as shown, the number of each unit is not the same, if you use adapter, you need to give several adapter to set up data, here refer to Google to Apidemos in layoutanimations dynamic Add the demo, That is, add the child control dynamically and there can be animated effect, here animation effect slightly, view Apidemos source code can.
2. The layout is as follows
3. Problem: In code that uses Apidemos directly, when Fixedgridlayout is Onmeasure method, the interior will add an extra piece of content to the container based on the current child control to prevent the child control from adding a problem, but in this case, You need to match the length of each layout with the bottom of the child controls, which need to be changed
After this change, the dynamically added Fixedlayout container's height will not be more than a single cut.
About the use of layoutanimations in Android Apidemos