Different height for each item in GridView [closed]

拜拜、爱过 提交于 2019-12-21 03:55:21

问题


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:

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?


回答1:


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.



来源:https://stackoverflow.com/questions/10696572/different-height-for-each-item-in-gridview

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!