结果如图
main.xml
<?xml version="1.0" encoding="utf-8"?>
<HorizontalScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:fillViewport="true"
>
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="horizontal"
>
<ImageView
android:id="@+id/myImageView1"
android:layout_width="320dp"
android:layout_height="480dp"
android:background="@drawable/image0"
android:paddingRight="5dip"
/>
<ImageView
android:id="@+id/myImageView2"
android:layout_width="320dp"
android:layout_height="480dp"
android:background="@drawable/image1"
android:paddingRight="5dip"
/>
<ImageView
android:id="@+id/myImageView3"
android:layout_width="320dp"
android:layout_height="480dp"
android:background="@drawable/image2"
android:paddingRight="5dip"
/>
</LinearLayout>
</HorizontalScrollView>
源代码