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...
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…