简体   繁体   English

带有行分隔符的Android gridview

[英]Android gridview with row separators

I want use gridView of many images with CursorAdapter for best performance. 我想通过CursorAdapter使用许多图像的gridView以获得最佳性能。 Some items should be separated from each other. 有些项目应该彼此分开。 Finally it should be looks like http://code.google.com/p/android-section-list/ ? 最后,它应该看起来像http://code.google.com/p/android-section-list/ but with grid. 但是有网格。

I think You can do it but you have to implement Jeff Shrkey's SeparatedListAdapter 我认为您可以做到,但是您必须实现Jeff Shrkey的SeparatedListAdapter

There isn't an easy way of creating these separated lists, so I've put together SeparatedListAdapter which does it quickly. 没有简单的方法来创建这些分离的列表,因此我将SeparatedListAdapter放在一起可以快速地完成它。 To summarize, we're creating a new BaseAdapter that can contain several other Adapters, each with their own section headers. 总而言之,我们正在创建一个新的BaseAdapter,其中可以包含其他几个Adapter,每个Adapter都有自己的节头。

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

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