效果图:
项目结构:
这里主要是使用 ImageView 和 Gallery 实现的
ImageView 显示上面的大图,Gallery 显示下面的画廊
ViewPager也能实现类似效果,所以放到ViewPager的分类中
具体代码如下:
activity_main.xml 中
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
>
<ImageView
android:id="@+id/imageView"
android:layout_width="200dp"
android:layout_height=