浅谈 Android 3D旋转
2010-08-23 01:27:00 来源:WEB开发网最后就是还要写一下mImageView1,mImageView2的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:layout_width="fill_parent" 5 android:layout_height="wrap_content" 6 > 7 8 < FrameLayout 9 android:layout_width="fill_parent" 10 android:layout_height="fill_parent"> 11 12 < ImageView 13 android:id="@+id/image1" 14 android:layout_gravity="center_horizontal" 15 android:layout_width="fill_parent" 16 android:layout_height="wrap_content" 17 android:src="@drawable/image1" 18 /> 19 < ImageView 20 android:id="@+id/image2" 21 android:background="#ffff0000" 22 android:layout_gravity="center_horizontal" 23 android:layout_width="fill_parent" 24 android:layout_height="wrap_content" 25 android:src="@drawable/image2" 26 /> 27 28 < /FrameLayout> 29 < /LinearLayout>
更多精彩
赞助商链接