Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Different height for each item in GridView [closed]

My client has developed a iPhone app that has a photo gallery with photos that have different heights, so the gallery looks something like this:

Gallery Template

I'm asked to do the same on Android so I have been trying to do this with the GridView but with no luck, I'm even starting to believe that this is not possible in Android!

My question is, is this possible to do using the Gridview in Android?

like image 969
AmjadoV Avatar asked May 22 '12 06:05

AmjadoV


1 Answers

This is called a Masonry-View and it won't be too easy to achieve it since there isn't too much helpful stuff out there right now.

There are some libraries available but when I tried them some months ago they didn't satisfy my needs and I dropped the idea to use a Masonry. But you could give it a try. Maybe they improved or in between some better stuff is out there.

like image 131
Taig Avatar answered Oct 24 '22 15:10

Taig