在什么条件下getChildView()被调用ExpandableListAdapter [英] On what conditions getChildView() is called in ExpandableListAdapter
本文介绍了在什么条件下getChildView()被调用ExpandableListAdapter的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在我的应用程序, getChildView()
在我的 ExpandableListAdapter 不会被调用,而适配器返回正确的子计数(当 getChildrenCount()
被调用)。
我的问题是; 什么是需要的条件得到满足,才能有ExpandableListAdapter夸大它的孩子?
In my app, getChildView()
inside my ExpandableListAdapter isn't being called while the adapter returns the correct child count (when getChildrenCount()
is called).
My question is; what are the conditions that need to be met, in order to have ExpandableListAdapter inflate its children?
推荐答案
被调用的时候,你在团体和孩子的有超过1项,我的意思是,当getGroupCount返回的值大于0
is called when you have more than 1 item in groups and in childs, i mean when getGroupCount returns a value greater than 0
这篇关于在什么条件下getChildView()被调用ExpandableListAdapter的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文