0
如何制作包含两部分的Android图像滑块。一部分是水平图像滑块(thumnail),第二部分是所选图像的原始图像。 这个样子IOS水平视图在IOS: 像Ios的Android图像滑块
如何制作包含两部分的Android图像滑块。一部分是水平图像滑块(thumnail),第二部分是所选图像的原始图像。 这个样子IOS水平视图在IOS: 像Ios的Android图像滑块
您需要使用Gallery
和ImageView
1:做一个布局:
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<ImageView
android:layout_width="fill_parent"
android:layout_height="0dp"
android:layout_weight="70"/>
<Gallery
android:layout_width="fill_parent"
android:layout_height="0dp"
android:layout_weight="30"/>
</LinearLayout>
2:初始化画廊与适配器。
3:为图库项目定义onItemClickListener,您需要更改上面给出的imageView。
或者,你可以使用这里给出的完整代码: LINK(类似于您正在尝试做的)