1

I have some images that I want to put on top of each other on random order.

If it possible using one ImageView or do I need to create multiple image views based on number of images?

anand
  • 11,071
  • 28
  • 101
  • 159

2 Answers2

3

You don't completely specify what you want.... if you want the images to be placed in different positions (in the X and Y axis), meaning that while watching the photo on the top you can see part of the other images, then you have to create different ImageViews, or drawing them on a canvas (I think this one is much better).

If the images are just one on top of the other (hiding the one on the bottom), you just have to use one ImageView.

Cristian
  • 198,401
  • 62
  • 356
  • 264
  • yeah I want to see other images also.Looks like I need to create different Imageviews . – anand Nov 13 '10 at 03:58
  • But why you have mentioned that drawing on canvas is better option. – anand Nov 13 '10 at 03:59
  • Because you won't have to created many ImageViews, and also you can do fancy effects easily (like rotating the photos, so that they look really disorganized). – Cristian Nov 13 '10 at 04:49
1

LayerDrawable may fit your requirement, you may refer to this post overlay two images in android to set an imageview

Community
  • 1
  • 1
ZelluX
  • 69,107
  • 19
  • 71
  • 104