当前位置: 动力学知识库 > 问答 > 编程问答 >

android - Grid view customization based on row index

问题描述:

Need your help in grid view customization based on row index.

For even positioned row no padding/margin and for odd positioned row some padding/margin before starting row.

I had stuck here for creating this type of grid-view as shown in image.

For Row index 0 row padding 0dp

For Row index 1 row padding Xdp e.g. 10dp

and so on...

How to achieve this in custom grid view.(Grid view customization)

Like this type of Zig-Zag pattern..

Your suggestions are welcome..

Thanks :)

分享给朋友:
您可能感兴趣的文章:
随机阅读: