0
로컬 sqlite 데이터베이스를 사용하여 확장 가능한 목록보기에 대한 자습서를 찾고 있는데요. 내가 지금까지 이해 무엇확장 가능한 ListView 로컬 Sqlite 데이터베이스에서 채우기
는, 다음
private class MyTestList extends SimpleCursorTreeAdapter {
//The below is a constructor with 7 arguments with 3 for parent and 3 for child data ad layout
public MyTestList (Context ctx, Cursor groupCursor, int groupLayout,
String[] groupFrom, int[] groupTo, int childLayout, String[] childFrom,
int[] childTo) {
super(ctx, groupCursor, groupLayout, groupLayout, groupFrom, groupTo, childLayout, childFrom, childTo);
}
내 질문은 당신이 부모 커서와 자식 커서를 가져온 다음 이들을 서로 연결 어떻게입니다. 내가 그렇게 어떻게 내가 UI를 바인딩한다 이후
@Override
protected Cursor getChildrenCursor(final Cursor groupCursor) {
//I suppose here I am passing the parent cursor and then retrieving the
//corresponding child cursor for the particular id ??
NOT SURE HOW DO I FILL THIS, I THINK THIS WILL HAVE SOME STRING ARRAY WITH CHILD DATA
}
라는 API가 있습니다
. 찾는 물건을 얻지 못해 오랜 시간을 찾고있었습니다.