为啥ListView的getChildCount函数取得子项目数比实际少一项
为什么ListView的getChildCount函数取得子项目数比实际少一项?
我的ListView有10个items,但是用getChildCount()函数取得的值为9,为什么会少一项呢?
------解决方案--------------------
确定有10个?没有代码,没有结论
------解决方案--------------------
下标从0开始?
------解决方案--------------------
这种命名方法肯定是个数,是比较奇怪
我的ListView有10个items,但是用getChildCount()函数取得的值为9,为什么会少一项呢?
------解决方案--------------------
确定有10个?没有代码,没有结论
------解决方案--------------------
下标从0开始?
------解决方案--------------------
这种命名方法肯定是个数,是比较奇怪