public void addDataSetColors(ArrayList<Integer> colors){
  mDataSetColors.add(colors);
  mColorCount+=colors.size();
}

public void addDataSetColors ( ArrayList < Integer > colors ) { mDataSetColors . add ( colors ) ; mColorCount += colors . size ( ) ; }
adds a new array of colors for one dataset to the template . make sure to use getresources ( ) . getcolor ( r . color . yourcolor ) for the colors . use colortemplate . createcolors ( . . . ) to make a color arraylist .
