public void addViews(T parent,List<View> views){
  for (int i=0, size=views.size(); i < size; i++) {
    addView(parent,views.get(i),i);
  }
}

public void addViews ( T parent , List < View > views ) { for ( int i = 0 , size = views . size ( ) ; i < size ; i ++ ) { addView ( parent , views . get ( i ) , i ) ; } }
convenience method for batching a set of addview calls note that this adds the views to the beginning of the viewgroup
