Merge rows and columns in android Gridview

2019-07-28 04:51发布

问题:

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 :)