如何在ChildView
不影响我的基础数据和ChildView
. 下面是我的ExpandableListView
适配器的骨架实现:
私有类 EAdapter 扩展 CursorTreeAdapter {
public EAdapter(Cursor cursor, Context context) {
super(cursor, context);
}
@Override
protected void bindChildView(View view, Context context, Cursor cursor,
boolean isLastChild) {
}
@Override
protected void bindGroupView(View view, Context context, Cursor cursor,
boolean isExpanded) {
}
ChildHolder childHolder;
@Override
protected View newChildView(Context context, Cursor cursor,
boolean isLastChild, ViewGroup parent) {
view.setTag(childHolder);
registerForContextMenu(view);
return view;
}
GroupHolder groupHolder;
@Override
protected View newGroupView(Context context, final Cursor cursor,
boolean isExpanded, ViewGroup parent) {
view.setTag(groupHolder);
return view;
}
@Override
protected Cursor getChildrenCursor(Cursor groupCursor) {
return cursor;
}
}
任何帮助/指针将是最有帮助的。