Oh no! We forgot about one of the dance moves - we'd better add it back in! But you're probably getting a bit tired of defining animations in XML, so let's use a simple routine to generate the last animation when the
FunkyActivity first loads.
We won't replace anything we wrote in the previous Time for action—making the stick man interactive, but we'll add another button and associated animation.
Funky Stick ManEclipse project again.
res/layout/main.xmland add one more button:
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" ...