What is difference between getCount() and getChildCount() in ListView?
What is difference between getCount() and getChildCount() in ListView ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
getCount()returns you a count of items in Adapter (total in list),getChildCount()is aViewGroupmethod that returns you number of subviews.ListViewactively reuses views so if your list has 1000 itemsgetCount()will return 1000,getChildCount()– around 10 or so…