How to make something like a ImageSlider in Android

时间:2015-11-12 11:10:57

标签: android android-imageview

First I will explain what I want to do:

I can take photos from camera or gallery and take it to a ImageView. Now I want to add the function to add more than just one ImageView.

I've seen many times in others Apps this icon:

enter image description here

For me, it means that I can add a Picture. This is displayed just one time. If I take/add a picture in that, I want to display another Icon besides.

Or is there a better solution for this? I want to let the User decide, how many pictures he can add.

I hope it's clear what I want to build and someone can give me the right way how to do it.

I didn't know what title would hit my problem. If someone knows a better, please edit!

Kind Regards!

2 个答案:

答案 0 :(得分:2)

我明白了你的意思。你需要像下图这样的东西:

enter image description here

我建议使用recyclerview。将recyclerview布局设置为gridlayout,然后将imageview设置为添加按钮。通过按图像,从设备加载图片并将另一个图像视图添加到您的recyclerview并再次将其设置为添加按钮。

答案 1 :(得分:0)