简体   繁体   English

GridView中的Android多行号

[英]Android Multiple Row Number in GridView

I Want a GridView that First Item is in Single Column and The Rest are in Two Column. 我想要第一个项目在单列中,其余项目在两列中的GridView。 how can I Implement That? 我该如何实施? In my Purpose I Can't use GridLayout. 我无法使用GridLayout。 Many Thanks 非常感谢

Like this : http://upload7.ir/viewer.php?file=10724303115268881323.jpg 像这样: http : //upload7.ir/viewer.php?file=10724303115268881323.jpg

There is no standard way to achive that. 没有达到此目的的标准方法。 What you can do is using listview with an header and handling the grid visualization by yourself. 您可以使用带有标题的listview并自己处理网格可视化。

Do you need these items to be visible? 您是否需要这些物品可见?

You can achieve it by custom gridview implementation witch support headers : 您可以通过自定义gridview实现巫婆支持headers头来实现:

https://github.com/munix/GridViewHeader https://github.com/munix/GridViewHeader

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM