animation_2.xml:
1 <?xml version="1.0" encoding="utf-8"?> 2 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 3 android:orientation="vertical" 4 android:padding="10dip" 5 android:layout_width="match_parent" 6 android:layout_height="wrap_content"> 7 8 <ViewFlipper android:id="@+id/flipper" 9 android:layout_width="match_parent" 10 android:layout_height="wrap_content" 11 android:flipInterval="2000" 12 android:layout_marginBottom="20dip" > 13 <TextView 14 android:layout_width="match_parent" 15 android:layout_height="wrap_content" 16 android:gravity="center_horizontal" 17 android:textSize="26sp" 18 android:text="@string/animation_2_text_1"/> 19 <TextView 20 android:layout_width="match_parent" 21 android:layout_height="wrap_content" 22 android:gravity="center_horizontal" 23 android:textSize="26sp" 24 android:text="@string/animation_2_text_2"/> 25 <TextView 26 android:layout_width="match_parent" 27 android:layout_height="wrap_content" 28 android:gravity="center_horizontal" 29 android:textSize="26sp" 30 android:text="@string/animation_2_text_3"/> 31 <TextView 32 android:layout_width="match_parent" 33 android:layout_height="wrap_content" 34 android:gravity="center_horizontal" 35 android:textSize="26sp" 36 android:text="@string/animation_2_text_4"/> 37 </ViewFlipper> 38 39 <TextView 40 android:layout_width="match_parent" 41 android:layout_height="wrap_content" 42 android:layout_marginBottom="5dip" 43 android:text="@string/animation_2_instructions" 44 /> 45 46 <Spinner android:id="@+id/spinner" 47 android:layout_width="match_parent" 48 android:layout_height="wrap_content" 49 /> 50 51 </LinearLayout>