0
在這個類BaseExpandableListAdapter不叫
public class Rest_name_adapter extends BaseExpandableListAdapter {
}
我已經把日誌中的所有方法來檢查調用的方法順序。但從我的活動類的聲明
exp_listView.setAdpater(new Rest_name_adapter(getParent(), group_list, child_list));
它去Rest_name_adapter類,只是調用構造函數,沒有別的。我不知道爲什麼它不會調用這個:getChildView()
和getGroupView()
方法?在上下文中,我使用了getParent()
,因爲這是TabGroupActivity
的孩子。請幫助
嘗試'this.getParent()'它可能會幫助你。 – MAC
你的數據集的大小是多少?你是否迴歸正確的孩子和小組? –