效果图如下:
上面部分用Gallery实现,下部分用ImageSwitcher实现,单机上面的图片在ImageSwitcher上显示大图。XML代码如下:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/RelativeLayout1"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<Gallery
android:id="@+id/gallery"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="20dp" />
<ImageSwitcher
android:id="@