由网友(懒癌晚期)分享简介:之间是什么 getCount将()和 getChildCount()在的ListView ?推荐答案getCount将()返回项目的适配器计数(总在列表),getChildCount()是一种方法的ViewGroup可以返回子视图的数量。 ListView的积极重用的意见,所以如果您的列表中有1000个项目getCo...
之间是什么 getCount将()
和 getChildCount()
在的ListView ?
推荐答案
getCount将()返回项目的适配器计数(总在列表),getChildCount()是一种方法的ViewGroup可以返回子视图的数量。 ListView的积极重用的意见,所以如果您的列表中有1000个项目getCount将()将返回1000,getChildCount() - 约10左右...
getCount() returns you a count of items in Adapter (total in list), getChildCount() is a ViewGroup method that returns you number of subviews. ListView actively reuses views so if your list has 1000 items getCount() will return 1000, getChildCount() - around 10 or so...
相关推荐
最新文章