android - 带有 Android 部分的 SimpleCursorAdapter

标签 android listview android-cursor sections

关于如何在同时使用 Cursors 和 Custom SimpleCursorAdapter 时在 ListView 中生成部分,我有点不知所措。

许多文档都提到了使用 getView() 等,或者创建多个适配器并添加节标题。

但这些似乎都是基于 BaseAdapters、ListAdapters 和 ArrayAdapters 等

有没有人以前处理过类似的事情?

如果没有,关于如何使这项工作有任何提示吗?

谢谢 西蒙

最佳答案

如果您使用的是 CursorAdapter,您可以使用我的 SectionCursorAdapter .

关于android - 带有 Android 部分的 SimpleCursorAdapter,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4640731/

相关文章:

android - Gradle 构建失败 : Unable to find method 'org.gradle.api.tasks.testing.Test.getTestClassesDirs()Lorg/gradle/api/file/FileCollection;'

android - android中ViewHolder模式有什么好处?

android - 使用 CursorLoader 和 MergeCursor 的分页关闭旧游标

android - 在 android 中限制 SQLite 查询

php - 限制对我服务器上的 php 脚本的访问

Android-在 ListView 点击时打开新 Activity

android - 项目已包含具有此名称的模块 -- Android Studio

javascript - NativeScript Vue ListView onTap 不发送带有事件的项目

html - 垂直视口(viewport)被赋予无限高度。 RenderBox 未布局 : RenderViewport#34d12 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE

android - 在 SQLite 中动态使用 IN()