/** * Returns the number of children in the group. * * @return a positive integer representing the number of children in * the group */ public int getChildCount() { return mChildrenCount; }
今天用到getChildCount()方法,不太懂怎么用,于是查看了下源代码
看到给的备注是:返回组中的子数
我的理解是getChildCount()方法返回的是子元素的个数