I am doing an image viewing page in android.I need to merge rows in some places and merge columns in some places.Can we do it in gridview. If we select any merged image the total imageview should be selected.Please anyone tell me a suggestion. Thanks in advance.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Can we do it in gridview
No, sorry, GridView
does not really support row or column spans. GridLayout
does, though, and TableLayout
/TableRow
supports column spans.
You might also look at the open source StaggeredGridView
.
回答2:
Try AsymmetricGridView. I wrote it myself :)