if (parent instanceof ListView) {headCount = ((ListView) parent).getHeaderViewsCount();}中的instanceof起到什么作用
主要是的意思是parent是不是ListView的实例(也叫对象),是返回true