Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/backbone.js/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java ExpandableListView和SimpleCorSortreeAdapter_Java_Android_Expandablelistview_Simplecursortreeadapter - Fatal编程技术网

Java ExpandableListView和SimpleCorSortreeAdapter

Java ExpandableListView和SimpleCorSortreeAdapter,java,android,expandablelistview,simplecursortreeadapter,Java,Android,Expandablelistview,Simplecursortreeadapter,我想使用带有SimpleCorSortreeAdapter支持的ExpandableListView。到目前为止,我的屏幕上什么也看不到 为此,我创建了一个派生自SimpleCursorTreeAdapter类的类。在这个类中,我重写了getChildrenCursor,以检索参数列表中指定的组的子级。我用SQLiteCursor为数据源创建了这个类的一个实例,我的视图是简单的TextViews,对于组和子组都是如此。我的光标有一些数据(在我的示例中有两行),我没有收到错误消息,但是Expand

我想使用带有
SimpleCorSortreeAdapter
支持的
ExpandableListView
。到目前为止,我的屏幕上什么也看不到

为此,我创建了一个派生自
SimpleCursorTreeAdapter
类的类。在这个类中,我重写了
getChildrenCursor
,以检索参数列表中指定的组的子级。我用
SQLiteCursor
为数据源创建了这个类的一个实例,我的视图是简单的
TextView
s,对于组和子组都是如此。我的光标有一些数据(在我的示例中有两行),我没有收到错误消息,但是
ExpandableListView
在屏幕上没有显示任何内容

我可以补充一点,通过从
BaseExpandableListAdapter
派生的类,我可以看到我的数据


我错过什么了吗?有没有一个地方可以让我找到一个使用
SimpleCursorTreeAdapter
类和
ExpandableListView
类的代码示例?

您是如何扩展
SimpleCursorTreeAdapter
的?在“GetChildrencursor”函数中,我进行查询以获取“游标”的它包含作为参数传递的组的子级。