public int getCumulativeProgress ( ) { int numChildren = getChildCount ( ) ; int total = 0 ; for ( int i = 0 ; i < numChildren ; i ++ ) { total += getChildProgress ( i ) ; } checkCumulativeSmallerThanMax ( maxProgress , total ) ; return total ; }
This get the total progress of all the children