-1

i got the list of images from gallery, now how to put images in single item like grid as facebook or other apps does?

please check this image

kuldeep zala
  • 57
  • 3
  • 12

1 Answers1

0

Inside LinearLayout take 4 image view. let's call this imageview as imageView1,imageView2,imageView3, imageView4. each image view will have a height in dp or wrap content. set weight property 1 for each image view. now to show two images set the visibility of remaining image view as gone. or if you want to shows three image view set last image view visibility to gone.

user3383787
  • 68
  • 1
  • 2
  • 6