GridView-like Android widget with variable lengths

旧城冷巷雨未停 提交于 2019-12-24 11:25:45

问题


Is there an existing Android widget third-party implementation that looks like a GridView but supports variable height items? I need one for images, but of course one that works with arbitrary views will work. Memory management is important, such that the Views and the bitmaps may be recycled.

Or, a way to convert GridView source code to do this?

An example of the grids:

1A 2A 3A

1A 2A 3B

1A 2B 3C

The first column contains 1 item labeled as 1A (relative height 1), the second one contains two items labeled as 2A (relative height 2/3) and 2B (relative height 1/3). The third column contains three items (all of them with relative height 1/3).


回答1:


I suppose you are looking for something like VariableSizedWrapGrid in MS Windows 8. I think there is no a similar thing for Android. Maybe suggestions in this SO thread will help you.



来源:https://stackoverflow.com/questions/11981294/gridview-like-android-widget-with-variable-lengths

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