We are going to add some more blocks to our tower, to make the game more playable. Rather than writing a load of Java calls to add the new blocks, we can use a layout animation to add them all into the scene.
layout_tower.xml. This will be the layout animation for
tower_1when the game starts.
<?xml version="1.0" encoding="utf-8"?> <layoutAnimation xmlns:android="http://schemas.android.com/apk/res/android" android:animation="@anim/block_drop" android:delay="20%" android:animationOrder="reverse" />
android:animationitself is just a reference to the