我正在尝试将对象构造函数调用为可运行但 Eclipse 返回错误。这
simpleAdapter = new SimpleStandardAdapter(this, manager, LEVEL_NUMBER, this, headendDataLookup, findViewById(R.id.moduleDetailView));
不被接受到可运行文件中。问题与此变量有关。日食建议这些变量与 Runnable
public void updateTreeView()
{
this.runOnUiThread(new Runnable() {
@Override
public void run() {
if (treeView == null)
return;
updateTreeContent();
simpleAdapter = new SimpleStandardAdapter(this, manager, LEVEL_NUMBER, this, headendDataLookup, findViewById(R.id.moduleDetailView));
setTreeAdapter(TreeType.SIMPLE);
setCollapsible(true);
registerForContextMenu(treeView);
manager.collapseChildren(null);
}
});
}